Linux iptable questions

Hi all. I was wondering if anyone could explain what these iptable rules are doing. I'm not really sure how to read them myself so it would be really great to get some help learning how to read them!

iptables -A INPUT -i eth0 -p tcp --dport 80 -m state --state NEW,ESTABLISHED -j ACCEPT

iptables -A OUTPUT -o eth0 -p tcp --sport 80 -m state --state ESTABLISHED -j ACCEPT

iptables -A INPUT -i eth0 -p tcp --dport 443 -m state --state NEW,ESTABLISHED -j ACCEPT

iptables -A OUTPUT -o eth0 -p tcp --sport 443 -m state --state ESTABLISHED -j ACCEPT

submitted by /u/Tarot_master
[link] [comments]

Read more here: https://www.reddit.com/r/linux/comments/mn2ry8/linux_iptable_questions/

Content Attribution

This content was originally published by /u/Tarot_master at Linux, GNU/Linux, free software..., and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: