fribeiro123 2 Posted ... Hello,This post is to everyone that have openvpn configured in a dd-wrt router and wants to block all connections through the ISP if the VPN connection fails, avoiding leaking our real ISP IP.I setup the connection to AIRVPN servers using the tutorial in https://airvpn.org/ddwrt and then insert following line to the firewall rules: "iptables -I FORWARD -i br0 -o vlan2 -j DROP"- br0 is the bridge with my lan ports & wireless- vlan2 is my WAN port connected to the modem ISPSo if there is any connection starting from my lan or wifi to the wan port the firewall of the router blocks the connection.My firewall rules are like this:iptables -I FORWARD -i br0 -o tun0 -j ACCEPTiptables -I FORWARD -i tun0 -o br0 -j ACCEPTiptables -I FORWARD -i br0 -o vlan2 -j DROPiptables -I INPUT -i tun0 -j REJECTiptables -t nat -A POSTROUTING -o tun0 -j MASQUERADE [sTAFF EDIT] In case you apply Policy Based Routing, please see here as well:http://www.dd-wrt.com/phpBB2/viewtopic.php?p=777788Check the interface names and make sure to enter the correct names (in your firmware the tun interface might be tun1 or tun0, etc.). 2 DarkRaven and Royee reacted to this Share this post Link to post