As the traffic isn't destined for the firewall the INPUT isn't correct, it should be FORWARD instead. FORWARD is used for routing traffic through the firewall.
The traffic isn't coming from the 192.168.2.30 router IP address, but the 192.168.10.0/24 network, so there should be no reference to 192.168.2.30. Unless NAT is involved, routers / firewalls do not change the source / destination IP address of the packets.Code:iptables -A FORWARD -s 192.168.10.0/24 -i eth2 -p all -d 192.168.1.0/24 -j DROP
To simplify the rule you could also delete the reference to the interfaces.
You should also consider logging dropped packets to make troubleshooting easier.Code:iptables -A FORWARD -s 192.168.10.0/24 -p all -d 192.168.1.0/24 -j DROP
Hope this helps.


Reply With Quote
Bookmarks