All of lore.kernel.org
 help / color / mirror / Atom feed
* Please help redirecting locally generated traffic
@ 2007-07-19 22:45 aragonx
  2007-07-20 18:10 ` Grant Taylor
  0 siblings, 1 reply; 2+ messages in thread
From: aragonx @ 2007-07-19 22:45 UTC (permalink / raw)
  To: netfilter

I have a situation where an application on my box wants to talk to the
wrong IP address.  The developers will gladly fix the bug in the next
version but I need a quicker fix.

Here is the situation.  I have traffic that is going to 10.0.0.1 and needs
to got to 198.162.0.1.  It's created on the machine that I need to do the
routing on.  It's a Linux machine using iptables 1.2.9.  Neither SNAT or
DNAT seem to work.  DNAT wants to work on the incomming packets but does
what I need.  SNAT will work on the outgoing packets but doesn't do what I
need.  Mangle seems to only want to send packets to my 127.0.0.1.

Any help would be appreciated.

Will


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



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

* Re: Please help redirecting locally generated traffic
  2007-07-19 22:45 Please help redirecting locally generated traffic aragonx
@ 2007-07-20 18:10 ` Grant Taylor
  0 siblings, 0 replies; 2+ messages in thread
From: Grant Taylor @ 2007-07-20 18:10 UTC (permalink / raw)
  To: Mail List - Netfilter

On 07/19/07 17:45, aragonx@dcsnow.com wrote:
> I have a situation where an application on my box wants to talk to 
> the wrong IP address.  The developers will gladly fix the bug in the 
> next version but I need a quicker fix.

Typical...

> Here is the situation.  I have traffic that is going to 10.0.0.1 and 
> needs to got to 198.162.0.1.  It's created on the machine that I need 
> to do the routing on.  It's a Linux machine using iptables 1.2.9. 
> Neither SNAT or DNAT seem to work.  DNAT wants to work on the 
> incomming packets but does what I need.  SNAT will work on the 
> outgoing packets but doesn't do what I need.  Mangle seems to only 
> want to send packets to my 127.0.0.1.

Ugh.  You are wanting to redirect traffic that is not following the 
normal packet flow through the kernel.

> Any help would be appreciated.

Have you considered adding the 10.0.0.1 IP address to equipment with a 
corresponding 10.0.0.x IP address to your system?

Or you may be able to look in to some sort of (socks?) proxy rapper that 
will bind a 10.0.0.1 and allow you to redirect the traffic over to 
198.162.0.1.



Grant. . . .


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

end of thread, other threads:[~2007-07-20 18:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-19 22:45 Please help redirecting locally generated traffic aragonx
2007-07-20 18:10 ` Grant Taylor

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.