Linux Netfilter discussions
 help / color / mirror / Atom feed
From: "Rob Sterenborg" <rob@sterenborg.info>
To: netfilter@lists.netfilter.org
Subject: RE: how to set ports for ip_conntrack_ftp
Date: Fri, 1 Sep 2006 07:59:12 +0200	[thread overview]
Message-ID: <000901c6cd8b$bfbb28e0$0101000a@tanjian> (raw)
In-Reply-To: <20060831224857.GA23094@freesources.org>

>>> 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



  reply	other threads:[~2006-09-01  5:59 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-31 15:11 how to set ports for ip_conntrack_ftp Jonas Meurer
     [not found] ` <000601c6cd14$e07a28a0$0101000a@tanjian>
2006-08-31 15:57   ` 'Jonas Meurer'
2006-08-31 16:28     ` Rob Sterenborg
2006-09-01  7:24       ` Jan Engelhardt
2006-08-31 16:44     ` Pascal Hambourg
2006-09-01  1:20       ` Jonas Meurer
2006-09-01  2:22         ` Pascal Hambourg
2006-09-02 14:27           ` Jonas Meurer
2006-09-02 15:17             ` Pascal Hambourg
2006-09-03 16:29               ` Jonas Meurer
2006-09-03 17:35                 ` Pascal Hambourg
2006-08-31 17:30 ` Damjan
2006-08-31 22:48   ` Jonas Meurer
2006-09-01  5:59     ` Rob Sterenborg [this message]
2006-09-02 14:29       ` Jonas Meurer
2006-09-02 15:16         ` Steffen Heil
2006-09-02 16:14         ` Rob Sterenborg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='000901c6cd8b$bfbb28e0$0101000a@tanjian' \
    --to=rob@sterenborg.info \
    --cc=netfilter@lists.netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox