11 Jul
2001
11 Jul
'01
12:15
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