What's new

Using a openvpn tunnel over the wan port

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

svenp

Occasional Visitor
Hi, how can use a openvpn tunnel over the wan port from asus router?

My config:

one router (192.168.1.1) in my lan connect to the internet.
The asus router is connect with the wan port to my local lan (192.168.1.2) and he makes open a openvpn tunnel (10.10.1.0).

Over the switchports from Asus router (192.168.2.x) i can use the OpenVpn tunnel.
Now i will use the tunnel from my local lan 192.168.1.x

at my pc i put a route
route add 10.10.1.0 mask 255.255.255.0 192.168.2.1
But i can´t ping to the Vpn Network.
what else do I need?
 
Hi,the solution is a nat rule:

iptables -t nat -I POSTROUTING -s >>WAN IP<</>>MASK<< -o tun11 -j MASQUERADE
 

Similar threads

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!

Members online

Top