iptables rule on INPUT between 2 ethernet cards on the same host
- by user1495181
I have 2 eth cards on the same host. Both connected directly with LAN cable.
I set eth0 with ip - 192.168.1.2
I set eth1 with ip - 192.168.1.1
I set this rule:
iptables -A INPUT -p tcp -j NFQUEUE --queue-num 0
There are no other rules. (I ran iptables -X,-F)
I send TCP syn packet ( with c++ program by using raw socket) from 192.168.1.2 to…