On Saturday 18 May 2002 3:48 pm, Rainer Schweitzer wrote:
> On Sat, 2002-05-18 at 13:29, Magnus Boden wrote:
> > I don't know about what parameters to give the kernel but If you wan't
> > to change the code I can help you.
> > linux/net/ipv4/netfilter/ip_conntrack_ftp.c
> >
> > static int __init init(void)
> > {
> > int i, ret;
> >
> > if(ports[0] == 0)
> > ports[0]=21;
> >
> > .....
> >
> > Change the ports thing to:
> > if(ports[0] == 0) {
> > ports[0]=21;
> > ports[1]=5432;
> > }
>
> Thank you, I will give it a try.
> If I read right, I can assign up to 8 tcp ports for the ftp
> control connection when using modprobe. Can you see any limits
> regarding the number of ports when hardcoding them into the
> kernel, as you proposed?
Also eight. It's defined as MAX_PORTS at the top of the same file if you
want to change it.
Antony.