Mailinglist Archive: opensuse-security (343 mails)

< Previous Next >
RE: [suse-security] Block port 6000
  • From: "Reckhard, Tobias" <Reckhard@xxxxxxxxxx>
  • Date: Wed, 11 Jul 2001 14:15:50 +0200
  • Message-id: <96C102324EF9D411A49500306E06C8D1348070@xxxxxxxxxxxxxxxxx>
> 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
>
For iptables, the above should translate to something similar to:

iptables -A INPUT -p tcp -s ! a.b.c.d -d a.b.c.d --dport 6000 -j REJECT

or

iptables -A FORWARD -p tcp -s ! a.b.c.d -d a.b.c.d --dport 6000 -j REJECT

depending on whether the iptables box is the X box (case 1) or if the latter
is behind it (case 2).

HTH
Tobias


< Previous Next >
This Thread
  • No further messages