From 875fe3b8973ee270e0de1e57ee873bfa9025ed7b Mon Sep 17 00:00:00 2001 From: samson Date: Sat, 15 Dec 2018 00:03:04 +0800 Subject: [PATCH] Set the rules for ports 80 and 443 in the iptables configuration file to off. --- docs/examples/configurations/etc.iptables.rules.v4.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/examples/configurations/etc.iptables.rules.v4.sh b/docs/examples/configurations/etc.iptables.rules.v4.sh index 446b1d9..b4fb13d 100644 --- a/docs/examples/configurations/etc.iptables.rules.v4.sh +++ b/docs/examples/configurations/etc.iptables.rules.v4.sh @@ -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