block an IP for a particular port

Frans Gidlöf neko at grafit.it
Wed Nov 24 11:26:20 PST 2004


/24 isn't the correct netmask, /8 is (by the looks of it anyway)


On Nov 24, 2004, at 8:20 PM, Akhthar Parvez. K wrote:

> Hi All,
>
> I just wanna block an IP range for a particular port. I used the 
> following
> command.
>
> ipfw add 00150 drop tcp from 200.0.0.0/24 to any 80
>
> I am able to see the following line in ipfw list
>
> 00150 deny tcp from 200.0.0.0/24 to any 80
>
> But I don't think it's working. I am still getting the requests from 
> that IP
> range. Do I need to do anything else to make it works?
>
> Thanks in  advance.
>
> -- 
> With Regards,
>
> Akhthar Parvez.K
>
> ---------------------
> NOTHING IS IMPOSSIBLE
> Because Impossible itself says
> I'M POSSIBLE
> _______________________________________________
> freebsd-ipfw at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-ipfw
> To unsubscribe, send any mail to "freebsd-ipfw-unsubscribe at freebsd.org"



More information about the freebsd-ipfw mailing list