Answer the question
In order to leave comments, you need to log in
ubuntu firewall. How does an incoming packet "travel" according to the rules?
I added the rules to the firewall:
iptables -A INPUT -p tcp --dport 80 -j ACCEPT
iptables -A INPUT -p tcp -m state --state NEW --dport 22 -j ACCEPT
iptables -A INPUT -j DROP
I'm interested in the question : a packet came from the network, it is intended for port 80, as I understand it, it is checked according to the rules from top to bottom. we check for compliance with rule 1: yes, it is for port 80, we skip the packet ... and then what? the same packet is checked by other rules? or at the first match he will not get to other rules?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question