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