* MAX_PORTS for ftp modules
@ 2004-01-26 21:14 Nick Pasich
2004-01-27 9:40 ` Henrik Nordstrom
2004-01-27 11:01 ` Harald Welte
0 siblings, 2 replies; 3+ messages in thread
From: Nick Pasich @ 2004-01-26 21:14 UTC (permalink / raw)
To: netfilter-devel
Hi,
I've exhausted the MAX_PORTS limit of 8 for ftp using my own port id.
I'm wondering if there are any repercussions in upping the limit to say,
16 in the following modules.
ip_conntrack_ftp.c: #define MAX_PORTS 8
ip_conntrack_irc.c: #define MAX_PORTS 8
ip_conntrack_tftp.c: #define MAX_PORTS 8
ip_nat_ftp.c: #define MAX_PORTS 8
ip_nat_irc.c: #define MAX_PORTS 8
ip_nat_tftp.c: #define MAX_PORTS 8
I noticed that ipfwadm_core.c has "IP_FW_MAX_PORTS" which is defined in
ipfwadm_core.h as 10.
*********************************************************************************************************
linux/include/linux/netfilter_ipv4/ipfwadm_core.h:#define IP_FW_MAX_PORTS 10 /* A reasonable maximum */
*********************************************************************************************************
So what modules need to be changed and what kind of trouble am I going to
get into????
I'm not subscribed to the newsletter, so please respond to me directly.
Thanks,
---( Nick Pasich )---
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: MAX_PORTS for ftp modules
2004-01-26 21:14 MAX_PORTS for ftp modules Nick Pasich
@ 2004-01-27 9:40 ` Henrik Nordstrom
2004-01-27 11:01 ` Harald Welte
1 sibling, 0 replies; 3+ messages in thread
From: Henrik Nordstrom @ 2004-01-27 9:40 UTC (permalink / raw)
To: Nick Pasich; +Cc: netfilter-devel
On Mon, 26 Jan 2004, Nick Pasich wrote:
> I've exhausted the MAX_PORTS limit of 8 for ftp using my own port id.
>
> I'm wondering if there are any repercussions in upping the limit to say,
> 16 in the following modules.
None I know of. But you should be careful to not register any ports wich
is ever used for non-FTP traffic.
Note: TFTP is not the same as FTP, and ipfwadm is only relevant if your
are using ipfwadm and is not related to your question.
Regards
Henrik
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: MAX_PORTS for ftp modules
2004-01-26 21:14 MAX_PORTS for ftp modules Nick Pasich
2004-01-27 9:40 ` Henrik Nordstrom
@ 2004-01-27 11:01 ` Harald Welte
1 sibling, 0 replies; 3+ messages in thread
From: Harald Welte @ 2004-01-27 11:01 UTC (permalink / raw)
To: Nick Pasich; +Cc: netfilter-devel
[-- Attachment #1: Type: text/plain, Size: 1208 bytes --]
On Mon, Jan 26, 2004 at 01:14:41PM -0800, Nick Pasich wrote:
> Hi,
>
> I've exhausted the MAX_PORTS limit of 8 for ftp using my own port id.
>
> I'm wondering if there are any repercussions in upping the limit to say,
> 16 in the following modules.
No, as has been discussed before (and I believe is also on the FAQ or
some HOWTO).
> ip_conntrack_ftp.c: #define MAX_PORTS 8
> ip_conntrack_irc.c: #define MAX_PORTS 8
> ip_conntrack_tftp.c: #define MAX_PORTS 8
> ip_nat_ftp.c: #define MAX_PORTS 8
> ip_nat_irc.c: #define MAX_PORTS 8
> ip_nat_tftp.c: #define MAX_PORTS 8
>
>
> I noticed that ipfwadm_core.c has "IP_FW_MAX_PORTS" which is defined in
> ipfwadm_core.h as 10.
ipfwadm is 2.0.x kernel backwards compatibility. please don't look at
that code ever again ;)
--
- Harald Welte <laforge@netfilter.org> http://www.netfilter.org/
============================================================================
"Fragmentation is like classful addressing -- an interesting early
architectural error that shows how much experimentation was going
on while IP was being designed." -- Paul Vixie
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-01-27 11:01 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-26 21:14 MAX_PORTS for ftp modules Nick Pasich
2004-01-27 9:40 ` Henrik Nordstrom
2004-01-27 11:01 ` Harald Welte
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.