More ephemeral ports

This commit is contained in:
Bob Mottram 2014-09-21 21:55:28 +01:00
parent 6d80ad4edf
commit bdfa7c6909
1 changed files with 2 additions and 2 deletions

View File

@ -455,8 +455,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 -j ACCEPT
iptables -A INPUT -i eth0 -p tcp --dport 443 -j ACCEPT
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
save_firewall_settings
echo 'configure_firewall_for_web' >> $COMPLETION_FILE
}