On Tue, 26 Nov 2002, Wasim Bashir wrote: > Hi, > > how do i select more than 1 source IP, what i want to do is allow vnc access > to an internal win2k box from 2 different ip addresses, how do you do this, > at the moment i'm using : > > /sbin/iptables -A PREROUTING -t nat -p tcp -s <outside IP> -d <ip of my > machine> --dport 5800 -j DNAT --to 10.0.0.199:5800 > > Any help would be much appreciated. > > Thanks > > Wasim > > > > Hi, just add one more rule as above. Like this: /sbin/iptables -A PREROUTING -t nat -p tcp -s <outside IP 1> -d <ip of my machine> --dport 5800 -j DNAT --to 10.0.0.199:5800 /sbin/iptables -A PREROUTING -t nat -p tcp -s <outside IP 2> -d <ip of my machine> --dport 5800 -j DNAT --to 10.0.0.199:5800 Erdal Mutlu