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

Re: ip redirect



Hi,

> Can I do (perhaps with iptables) on the server a rule to redirect some ip to 
> other?
> 
> (example: internet web mail ip 87.10.123.32 redirect to 192.168.1.10) - 
> without specify any ports.

maybe you're looking for the DNAT target, something like this :

iptables -t nat -A PREROUTING -i interface -d 87.10.123.32
--to-destination 192.168.1.10 -j DNAT

Take a look at iptables manpage for the details.

Hope this helps,
strawks




Reply to: