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: Robert Storey (y2kbugms25.hinet.net)
Date: Fri Sep 03 2004 - 01:21:22 CDT


Though not exactly the question you asked, if you want to block port
6000, you can kill it totally by editing file /usr/X11R6/bin/startx.
Search for the line that says this:
 
      serverargs=""
 
 and change it to say this:
 
      serverargs="-nolisten tcp"
 
 Next time you start X and run netstat, you should find that port 6000
is closed.
 
regards,
Robert

On Thu, 02 Sep 2004 19:53:16 -0400
Jason Opperisano <opie817west.com> wrote:

> 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