Mailinglist Archive: opensuse-security (343 mails)

< Previous Next >
Re: [suse-security] Block port 6000
  • From: Tor Sigurdsson <tosi@xxxxx>
  • Date: Wed, 11 Jul 2001 11:19:32 +0000
  • Message-id: <200107111119.f6BBJZV23690@xxxxxxxxxxxxxxxxx>
Þann miðvikudagur 11 júlí 2001 10:54 skrifaðir þú:
> Hi!
>
> On Tue, 10 Jul 2001, Roman Drahtmueller wrote:
> > > Hi
> > >
> > > I have probs getting X to stop listening for
> > > connection on port 6000. I saw at the "SuSE Security
> > > FAQ (unofficial)" that to get it to stoping listening
> > > i should change /usr/X11R6/lib/X11/xdm/Xservers but
> >
> > Change the line to read
> >
> > :0 local /usr/X11R6/bin/X :0 vt07 -nolisten tcp
> >
> > it should work.
>
> On my SuSE 7.1 box it doesn't work either (yes, I *did*
> restart the X server!).
>
> Any ideas?
> (Luckily, the workstation sits behind a firewall...)
>
> Bye,
> Martin

On SuSE 7.1 ( kernel 2.2.x ) I'd do:

ipchains -A input -p tcp -s ! a.b.c.d/32 -d a.b.c.d 6000 -j REJECT

dunno yet how to use ports in iptables tho...

a.b.c.d would be your ip

-tosi

< Previous Next >
References