Hi,
yeah my question might be better in a Openvpn forum but I am still going to ask here as the Server is on Openwrt and also I have seen here super capable people on the forum.
I have several Openvpn Client/Server setup and all of them working but one Client/Server is driving me nuts as I think I have everything correctly configured but it it only working with the clients transfer net IP and not the LAN IP.
When I ping the server from transfer net IP I get a clean reply. But when I use the LAN IP (of the client) as a source of the ping I can see the package going into the tunnel but it doesn't come out on the other end. I have not seen any errors in the logs and when I connect to a different server with the client it is working as expected.
Here the tests I done with the tcpdump results.
Client Side:
IP Addresses:
eth0: inet 192.168.178.4 netmask 255.255.255.0 broadcast 192.168.178.255
tun1: inet 10.20.0.6 netmask 255.255.255.255 destination 10.20.0.5
Routes:
10.20.0.1 via 10.20.0.5 dev tun1
10.20.0.5 dev tun1 proto kernel scope link src 10.20.0.6
192.168.100.0/24 via 10.20.0.5 dev tun1
192.168.178.0/24 dev eth0 proto dhcp scope link src 192.168.178.4 metric 202
Server Side:
IP Addresses:
br-lan: inet addr:192.168.100.1 Bcast:192.168.100.255 Mask:255.255.255.0
tun1: inet addr:10.20.0.1 P-t-P:10.20.0.2 Mask:255.255.255.255
Routes:
10.20.0.0/28 via 10.20.0.2 dev tun1
10.20.0.2 dev tun1 scope link src 10.20.0.1
192.168.100.0/24 dev br-lan scope link src 192.168.100.1
192.168.178.0/24 via 10.20.0.2 dev tun1
Running ping -c 1 10.20.0.1
Client Tunnel tcpdump:
12:59:04.823319 IP 10.20.0.6 > 10.20.0.1: ICMP echo request, id 18427, seq 1, length 64
12:59:04.847484 IP 10.20.0.1 > 10.20.0.6: ICMP echo reply, id 18427, seq 1, length 64
Server Tunnel tcpdump:
13:59:04.837792 IP 10.20.0.6 > 10.20.0.1: ICMP echo request, id 18427, seq 1, length 64
13:59:04.837993 IP 10.20.0.1 > 10.20.0.6: ICMP echo reply, id 18427, seq 1, length 64
Running ping -c 1 -I 192.168.178.4 10.20.0.1
Client Tunnel tcpdump:
13:00:43.857853 IP 192.168.178.4 > 10.20.0.1: ICMP echo request, id 18431, seq 1, length 64
Server Tunnel tcpdump:
NOTHING