All of lore.kernel.org
 help / color / mirror / Atom feed
* NAT stops working
@ 2005-04-20 14:50 Daniel Wittenberg
  2005-04-20 15:07 ` Fabien Germain
  0 siblings, 1 reply; 4+ messages in thread
From: Daniel Wittenberg @ 2005-04-20 14:50 UTC (permalink / raw)
  To: netfilter

We've got a high-speed wireless and DSL connection so I decided to try
and load-balance the out-going connections.  I run a little script that
does:

route flush scope global
route flush cache
route add default scope global equalize nexthop via <external gw 1> dev
eth0 weight 1 nexthop via <external gw 2> dev eth1

This appears to work for awhile, then incoming connections stop getting
nat'd to their internal addresses.  I reboot or reset the firewall
(flush all the tables and re-run this script) and things are good again
for awhile.  I tried flooding some of the external IP's that are nat'd
and it seems like after a certain amount of traffic the nat just stops
working.  tcpdump shows traffic on the external interface coming in, but
not going out anywhere.

Anyone have ideas on how to debug this further or things to check?

Thanks,
Dan



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

* RE: NAT stops working
@ 2005-04-20 15:05 Baake, Matthias
  0 siblings, 0 replies; 4+ messages in thread
From: Baake, Matthias @ 2005-04-20 15:05 UTC (permalink / raw)
  To: Daniel Wittenberg; +Cc: Netfilter (E-Mail)

mh could it be that your conntrack table is full (if you use it of course)?
check your syslog for conntrack messages maybe that could be a reason.

greetings 

Matthias Baake

-----Original Message-----
From: netfilter-bounces@lists.netfilter.org
[mailto:netfilter-bounces@lists.netfilter.org]On Behalf Of Daniel
Wittenberg
Sent: Wednesday, April 20, 2005 4:50 PM
To: netfilter@lists.netfilter.org
Subject: NAT stops working


We've got a high-speed wireless and DSL connection so I decided to try
and load-balance the out-going connections.  I run a little script that
does:

route flush scope global
route flush cache
route add default scope global equalize nexthop via <external gw 1> dev
eth0 weight 1 nexthop via <external gw 2> dev eth1

This appears to work for awhile, then incoming connections stop getting
nat'd to their internal addresses.  I reboot or reset the firewall
(flush all the tables and re-run this script) and things are good again
for awhile.  I tried flooding some of the external IP's that are nat'd
and it seems like after a certain amount of traffic the nat just stops
working.  tcpdump shows traffic on the external interface coming in, but
not going out anywhere.

Anyone have ideas on how to debug this further or things to check?

Thanks,
Dan




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

* Re: NAT stops working
  2005-04-20 14:50 NAT stops working Daniel Wittenberg
@ 2005-04-20 15:07 ` Fabien Germain
  2005-04-20 15:26   ` Daniel Wittenberg
  0 siblings, 1 reply; 4+ messages in thread
From: Fabien Germain @ 2005-04-20 15:07 UTC (permalink / raw)
  To: netfilter

Hi Daniel,

Did you try to increase ip_conntrack_max ?
(/proc/sys/net/ipv4/netfilter/ip_conntrack_max)
If you use p2p for example, you can quickly reach the limit.

Hope it helps.
Fabien



On 4/20/05, Daniel Wittenberg <daniel-wittenberg@starken.com> wrote:
> We've got a high-speed wireless and DSL connection so I decided to try
> and load-balance the out-going connections.  I run a little script that
> does:
> 
> route flush scope global
> route flush cache
> route add default scope global equalize nexthop via <external gw 1> dev
> eth0 weight 1 nexthop via <external gw 2> dev eth1
> 
> This appears to work for awhile, then incoming connections stop getting
> nat'd to their internal addresses.  I reboot or reset the firewall
> (flush all the tables and re-run this script) and things are good again
> for awhile.  I tried flooding some of the external IP's that are nat'd
> and it seems like after a certain amount of traffic the nat just stops
> working.  tcpdump shows traffic on the external interface coming in, but
> not going out anywhere.
> 
> Anyone have ideas on how to debug this further or things to check?
> 
> Thanks,
> Dan
> 
>


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

* Re: NAT stops working
  2005-04-20 15:07 ` Fabien Germain
@ 2005-04-20 15:26   ` Daniel Wittenberg
  0 siblings, 0 replies; 4+ messages in thread
From: Daniel Wittenberg @ 2005-04-20 15:26 UTC (permalink / raw)
  To: netfilter

Yeah, the number of connections was pretty low, and there weren't any
errors about the table being full.  In fact there aren't any
kernel/netfilter errors at all getting logged.

Dan

On Wed, 2005-04-20 at 17:07 +0200, Fabien Germain wrote:
> Hi Daniel,
> 
> Did you try to increase ip_conntrack_max ?
> (/proc/sys/net/ipv4/netfilter/ip_conntrack_max)
> If you use p2p for example, you can quickly reach the limit.
> 
> Hope it helps.
> Fabien
> 
> 
> 
> On 4/20/05, Daniel Wittenberg <daniel-wittenberg@starken.com> wrote:
> > We've got a high-speed wireless and DSL connection so I decided to try
> > and load-balance the out-going connections.  I run a little script that
> > does:
> > 
> > route flush scope global
> > route flush cache
> > route add default scope global equalize nexthop via <external gw 1> dev
> > eth0 weight 1 nexthop via <external gw 2> dev eth1
> > 
> > This appears to work for awhile, then incoming connections stop getting
> > nat'd to their internal addresses.  I reboot or reset the firewall
> > (flush all the tables and re-run this script) and things are good again
> > for awhile.  I tried flooding some of the external IP's that are nat'd
> > and it seems like after a certain amount of traffic the nat just stops
> > working.  tcpdump shows traffic on the external interface coming in, but
> > not going out anywhere.
> > 
> > Anyone have ideas on how to debug this further or things to check?
> > 
> > Thanks,
> > Dan




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

end of thread, other threads:[~2005-04-20 15:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-20 14:50 NAT stops working Daniel Wittenberg
2005-04-20 15:07 ` Fabien Germain
2005-04-20 15:26   ` Daniel Wittenberg
  -- strict thread matches above, loose matches on Subject: below --
2005-04-20 15:05 Baake, Matthias

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.