Firewall (IPFW) FreeBSD

protocoles

Verified User
Joined
Mar 11, 2008
Messages
23
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

Verified User
Joined
Mar 12, 2006
Messages
151
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

Verified User
Joined
Jan 24, 2006
Messages
223
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...

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