C
C
CeBePHblY2016-04-09 19:10:47
ubuntu
CeBePHblY, 2016-04-09 19:10:47

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

1 answer(s)
M
mace-ftl, 2016-04-09
@CeBePHblY

Then we are waiting for the next packet - ACCEPT is "the end of processing the rules of this INPUT table"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question