|
Posted by Peter J Ross on August 30, 2008, 3:10 pm
Please log in for more thread options
In alt.www.webmaster on Fri, 29 Aug 2008 21:40:53 -0600, Nathan W.
> im running linksys router WRT54G version 2 flashed with DD-WRT. ive added
> the following command:
>
> iptables -I FORWARD -d 74.138.*.* -j DROP
>
> and wonder if its valid? my objective is to block access to a user coming
> in from various IPs starting with 74.138.
You need to specify source address, not destination address, and use
a netmask, not wildcards. Try this:
iptables -I FORWARD -s 74.138.0.0/16 -j DROP
--
PJR :-)
slrn newsreader (v0.9.9): http://slrn.sourceforge.net/ extra slrn documentation: http://slrn-doc.sourceforge.net/ newsgroup name validator: http://pjr.lasnobberia.net/usenet/validator
|