PDA

View Full Version : Firewall (IPFW) FreeBSD



protocoles
01-29-2009, 04:25 PM
Hello Everyone,

Is it possible to block a port using ipfw in freebsd lets say I have a server with multiple IP's and I want to block one of my customer IP's port 25.

Any help would be appreciated,

labrocca
01-29-2009, 05:20 PM
ipfw add XXX deny ip from any to me ZZ

Change XXX to an ipfw rule number.
Change ZZ to the port number.

Rich-Boy
01-31-2009, 02:53 PM
That rule would block access to every IP on the server, but you said you want to block only one IP at port 25. So...


ipfw -q add <RULE#> deny all from any to <IP> 25