All of lore.kernel.org
 help / color / mirror / Atom feed
* Multiple Incoming connections
       [not found] <bb09457e0901291258n35a64c07t3f36fd935f98f71c@mail.gmail.com>
@ 2009-01-29 22:12 ` Didster
  2009-01-29 23:48   ` Mart Frauenlob
  0 siblings, 1 reply; 3+ messages in thread
From: Didster @ 2009-01-29 22:12 UTC (permalink / raw)
  To: netfilter

Hi there,

This is probably a very silly question, but here it goes.

I have a linux box which I am using as an internal router
[2.6.18-6-686].  These machine is connected two multiple ISPs via two
separate NICs.  The connections are not direct, they are via PIX 501
firewalls.  Both NICs use private IPs and the PIXes do address
translation.  A third NIC connects the machine to a LAN.  The default
gateway on the box is set to the private IP of PIX 1..

I am trying to get incoming connections working from both ISPs.  I
have apache running on the machine.  Both firewalls are set to allow
port 80 though and translate it to the IP of the linux box.

An incoming connection to the public IP of PIX 1 works just fine
But an incoming connection to the public IP of PIX 2 does not – unless
I change the default gateway on the box to be the private IP of PIX 2.

A trace shows the connection coming from PIX 2 and then the reply
going back out on PIX 1

I have rp_filter switched off and ip_conntrack module loaded.

Does anyone know how to stop this?  I thought conntrack would send the
related traffic back out of the route the initial request come in on.

Also, another question

Does anyone know of the best way to implement fall over routing on
this box?  I have tried playing with /proc/…/gc_timeout but that
doesn't seem to work – I guess because the next hop which is the
private IPs of the PIXes never go dead.  Currently I am doing it with
a script pinging a website and manually switching over when it goes
dead.  Sure there is a better way :o)

Thanks!

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

* Re: Multiple Incoming connections
  2009-01-29 22:12 ` Multiple Incoming connections Didster
@ 2009-01-29 23:48   ` Mart Frauenlob
  2009-01-30 10:34     ` Cloves Pereira Costa Jr
  0 siblings, 1 reply; 3+ messages in thread
From: Mart Frauenlob @ 2009-01-29 23:48 UTC (permalink / raw)
  To: netfilter

Didster wrote:
> Hi there,
>
> This is probably a very silly question, but here it goes.
>
> I have a linux box which I am using as an internal router
> [2.6.18-6-686].  These machine is connected two multiple ISPs via two
> separate NICs.  The connections are not direct, they are via PIX 501
> firewalls.  Both NICs use private IPs and the PIXes do address
> translation.  A third NIC connects the machine to a LAN.  The default
> gateway on the box is set to the private IP of PIX 1..
>
> I am trying to get incoming connections working from both ISPs.  I
> have apache running on the machine.  Both firewalls are set to allow
> port 80 though and translate it to the IP of the linux box.
>
> An incoming connection to the public IP of PIX 1 works just fine
> But an incoming connection to the public IP of PIX 2 does not – unless
> I change the default gateway on the box to be the private IP of PIX 2.
>
> A trace shows the connection coming from PIX 2 and then the reply
> going back out on PIX 1
>
> I have rp_filter switched off and ip_conntrack module loaded.
>
> Does anyone know how to stop this?  I thought conntrack would send the
> related traffic back out of the route the initial request come in on.
>   
search google for: source based routing linux

greets

mart

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

* Re: Multiple Incoming connections
  2009-01-29 23:48   ` Mart Frauenlob
@ 2009-01-30 10:34     ` Cloves Pereira Costa Jr
  0 siblings, 0 replies; 3+ messages in thread
From: Cloves Pereira Costa Jr @ 2009-01-30 10:34 UTC (permalink / raw)
  To: netfilter

Fri, 30 Jan 2009 00:48:02 +0100, Mart Frauenlob <mart.frauenlob@chello.at> escreveu:

> Didster wrote:
> > Hi there,
> >
> > This is probably a very silly question, but here it goes.
> >
> > I have a linux box which I am using as an internal router
> > [2.6.18-6-686].  These machine is connected two multiple ISPs via two
> > separate NICs.  The connections are not direct, they are via PIX 501
> > firewalls.  Both NICs use private IPs and the PIXes do address
> > translation.  A third NIC connects the machine to a LAN.  The default
> > gateway on the box is set to the private IP of PIX 1..
> >
> > I am trying to get incoming connections working from both ISPs.  I
> > have apache running on the machine.  Both firewalls are set to allow
> > port 80 though and translate it to the IP of the linux box.
> >
> > An incoming connection to the public IP of PIX 1 works just fine
> > But an incoming connection to the public IP of PIX 2 does not ? unless
> > I change the default gateway on the box to be the private IP of PIX 2.
> >
> > A trace shows the connection coming from PIX 2 and then the reply
> > going back out on PIX 1
> >
> > I have rp_filter switched off and ip_conntrack module loaded.
> >
> > Does anyone know how to stop this?  I thought conntrack would send the
> > related traffic back out of the route the initial request come in on.
> >   
> search google for: source based routing linux
> 
> greets
> 
> mart
> --
> To unsubscribe from this list: send the line "unsubscribe netfilter" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 
> 
> 
> 

You can take a look at http://linux-ip.net/html/linux-ip.html#adv-multi-internet-outbound.

In this site you will find a lot of information about linux routing.

[]s

Cloves Pereira Costa Jr

+55 41 8808-8553
Skype: clovespcjr


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

end of thread, other threads:[~2009-01-30 10:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <bb09457e0901291258n35a64c07t3f36fd935f98f71c@mail.gmail.com>
2009-01-29 22:12 ` Multiple Incoming connections Didster
2009-01-29 23:48   ` Mart Frauenlob
2009-01-30 10:34     ` Cloves Pereira Costa Jr

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.