D
D
DerzhiVolnu2016-08-30 14:01:13
openvpn
DerzhiVolnu, 2016-08-30 14:01:13

How to block traffic from leakage on a DD-WRT router when OpenVPN is disconnected?

OpenVPN is up on the router. Well, that is, I connect from the computer already to the vpn network. How to properly block traffic through the firewall from leakage when disconnected? I mean on the router, what rules should be set for the firewall?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DerzhiVolnu, 2016-08-31
@DerzhiVolnu

iptables -I FORWARD -i br0 -o tun+ -j ACCEPT
iptables -I FORWARD -i tun+ -o br0 -j ACCEPT
iptables -I FORWARD -i br0 -o vlan+ -j DROP
iptables -I INPUT -i tun+ -j REJECT
iptables -I FORWARD -i br0 -o ppp+ -j DROP
iptables -t nat -A POSTROUTING -o tun+ -j MASQUERADE
Save the configuration by clicking Save Firewall. You may need to reboot your router.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question