Iptables not working

OpenWrt is running on RaspberryPi 3B.
I’m trying to block certain IPs with iptables.
Added Custom Rule through luci
iptables -I INPUT -s 107.0.0.0/8 -j DROP
Restarted Firewall
When I run iptables -L the rule is at the beginning of the chain and should work, but it doesn’t.
I’m testing from an iPhone which has an IP in 107.x.x.x range.

Run this one and paste here the output. Make sure you have tried a few times before with the phone, so there will be hits on the counters.
iptables -L -vn; iptables -t nat -L -vn; iptables -t mangle -L -nv

1 Like

Thanks, I found another topic on this issue.
I should have been using FORWARD chain not INPUT.
There is one important rule I often forget:
If all else fails read the instructions

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.