What's new

Using a openvpn tunnel over the wan port

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

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

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