web ports

This commit is contained in:
Bob Mottram 2014-09-22 09:29:40 +01:00
parent 8d151fc6d1
commit 12f78d1fc5
1 changed files with 2 additions and 2 deletions

View File

@ -467,8 +467,8 @@ function configure_firewall_for_web {
if grep -Fxq "configure_firewall_for_web" $COMPLETION_FILE; then
return
fi
iptables -A INPUT -i eth0 -p tcp --dport 80 --sport 32768:61000 -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 80 -j ACCEPT
iptables -A INPUT -i eth0 -p tcp --dport 32768:61000 --sport 443 -j ACCEPT
save_firewall_settings
echo 'configure_firewall_for_web' >> $COMPLETION_FILE
}