Results 1 to 3 of 3
This isn't exactly of critical importance, but is there any way to block two entirely different addresses in the one rule, rather than writing individual rules for each of them? ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 05-18-2010 #1
- Join Date
- Apr 2010
IPTABLES: two unrelated source IPs in a single rule?
Or alternatively, if I wanted to block two subnets, say 188.8.131.52/24 and 184.108.40.206/24? Can this be done in one rule?
Thanks to anyone who can offer advice.
- 05-19-2010 #2
You may want to get familiar with chains of rules.
Usually in the PREROUTING chain you would add a reference to your IPSTOBEBLOCKED chain, which examines the IP and decides to forward it to a general BLOCK chain that does all blocking.
- 05-24-2010 #3