Linux Netfilter discussions
 help / color / mirror / Atom feed
* Forwarding traffic from public IP to public IP.
@ 2007-11-28 16:09 Jason Hawthorne
  2007-11-28 16:38 ` Grant Taylor
  0 siblings, 1 reply; 17+ messages in thread
From: Jason Hawthorne @ 2007-11-28 16:09 UTC (permalink / raw)
  To: netfilter

I need to temporarily forward all traffic from one public IP address
(a.b.c.d) to another public IP address (e.f.g.h). I have tried setting
up iptables with the following rule

-t nat -A PREROUTING -d a.b.c.d -j DNAT --to-destination e.f.g.h

but it doesn't seem to be working. As far as I can tell the traffic is
getting forwarded to the final ip (e.f.g.h) but when the return traffic
comes back it doesn't come back through the debian box, it goes straight
to the source and fails. Basically it skips the debian box on its return
like this

SOURCE ---> DEBIAN (iptables with nat) ---> DESTINATION ---> SOURCE

Is there a way to get this working with iptables?

-
Jason Hawthorne




^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2007-11-29 19:21 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-28 16:09 Forwarding traffic from public IP to public IP Jason Hawthorne
2007-11-28 16:38 ` Grant Taylor
2007-11-28 17:45   ` Jason Hawthorne
2007-11-28 17:56     ` Blocking web-based proxy traffic James Lay
2007-11-28 19:20       ` Grant Taylor
2007-11-28 20:01         ` James Lay
2007-11-28 20:07           ` Grant Taylor
2007-11-28 20:16             ` James Lay
2007-11-28 20:35               ` Grant Taylor
2007-11-29 10:55                 ` Benny Amorsen
2007-11-29 14:24                   ` James Lay
2007-11-29 19:21                   ` Grant Taylor
2007-11-28 21:41           ` Tagg McDonald
2007-11-29  1:53             ` dhottinger
2007-11-28 19:17     ` Forwarding traffic from public IP to public IP Grant Taylor
2007-11-28 20:11       ` Jason Hawthorne
2007-11-28 20:42         ` Grant Taylor

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