iptables rules fix

This commit is contained in:
Pratyush Desai 2022-06-28 13:39:06 +05:30
parent 88f2a9eb8a
commit fe52c6b8a5
Signed by: pratyush
GPG Key ID: DBA5BB7505946FAD

View File

@ -24,8 +24,8 @@
1. `iptables -A INPUT -i lo -j ACCEPT` 1. `iptables -A INPUT -i lo -j ACCEPT`
2. `iptables -A INPUT -n conntrack -ctstate ESTABLISHED,RELATED -j ACCEPT` 2. `iptables -A INPUT -n conntrack -ctstate ESTABLISHED,RELATED -j ACCEPT`
3. `iptables -A INPUT -n conntrack -ctstate INVALID -j DROP` 3. `iptables -A INPUT -n conntrack -ctstate INVALID -j DROP`
4. `iptables -A INPUT -j DROP` 4. `iptables -A INPUT -p tcp --sport 22 -j ACCEPT`
5. `iptables -A INPUT -p tcp --dport ssh -j ACCEPT` 5. `iptables -A INPUT -j DROP`
## OUTPUT ## OUTPUT