I have two networks which I want to connect by an openvpn tunnel (per tun-device).
Server-side network is 10.10.7.0/24,
The vpn gateway runs on a VM with the IP 10.10.7.12,
The vpn tunnel on the vpn gateway side has the IP 10.10.9.1(tun0)
The router is a cable router with IP 10.10.7.1.
The router has a route entry 10.10.10.0/24 to 10.10.7.12
The router does port forwarding from 1194 to 10.10.7.12:1194
Client-side network is 10.10.10.0/24.
The client-side router is a debian raspberry with IP 10.10.10.1
It is connect to a foreign wlan (wlan0) with an IP from a pool (192.168.0.xx)
Clients are (not yet) connected via ethernet (eth0)
The vpn tunnel has the IP 10.10.9.2
I established the vpn connection and now would like to route between the nets.
On the client side I added a route by "route add -net 10.10.7.0/24 tun0"
on the server side I added a route by "route add -net 10.10.10.0/24 tun0"
The firewall on the server side is all set to ACCEPT.
I have no masquerading or snat configured and I do not want to as I run a service that gets confused when the sender IP in the TCP packet is different than the sender IP it gets in the payload.
Other internet connections should not route through the tunnel.
Now I can ping from the client gateway to server and into the net beyond. http works, too. However, I cannot ping from server to the client gateway nor access any services (like [email protected]). What am I missing?
Thank you for your help.
ip route
andip route get 10.10.10.9
on the server. If there's nothing suspicious in it, add output ofip rule
, too.