/* HINT: Search archives @ http://www.indyramp.com/masq/ before posting! */



        Hi,

        You can play with PORT_MASQ_MUL definition in net/ipv4/ip_masq.c
Currently, #define PORT_MASQ_MUL 10 means 10*4096 masq entries per
protocol. You only need to change BEGIN/END port ranges if internal hosts
require more than 4096 connections. Just increase PORT_MASQ_MUL. May be it
defaults to the number of internal hosts but don't set it to 3000. You can
try to increase it in steps or your masq box can hang (out of memory) if
each host creates 4096 connections :)

        So, try with default value (10) and change it when needed.

cat /proc/net/ip_masquerade:
Prc FromIP   FPrt ToIP     TPrt Masq Init-seq  Delta PDelta Expires
(free=40960,40960,40960)
...


Regards,

Julian Anastasov



_______________________________________________
Masq maillist  -  [EMAIL PROTECTED]
Admin requests can be handled at http://www.indyramp.com/masq-list/ -- THIS INCLUDES 
UNSUBSCRIBING!
or email to [EMAIL PROTECTED]

PLEASE read the HOWTO and search the archives before posting.
You can start your search at http://www.indyramp.com/masq/
Please keep general linux/unix/pc/internet questions off the list.

Reply via email to