RE: how to set ports for ip_conntrack_ftp

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>>> where can i set the ports for ip_conntrack_ftp?
>>> 
>>> if i load it as module, i can use
>>> 'modprobe ip_conntrack_ftp ports=21,31,41'
>>> 
>>> but if the module is compiled into the kernel, i have no idea how
>>> to set the ports. i didn't find anything in either /proc or
>>> kernel-source/Documentation. 
>>> 
>>> the server is running linux kernel 2.4.27.
>> 
>> Hmm, I don't know about 2.4.x kernels but in 2.6.x you can always set
>> parameters to integrated modules on the kernel comand line.
>> 
>> In your case it would be:
>>  ip_conntrack_ftp.ports=21,31,41
> 
> how can i use this kernel command line?
> do you mean sysctl?

No.
You should edit your lilo.conf or grub.conf for this and look for the
line that says where your kernel is (probably: /boot/...). Append
"ip_conntrack_ftp.ports=21,31,41" to it.
Then, reboot the server.


Gr,
Rob



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux