Set the rules for ports 80 and 443 in the iptables configuration file to off.

This commit is contained in:
samson 2018-12-15 00:03:04 +08:00
parent 341bbadcd4
commit 875fe3b897
1 changed files with 2 additions and 2 deletions

View File

@ -66,8 +66,8 @@ do
# allow ssh/http only
$IPT -A INPUT -p tcp --dport 22 -j ACCEPT
$IPT -A INPUT -p tcp --dport 80 -j ACCEPT
$IPT -A INPUT -p tcp --dport 443 -j ACCEPT
# $IPT -A INPUT -p tcp --dport 80 -j ACCEPT
# $IPT -A INPUT -p tcp --dport 443 -j ACCEPT
# allow incoming ICMP ping pong stuff
$IPT -A INPUT -p icmp --icmp-type 8 -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT