iptables - Allowing Established Sessions?
Posted
by
Sandro Dzneladze
on Super User
See other posts from Super User
or by Sandro Dzneladze
Published on 2012-07-05T13:15:16Z
Indexed on
2012/07/07
21:18 UTC
Read the original article
Hit count: 217
iptables
I'm learning how to use iptables on ubuntu server.
Can you please explain to me what "Allowing Established Sessions" means and why should I include it in rules?
sudo iptables -A INPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
I understand concept of allowing specific ports and blocking others
sudo iptables -A INPUT -p tcp --dport ssh -j ACCEPT
block all
sudo iptables -A INPUT -j DROP
But I don't get the concept of allowing established session.
Thanks.
S.
© Super User or respective owner