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


On Wed, 10 Nov 1999, Gregory Leblanc wrote:

> > Here's the relevant section:
> > 
> >     /*
> >      *      Linux ports don't normally get allocated above 32K.
> >      *      I used an extra 4K port-space
> >      */
> > 
> >     #define PORT_MASQ_BEGIN 61000
> >     #define PORT_MASQ_END   (PORT_MASQ_BEGIN+4096)
> > 
> > If you increase the number "4096" here, you must also decrease the BEGIN
> > number above it, by the same amount.
> 
> So if I increase the maximum, I have to increase the minimum
> someplace?  That doesn't make sense to me, unless there's some
> strange dependancy on this variable someplace.

No, you read it wrong. If you increase the number of simultaneous masq
entries allowed (4096 by default) then you must lower the first port
number assigned (61000 by default) so that

   PORT_MASQ_BEGIN + max_number_of_conns < 65535

If you increate the number of conns to 8192, then you'd reduce the
starting port number to (say) 56900. 16384 and 49000. And so forth.

--
 John Hardin KA7OHZ   ICQ#15735746   http://www.wolfenet.com/~jhardin/
 [EMAIL PROTECTED]      pgpk -a finger://gonzo.wolfenet.com/jhardin
  768: 0x41EA94F5 - A3 0C 5B C2 EF 0D 2C E5  E9 BF C8 33 A7 A9 CE 76 
 1024: 0xB8732E79 - 2D8C 34F4 6411 F507 136C  AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
  Monty Python's Star Trek Voyager:
  A successful trans-warp experiment turns Paris and Janeway into
  newts, but they get better.
  ...wait a minute... It's already been done...
-----------------------------------------------------------------------
   3 days until Leonid meteor shower

_______________________________________________
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