I
I
Igor S2018-06-08 11:42:29
linux
Igor S, 2018-06-08 11:42:29

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

But at the same time, I see that not a single packet falls into the first rule, everything falls only into the second. It seems like a simple rule, but there are so many problems. Apparently I'm missing something. Tell me what am I doing wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
ky0, 2018-06-08
@xarek1986

Typo in interface name?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question