D
Deleted member 27741
Guest
I have been annoyed by the U of Mich grad students poking at my router. So I added a couple drop rules to iptables (with script firewall-start) like so-
iptables -A INPUT -i br0 -s 141.212.121.0/24 -j DROP
iptables -A INPUT -i br0 -s 141.212.122.0/24 -j DROP
This did not work. I think this is because I am incorrectly using iptables. Blacklist rules need to go at the top, am I correct? Or else they will be let through by the same rule that let them in before and your nifty blacklist rules at the bottom of iptables will not ever get used? I changed the rules to-
iptables -I INPUT 1 -i br0 -s 141.212.121.0/24 -j DROP
iptables -I INPUT 1 -i br0 -s 141.212.122.0/24 -j DROP
Will these work? I will eventually be upgrading to an ipsets solution- should the rule that calls the ipset files be put at the top of the INPUT chain as well if it contains a blacklist?
iptables -A INPUT -i br0 -s 141.212.121.0/24 -j DROP
iptables -A INPUT -i br0 -s 141.212.122.0/24 -j DROP
This did not work. I think this is because I am incorrectly using iptables. Blacklist rules need to go at the top, am I correct? Or else they will be let through by the same rule that let them in before and your nifty blacklist rules at the bottom of iptables will not ever get used? I changed the rules to-
iptables -I INPUT 1 -i br0 -s 141.212.121.0/24 -j DROP
iptables -I INPUT 1 -i br0 -s 141.212.122.0/24 -j DROP
Will these work? I will eventually be upgrading to an ipsets solution- should the rule that calls the ipset files be put at the top of the INPUT chain as well if it contains a blacklist?