web ports
This commit is contained in:
parent
8d151fc6d1
commit
12f78d1fc5
|
@ -467,8 +467,8 @@ function configure_firewall_for_web {
|
||||||
if grep -Fxq "configure_firewall_for_web" $COMPLETION_FILE; then
|
if grep -Fxq "configure_firewall_for_web" $COMPLETION_FILE; then
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
iptables -A INPUT -i eth0 -p tcp --dport 80 --sport 32768:61000 -j ACCEPT
|
iptables -A INPUT -i eth0 -p tcp --dport 32768:61000 --sport 80 -j ACCEPT
|
||||||
iptables -A INPUT -i eth0 -p tcp --dport 443 --sport 32768:61000 -j ACCEPT
|
iptables -A INPUT -i eth0 -p tcp --dport 32768:61000 --sport 443 -j ACCEPT
|
||||||
save_firewall_settings
|
save_firewall_settings
|
||||||
echo 'configure_firewall_for_web' >> $COMPLETION_FILE
|
echo 'configure_firewall_for_web' >> $COMPLETION_FILE
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue