OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: Filtering ports with PF

From: Jason Opperisano (opie817west.com)
Date: Thu Sep 02 2004 - 18:53:16 CDT


On Thu, 2004-09-02 at 19:04, kheno wrote:
> how can i filter a port with pf...
>
> eg: i would like to filter de X11 port (6000) how can i make it?
>
> thanx
>
> kheno

start with:

        block log all

add pass rules for the ports you need. don't include 6000 in these
rules...

or...

man 5 pf.conf

or...

block quick proto tcp from any to any port 6000

-j

=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Drink Canada Dry! You might not succeed, but it *is* fun trying.
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~