LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-26-2012, 02:30 AM   #1
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
ip_conntrack_ftp or nf_conntrack_ftp where is the alias


Hi folks,

while playing around with my iptables rules I came upon the mighty ftp conntrack module which loaded just fine with modprobe ip_conntrack_ftp. After confirming that ftp works fine with it I wanted to unload the module with rmmod ip_conntrack_ftp but got the error ERROR: Module ip_conntrack_ftp does not exist in /proc/modules. Alright check with lsmod and grep and saw that it was named nf_conntrack_ftp. Okay no biggy grep the /etc/modprobe.d direcotry for an alias but it did not return anything. Searching /var/modules/ with find also only reveal nf_conntrack_ftp but no ip_conntrack_ftp.

So where can I look any further why the kernel knows ip_conntrack_ftp should be nf_conntrack_ftp?

All this is on debian 6.0.5
 
Old 06-26-2012, 06:59 PM   #2
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 414Reputation: 414Reputation: 414Reputation: 414Reputation: 414
ip_conntrack_ftp is not a stand-alone module. It depends on ip_conntrack. So if ip_conntrack was not loaded and wasn't available when you ran modprobe it more than likely did not load it, I'm surprised you didn't get an error.

Try using insmod on the ip_conntrack_module and see if it gives you any output.
 
Old 06-27-2012, 02:43 AM   #3
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Original Poster
Rep: Reputation: 233Reputation: 233Reputation: 233
Hi Kustom, it's not that the module does not load or anything it's more than I can't find where the alias declaration is done. Below is a extract of some things I tried to see whats up with ip_conntrack_ftp/nf_conntrack_ftp. Just like the man page states modprobe is good at guessing. It finds ip_conntrack_ftp cause it knows the alias for it. But I can't find where this alias is set! So lets see where it is set. (next code block)

Code:
root@username:/etc# lsmod | grep ftp
root@username:/etc# insmod nf_conntrack_ftp
insmod: can't read 'nf_conntrack_ftp': No such file or directory
root@username:/etc# insmod nf_conntrack_ftp.ko
insmod: can't read 'nf_conntrack_ftp.ko': No such file or directory
root@username:/etc# insmod /lib/modules/3.2.0-0.bpo.2-amd64/kernel/net/netfilter/nf_conntrack_ftp.ko
root@username:/etc# lsmod | grep ftp
nf_conntrack_ftp       12572  0 
nf_conntrack           55956  5 nf_conntrack_ftp,xt_state,iptable_nat,nf_nat,nf_conntrack_ipv4
root@username:/etc# rmmod nf_conntrack_ftp
root@username:/etc# lsmod | grep ftp
root@username:/etc# modprobe ip_conntrack_ftp
root@username:/etc# lsmod | grep ftp
nf_conntrack_ftp       12572  0 
nf_conntrack           55956  5 nf_conntrack_ftp,xt_state,iptable_nat,nf_nat,nf_conntrack_ipv4
root@username:/etc# rmmod ip_conntrack_ftp
ERROR: Module ip_conntrack_ftp does not exist in /proc/modules
root@username:/etc# rmmod nf_conntrack_ftp
root@username:/etc# lsmod | grep ftp
root@username:/etc# modprobe ip_conntrack_ftp
root@username:/etc# lsmod | grep ftp
nf_conntrack_ftp       12572  0 
nf_conntrack           55956  5 nf_conntrack_ftp,xt_state,iptable_nat,nf_nat,nf_conntrack_ipv4
root@username:/etc# modprobe -r ip_conntrack_ftp
root@username:/etc# lsmod | grep ftp
root@username:/etc# modinfo ip_conntrack_ftp
ERROR: modinfo: could not find module ip_conntrack_ftp
root@username:/etc# modinfo nf_conntrack_ftp
filename:       /lib/modules/3.2.0-0.bpo.2-amd64/kernel/net/netfilter/nf_conntrack_ftp.ko
alias:          nfct-helper-ftp
alias:          ip_conntrack_ftp
description:    ftp connection tracking helper
author:         Rusty Russell <rusty@rustcorp.com.au>
license:        GPL
depends:        nf_conntrack
intree:         Y
vermagic:       3.2.0-0.bpo.2-amd64 SMP mod_unload modversions 
parm:           ports:array of ushort
parm:           loose:bool
Searching the usual places for the alias:
Code:
root@username:/etc# ls /etc/mod*
/etc/modules

/etc/modprobe.d:
aliases.conf  alsa-base-blacklist.conf  alsa-base.conf  blacklist.conf  blacklist-fglrx.conf  fbdev-blacklist.conf  fglrx-driver.conf  i915-kms.conf  linux-sound-base_noOSS.conf  radeon-kms.conf
root@username:/etc# cat /etc/modules
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
# Parameters can be specified after the module name.

firewire-sbp2
loop
root@username:/etc# grep ftp /etc/aliases
ftp: root
root@username:/etc# grep 'ftp' /etc/modprobe.d/aliases.conf
root@username:/etc# grep 'nf_conntrack_ftp' /etc/* -R
/etc/iptables/modules:nf_conntrack_ftp
root@username:/etc#
So are there any other places I need to look for the alias?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
nf_conntrack/nf_conntrack_ftp - what is the difference? ichrispa Linux - Software 3 09-26-2011 06:38 AM
ip_conntrack_ftp missing lamachine Linux - Networking 1 01-20-2011 09:21 PM
How specify kernel module options for 2.6.25 (nf_conntrack_ftp) ocgltd Linux - Networking 0 09-13-2008 06:21 PM
ip_conntrack_ftp module TheRealDeal Linux - Networking 1 03-03-2005 07:29 PM
ip_conntrack_ftp and ip_nat_ftp Pastorino Linux - Networking 5 08-24-2004 11:57 AM


All times are GMT -5. The time now is 01:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration