[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ale] Redirect a port



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