NAT & forwarding

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

 



Hello,

I have some problems with the fullowing:

I have one box (123.123.123.123) from with I would like to forward all traffic comeing to this box to another (12.12.12.12). This should be transparent for the clients. So if I do a http or ftp request to 123.123.123.123 the answer (webpage, ftp login) comes from 12.12.12.12.

I like to have this but not for ssh (so I can login to 123.123.123.123).

I thought that I should do

iptables -t nat -I PREROUTING -d 123.123.123.123 -s 0/0 -j DNAT --to 12.12.12.12

on 123.123.123.123

But it dosn't work. Do I need to setup something on 12.12.12.12?

Thanks,

Alexander Newald



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux