linux - Where is iptables script stored on DD-WRT
Dec 24, 2015 VPN client stops working after the firewall restarts - DD-WRT Use HEREDOC to create a separate script with the firewall rules Make script executable Call script from openvpn.c Unlink script on route down Call script if firewall restarts. Please take a look, patches for openvpn.c and firewall.c are included There is probably a smarter way, but at least it has kept me of the street on this rainy Sunday DD-WRT router troubleshooting – HMA Support Sep 25, 2019
firewall - How to block internet access when the VPN stops
DD-WRT Firewall Configuration : DDWRT - reddit
Then add the following to the firewall script. # allow only outbound connections to the VPN (no inbound) iptables -I INPUT -i tun0 -m state --state NEW -j DROP iptables -I FORWARD -i tun0 -m state --state NEW -j DROP iptables -t nat -I POSTROUTING -o tun0 -j MASQUERADE Again, this completely bypasses the OpenVPN client's default firewall rules.
Setting up DD-WRT OpenVPN client. - Page 4 — PIA Netgear WNDR 3700 v4 Firmware: DD-WRT v24-sp2 (04/18/14) std (build 2399). Spent many hours trying to get VPN working using PIA Easy setup guide but internet … SSH and the Command Line - TechInfoDepot