Cant ping eth0 behind openvpn tunnel
by prognoob from LinuxQuestions.org on (#4T639)
Hello guys,
I have two servers connected with each other by an openvpn tunnel.
I can establish the tunnel and i can ping from one tun interface to the other.
Setup:
Server: Client:
eth0:192.168.4.1 ---Router(Gw for eth0):192.168.4.2--- ---Router(Gw for eth0):192.168.8.1--- eth0:192.168.8.2
tun0:10.100.0.1 tun0:10.100.0.2
The tun0 can ping each other.
The ping -I tun0 192.168.4.1 is working!(From client tun0 to server eth0)
I want the same to work form the server to the client.
ping -I tun0 192.168.8.2 is not working.(From server tun0 to client eth0)
How can i make the last ping work?
Routing tables:
Client:
Quote:
Server:
Quote:
Iam trying this by editing the routing table for some days now and the solution is pretty simple i guess but i cant make it work, please help me ^^


I have two servers connected with each other by an openvpn tunnel.
I can establish the tunnel and i can ping from one tun interface to the other.
Setup:
Server: Client:
eth0:192.168.4.1 ---Router(Gw for eth0):192.168.4.2--- ---Router(Gw for eth0):192.168.8.1--- eth0:192.168.8.2
tun0:10.100.0.1 tun0:10.100.0.2
The tun0 can ping each other.
The ping -I tun0 192.168.4.1 is working!(From client tun0 to server eth0)
I want the same to work form the server to the client.
ping -I tun0 192.168.8.2 is not working.(From server tun0 to client eth0)
How can i make the last ping work?
Routing tables:
Client:
Quote:
| cumulus@cumulus:~$ ip route default via 192.168.8.1 dev eth0 proto kernel 10.100.0.1 via 255.255.255.255 dev tun110 192.168.8.0/24 dev eth0 proto kernel scope link src 192.168.8.2 255.255.255.255 dev tun110 proto kernel scope link src 10.100.0.2 |
Quote:
| cumulus@cumulus:/etc/openvpn$ ip route default via 192.168.4.2 dev eth0 proto kernel 10.100.0.0/16 via 10.100.0.2 dev tun0 10.100.0.2 dev tun0 proto kernel scope link src 10.100.0.1 192.168.4.0/24 dev eth0 proto kernel scope link src 192.168.4.1 |
Iam trying this by editing the routing table for some days now and the solution is pretty simple i guess but i cant make it work, please help me ^^