[ale] Redirect a port

Joe Steele joe at madewell.com
Thu Jan 26 16:53:13 EST 2006


Christopher Fowler wrote:
> On Sat, 2006-01-21 at 14:02 -0500, Joe Steele wrote:
>   
>> That should be:
>>
>> iptables -t nat -A PREROUTING -p tcp --dport 5001 -j REDIRECT --to-
>> ports 
>> 5000
>>
>>     
>
> This works great.
>
> anything going to 192.168.3.1:5001 now goes to 5000
>
>
> Is it possible to redirect it to another IP Address out on the Internet?
>
> 192.168.3.1:5001 -> 209.168.246.250:5001
>   

iptables -t nat -A PREROUTING -p tcp --dport 5001 -j DNAT 
--to-destination 209.168.246.250

--Joe



More information about the Ale mailing list