iptables with network interface not working

Prodest

New Member
Joined
May 31, 2022
Messages
1
Reaction score
0
Credits
13
Hello,

I have problem that if in IPTABLES I insert network interface it's not woking if without network interface it's ok.
My iptables:
1654000854937.png


and if I use rule like this, it's working:
-A INPUT -p tcp -m tcp --dport 22 -j ACCEPT
If I add interface not working:
-A INPUT -i ens192 -p tcp -m tcp --dport 22 -j ACCEPT

Ifconfig:
1654000893022.png


Where is a problem?


Thanks in advance...
 

Members online


Top