Linux Netfilter discussions
 help / color / mirror / Atom feed
* NAT & forwarding
@ 2005-03-15  6:35 Alexander Newald
  0 siblings, 0 replies; only message in thread
From: Alexander Newald @ 2005-03-15  6:35 UTC (permalink / raw)
  To: netfilter

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 



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-03-15  6:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-15  6:35 NAT & forwarding Alexander Newald

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox