x00n
I have openvpn site to site setup with two wifi routers running openvpn server on one and client on the other. All is working as expected where all hosts behind openvpn client attached lan can ping hosts on the attached lan behind the openvpn server network and vice versa. Currently the hosts would route Internet traffic through their respective wireless router.
Openvpn server router running shibby tomato firmware:
Attached lan: 192.168.1.0/24
Lan gateway: 192.168.1.1
Openvpn ip: 192.168.2.5
Openvpn client router running ddwrt:
Attached lan 192.168.10.0/24
Lan gateway: 192.168.10.1
Openvpn ip: 192.168.2.6
I need help with configuration to route internet traffic for hosts behind openvpn server lan to exit via the openvpn client router's gateway. For example, a host with 192.168.1.123 access Internet via openvpn client router gateway 192.168.10.1 and consequently external ip would be the client's ISP IP address. How can I achieve this? Any guidance would help. I am unable to switch the wireless routers so the openvpn server would be the current openvpn client router.
I have tried setting the default gateway on hosts 192.168.1.123 to have gw of 192.168.10.1 and didn't work.
I have tried adding static route on the above host with below and no success:
linux $: ip route add default via 192.168.10.1
Network is unreachable
linux $: ip route add 0.0.0.0 via 192.168.10.1
Network is unreachable