All of lore.kernel.org
 help / color / mirror / Atom feed
* IP:Port REDIRECT problem
@ 2005-07-24  8:45 Marcin Giedz
  2005-07-25 18:48 ` curby .
  0 siblings, 1 reply; 2+ messages in thread
From: Marcin Giedz @ 2005-07-24  8:45 UTC (permalink / raw)
  To: netfilter

Hello,

I'd like to redirect one of my services from one public IP:port to other 
one:

Internet -----------> Public_IP 1.2.3.4:4000 GATEWAY1 Internal_IP 
192.168.49.1 <--------------> SERVICE SERVER (192.168.49.10), default 
GATEWAY1 <------------------> Internel_IP 192.168.49.2 GATEWAY2 
Public_IP 4.3.2.1:4000 ----------> Internet

As you can see default gateway for SERVICE SERVER is GATEWAY1. In 
GATEWAY1's iptables rules there is redirection rule for port 4000 to 
SERVICE SERVER:4000. In such configuration everything is OK, I can run 
service from Internet via GATEWAY1:4000. But I also want to run this 
services via GATEWAY2:4000. I tried redirection from GATEWAY2 to 
GATEWAY1 via public IPs but it doesn't work.

Is it possible to do it?

Thanks,
Marcin


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

* Re: IP:Port REDIRECT problem
  2005-07-24  8:45 IP:Port REDIRECT problem Marcin Giedz
@ 2005-07-25 18:48 ` curby .
  0 siblings, 0 replies; 2+ messages in thread
From: curby . @ 2005-07-25 18:48 UTC (permalink / raw)
  To: Marcin Giedz; +Cc: netfilter

On 7/24/05, Marcin Giedz <marcin.giedz@eulerhermes.pl> wrote:
> As you can see default gateway for SERVICE SERVER is GATEWAY1. In
> GATEWAY1's iptables rules there is redirection rule for port 4000 to
> SERVICE SERVER:4000. In such configuration everything is OK, I can run
> service from Internet via GATEWAY1:4000. But I also want to run this
> services via GATEWAY2:4000. I tried redirection from GATEWAY2 to
> GATEWAY1 via public IPs but it doesn't work.

if I understand your question correctly, you should be able to take
requests sent to GATEWAY2:4000 and redirect them to your SERVER, just
as you redirected from GATEWAY1 to SERVER.  You can do this even
though GATEWAY2 is not SERVER's default gateway.  You might need to
allow incoming requests on SERVER from the interface going to
GATEWAY2.


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

end of thread, other threads:[~2005-07-25 18:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-24  8:45 IP:Port REDIRECT problem Marcin Giedz
2005-07-25 18:48 ` curby .

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.