Answer the question
In order to leave comments, you need to log in
Why is a rule skipped in iptables?
Greetings!
there is a simple task:
1. allow all connections from the network 192.168.0.0/24
2. allow only port 80.443 from the rest of the network (for example)
*filter
:INPUT DROP [277797633:85934161854]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [290072789:101540040020]
-A INPUT -i eht0 --src 192.168.0.0/24 -j ACCEPT
-A INPUT -i eth0 --src 0.0.0.0/0 -p tcp -m multiport --dports 80,443,22 -j ACCEPT
-A INPUT -i lo -j ACCEPT
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