Fixed and optimized iptables ruleset

This commit is contained in:
Tobias Manske 2018-04-05 11:02:23 +02:00
parent 669e510b44
commit 75ab642358
No known key found for this signature in database
GPG Key ID: 978D99F12D4E041F
1 changed files with 2 additions and 0 deletions

View File

@ -1112,7 +1112,9 @@ captive_portal_set_routes() {
iptables --delete-chain
iptables --table nat --delete-chain
iptables -A INPUT -p tcp --dport 443 -j ACCEPT
iptables -A INPUT -p tcp --dport 80 -j ACCEPT
iptables -A INPUT -p udp --dport 53 -j ACCEPT
iptables -A INPUT -p udp --dport 67 -j ACCEPT
}
captive_portal_stop_interface() {