Local Port Forwarding.

Alejandro Villarroel alejandro.villarroel at usm.cl
Tue Apr 26 14:59:58 CEST 2005


Thanks Taylor and Jason, both solutions worked just fine,
Thanks for your help,
	Alejandro

iptables -t nat -A OUTPUT -d $HostX -p tcp --dport $PortX -j REDIRECT --
to-ports $PortY

On Fri, 2005-04-22 at 17:02 -0500, Taylor, Grant wrote:
> >   iptables -t nat -A OUTPUT -p tcp -d $HostX --dport $PortY \
> >     -j DNAT --to-destination $LocalHost:$PortY
> 
> Slight typo
> 
> iptables -t nat -A OUTPUT -p tcp -d $HostX --dport $PortX -j DNAT --to-destination $LocalHost:$PortY
> 
> 
> 
> Grant. . . .





More information about the netfilter mailing list