On Friday 28 September 2001 02:28 pm, Jan Tammen wrote: > Hello, > I'm using potato and kernel 2.4.8. I'm trying to map some ports to a > client inside my NAT-network. So far i'm using this, but it seems to > have no effect: > > iptables -t nat -A PREROUTING -p tcp -i mydevice --dport 1111 -j DNAT --to > client_ip:1111 > > ... and so on, and then: > > iptables -A FORWARD -i mydevice -p tcp -d client_ip --dport 1111 -j ACCEPT >
I've been using: iptables -A PREROUTING -t nat -j DNAT -p udp --destination-port 1234 \ --to-detination 192.168.0.22 It works but I couldn't explain why. ;) > Any hints? tia, Jan.