info:
 
Slackware 3.5
2.0.35
ipfwadm masquerading policies being used
 
As we all konw, by default the ip_masq_ftp module handles the port 21.  If this needs to be changed it can be done when the module is insmoded ie.. insmod ip_masq_ftp ports=1xx,2xx,3xx etc.  It can handle up to 12 unique ports.   I beilve this variable is stored in the MAX_MASQ_APP_PORTS variable, and should be changable to allow more unique ports to be handed at time of insmod.  I need to know where is this value defined, and it it needs to be added somewhere, where would that be?  I see references to it in /usr/src/linux/net/ipv4 in the ip_masq_xxx files such as :
 
/*
 * List of ports (up to MAX_MASQ_APP_PORTS) to be handled by helper
 * First port is set to the default port.
 */
int ports[MAX_MASQ_APP_PORTS] = {21}; /* I rely on the trailing items being set$
struct ip_masq_app *masq_incarnations[MAX_MASQ_APP_PORTS];
 
thats an excerpt from my ip_masq_ftp.c file, the other ip_masq_xxxx.c files reflect something similar, but i dont know how/where to define the MAX # of ports i can use... 
 
any ideas?
or, if you know a very good way to simply forward/redirect ports through an ipmasq machine to an internal computer (sepcific ports, not a range) that would help to, buti prefer figuring out the MAX_MASQ_APP_PORTS method.
 
 
thank you
Chris Schuler

Reply via email to