From fe52c6b8a5a0f2fd39c2cac6f37c3689db3f38ee Mon Sep 17 00:00:00 2001 From: Pratyush Desai Date: Tue, 28 Jun 2022 13:39:06 +0530 Subject: [PATCH] iptables rules fix --- services/firewall/iptables/iptablesRules.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/firewall/iptables/iptablesRules.md b/services/firewall/iptables/iptablesRules.md index d5ec84a..9c20ec7 100644 --- a/services/firewall/iptables/iptablesRules.md +++ b/services/firewall/iptables/iptablesRules.md @@ -24,8 +24,8 @@ 1. `iptables -A INPUT -i lo -j ACCEPT` 2. `iptables -A INPUT -n conntrack -ctstate ESTABLISHED,RELATED -j ACCEPT` 3. `iptables -A INPUT -n conntrack -ctstate INVALID -j DROP` -4. `iptables -A INPUT -j DROP` -5. `iptables -A INPUT -p tcp --dport ssh -j ACCEPT` +4. `iptables -A INPUT -p tcp --sport 22 -j ACCEPT` +5. `iptables -A INPUT -j DROP` ## OUTPUT