VPN established, no pings

This forum is for general conversation and user-user networking.
Post Reply
jgauthier
OpenVpn Newbie
Posts: 1
Joined: Tue Jan 01, 2019 6:06 pm

VPN established, no pings

Post by jgauthier » Tue Jan 01, 2019 7:26 pm

Greetings,

I've created a bridged VPN. Unfortunately, the client cannot ping the server's IP, and the server cannot ping the client's IP.
I've followed the HOWTO's pretty closely, but I can't seem to figure out this issue.

I'll drop config, and what I've done here.
Set up a bridge using "bridge-start" script on both the server and the client:
server:

Code: Select all

br="br0"
tap="tap0"
eth="eth0"
eth_ip="192.168.1.10"
eth_netmask="255.255.255.0"
eth_broadcast="192.168.1.255"
    openvpn --mktun --dev $t
done
brctl addbr $br
brctl addif $br $eth
    brctl addif $br $t
done
    ifconfig $t 0.0.0.0 promisc up
done
ifconfig $eth 0.0.0.0 promisc up
ifconfig $br $eth_ip netmask $eth_netmask broadcast $eth_broadcast
client:

Code: Select all

br="br0"
tap="tap0"
eth="ens3"
eth_ip="192.168.80.24"
eth_netmask="255.255.255.0"
eth_broadcast="192.168.80.255"
    openvpn --mktun --dev $t
done
brctl addbr $br
brctl addif $br $eth
    brctl addif $br $t
done
    ifconfig $t 0.0.0.0 promisc up
done
ifconfig $eth 0.0.0.0 promisc up
ifconfig $br $eth_ip netmask $eth_netmask broadcast $eth_broadcast
The

Code: Select all

brctl show
on each:
server:

Code: Select all

bridge name     bridge id               STP enabled     interfaces
br0             8000.001422fd622c       no              eth0
                                                        tap0
client:

Code: Select all

bridge name     bridge id               STP enabled     interfaces
br0             8000.5254004b4c3b       no              ens3
                                                        tap0
I then applied iptables rules to each side:

Code: Select all

iptables -A INPUT -i tap0 -j ACCEPT
iptables -A INPUT -i br0 -j ACCEPT
iptables -A FORWARD -i br0 -j ACCEPT
Once the connection is established, I see the IP assignment on the client.
From the server, I cannot ping the client's IP of 192.168.1.100, nor on the client can I ping the server's IP of 192.168.1.10.

I attempted to use tcpdump on the tap0 interface on each end, but there is no packet being received from the other site.

I appreciate any help.

Post Reply