[Techtalk] Re: Port forwarding with iptables?

kaptan kaptan at kablonet.com.tr
Thu Sep 11 18:02:08 EST 2003


Hi there, 

It may be sufficient I hope... 

#iptables -t nat -A PREROUTING -p tcp --dport 5907 -i eth0 -j DNAT --to
1.2.3.4:5900 

1.2.3.4 = IP of other machine 

Best regards,
Cengizhan Kaptan 

Julie writes: 

> Greets, 
> 
> I've tried everything I know, and I still can't get iptables to
> forward a port.  I want all packets to port 5907 on my cable
> modem interface sent to port 5900 on a machine inside the house. 
> 
> I assumed I could use the PREROUTING chain and --to-destination
> and that would work.  But I keep getting "--to-destination: unknown
> argument" or words to that effect. 
> 
> Is the manpage wrong, or I'm just dense?
> -- 
> Julianne Frances Haugh             Life is either a daring adventure
> txjulie at austin.rr.com                  or nothing at all.
> 					    -- Helen Keller 
> 
> _______________________________________________
> Techtalk mailing list
> Techtalk at linuxchix.org
> http://mailman.linuxchix.org/mailman/listinfo/techtalk
 


More information about the Techtalk mailing list