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?
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?