What's new

Asus rt-n66u Merlin allow only VPN

  • 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!

Students

New Around Here
Hello, we are two students fiddling around with a couple of asus-routers.

We have a asus rt-n66u with the Merlin firmware version 380.63_2

We successfully have implemented a VPN setup via the Openvpn configurator.

We want to make sure that no internet is allowed when the tunnel goes down.
we have tried via the webinterface to set the policy rules if the tunnel goes down without success.
we also tried to SSH with putty and setting the iptables but they dont persist after reboot.

We used this script for our asus dd-wrt and asus -tomato

"iptables -I FORWARD -i br0 -o tun15 -j ACCEPT
iptables -I FORWARD -i tun15 -o br0 -j ACCEPT
iptables -I FORWARD -i br0 -o vlan2 -j DROP
iptables -I INPUT -i tun15 -j REJECT
iptables -t nat -A POSTROUTING -o tun15 -j MASQUERADE"
and it worked in those versions.

We have also tried putting the bashscript in the jffs-partition directly via WinSCP and manually entering it in Putty.

Any suggestions?
 
Use search (via google with site:snbforums.com appended). This has been discussed many times. ;)
 

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!
Top