Results 1 to 1 of 1
Hello everyone,
I need to configure an iptables in order to blocks everything except web traffic and the file transfer protocol. I searched for information on the Internet and found ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 11-08-2010 #1Just Joined!
- Join Date
- Sep 2010
- Posts
- 14
Question on iptables
Hello everyone,
I need to configure an iptables in order to blocks everything except web traffic and the file transfer protocol. I searched for information on the Internet and found these two commands. I don't understand the keywords ESTABLISHED and RELATED and --state. Please give me an explanation. Thank you so much.
Code:iptables -I FORWARD -p tcp -m multiport --dports 21,80,443 -j ACCEPT iptables -I FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT


Reply With Quote
