Networking Forums

Networking Forums > Computer Networking > Linux Networking > maximal NAT in 2.4.20

Reply
Thread Tools Display Modes

maximal NAT in 2.4.20

 
 
Lars
Guest
Posts: n/a

 
      06-03-2004, 12:24 AM
Hi all,

what's the maximal number of clients the kernel 2.4.20 can NAT ?

Is it one subnet=255?

What if there are

eth0:1 a.b.c.x/24 (each with 255 users?)
eth0:2 e.f.g.x/24
eth0:3 r.s.t.x/24
.....

eth1: external ip to nat to.

THANKS. Any comments appreciated.

Lars
 
Reply With Quote
 
 
 
 
Danny
Guest
Posts: n/a

 
      06-06-2004, 12:23 AM
"Lars" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) om...
> Hi all,
>
> what's the maximal number of clients the kernel 2.4.20 can NAT ?
>
> Is it one subnet=255?
>
> What if there are
>
> eth0:1 a.b.c.x/24 (each with 255 users?)
> eth0:2 e.f.g.x/24
> eth0:3 r.s.t.x/24
> ....
>
> eth1: external ip to nat to.
>


From the netfilter FAQ (3.7)

Connection tracking by default handles up to a certain number of
simultaneous connections. This number is dependent on you system's maximum
memory size (at 64MB: 4096, 128MB: 8192, ...).
You can easily increase the number of maximal tracked connections, but be
aware that each tracked connection eats about 350 bytes of non-swappable
kernel memory!

To increase this limit to e.g. 8192, type:


echo "8192" > /proc/sys/net/ipv4/ip_conntrack_max


 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




1 2 3 4 5 6 7 8 9 10 11