All of lore.kernel.org
 help / color / mirror / Atom feed
* NAT & FORWARDING
@ 2004-01-29 14:23 Srinivasa Hebbar
  2004-01-30  0:28 ` John A. Sullivan III
  2004-01-30 15:40 ` Henrik Nordstrom
  0 siblings, 2 replies; 8+ messages in thread
From: Srinivasa Hebbar @ 2004-01-29 14:23 UTC (permalink / raw)
  To: netfilter-devel

Hello,

I believe that the NAT PREROUTING and POSTROUTING will 
always takes place for all the incoming/outgoing packets
irrespective of whether the packet is destined to the node or not.

I have a situation that if the dest. IP address of the packet is
for the local node, then apply NAT rule, otherwise it should simply
forward the packet according to the routing table.

How can I achieve the above?

Any help is very much appreciated.

Regards,
S. Hebbar.

^ permalink raw reply	[flat|nested] 8+ messages in thread
* NAT & forwarding
@ 2005-03-15  6:35 Alexander Newald
  0 siblings, 0 replies; 8+ messages 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] 8+ messages in thread

end of thread, other threads:[~2005-03-15  6:35 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-29 14:23 NAT & FORWARDING Srinivasa Hebbar
2004-01-30  0:28 ` John A. Sullivan III
2004-01-30  4:50   ` Srinivasa Hebbar
2004-01-30  5:35     ` John A. Sullivan III
2004-01-31  9:30     ` Henrik Nordstrom
2004-01-30 15:40 ` Henrik Nordstrom
2004-01-30 15:52   ` Patrick McHardy
  -- strict thread matches above, loose matches on Subject: below --
2005-03-15  6:35 NAT & forwarding Alexander Newald

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.