LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-16-2006, 01:48 PM   #1
pingvina
Member
 
Registered: Nov 2005
Distribution: slack
Posts: 188

Rep: Reputation: 30
iptables modules


i installed kernel 2.6.7 and modules for it like netfilter...
when i chnange back to kernel 2.4.29 - i run "lsmod"
it shows:
Module Size Used by Not tainted
ipt_REJECT 3128 4 (autoclean)
ipt_LOG 3448 10 (autoclean)
ipt_state 536 11 (autoclean)
ipt_pkttype 504 4 (autoclean)
ipt_multiport 696 4 (autoclean)
ipt_conntrack 1048 3 (autoclean)
iptable_mangle 2104 1 (autoclean)
ip_nat_irc 2064 0 (unused)
ip_nat_tftp 1712 0 (unused)
ip_nat_ftp 2544 0 (unused)
iptable_nat 16974 3 [ip_nat_irc ip_nat_tftp ip_nat_ftp]
ip_conntrack_irc 2768 1
ip_conntrack_tftp 1616 1
ip_conntrack_ftp 3632 1
ip_conntrack 18440 3 [ipt_state ipt_conntrack ip_nat_irc ip_nat_tftp ip_nat_ftp iptable_nat ip_conntrack_irc ip_conntrack_tftp ip_conntrack_ftp]
iptable_filter 1676 1
ip_tables 12000 11 [ipt_REJECT ipt_LOG ipt_state ipt_pkttype ipt_multiport ipt_conntrack iptable_mangle iptable_nat iptable_filter]

is 2.4.29 using these options... and if not can they mess up iptables??

Last edited by pingvina; 02-16-2006 at 01:50 PM.
 
Old 02-17-2006, 10:08 PM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
what do you mean "is 2.4.29 using these options"??

if you don't have any use for those modules then you don't need to load them...
 
Old 02-18-2006, 09:51 AM   #3
pingvina
Member
 
Registered: Nov 2005
Distribution: slack
Posts: 188

Original Poster
Rep: Reputation: 30
ip_nat_irc 2064 0 (unused)
ip_nat_tftp 1712 0 (unused)
ip_nat_ftp 2544 0 (unused)

i don't know if kernel 2.6.29 has installed these modules...
 
Old 02-18-2006, 05:05 PM   #4
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally Posted by pingvina
ip_nat_irc 2064 0 (unused)
ip_nat_tftp 1712 0 (unused)
ip_nat_ftp 2544 0 (unused)

i don't know if kernel 2.6.29 has installed these modules...
if you compiled those modules then yes, they will be installed when you do your "make modules_install"... but even if they are installed, they won't get _loaded_ until you load them yourself from a startup script somewhere... so you have obviously loaded those yourself...
 
Old 02-19-2006, 09:06 AM   #5
pingvina
Member
 
Registered: Nov 2005
Distribution: slack
Posts: 188

Original Poster
Rep: Reputation: 30
tnx for answer... why are they unused??
 
Old 02-19-2006, 03:43 PM   #6
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
probably because you aren't doing any IRC/TFTP/FTP NAT...
 
Old 02-20-2006, 10:01 AM   #7
pingvina
Member
 
Registered: Nov 2005
Distribution: slack
Posts: 188

Original Poster
Rep: Reputation: 30
do i need this on a single cable connection??

what is lsmod showing? modules that are in use at moment of running "lsmod",
or that are loaded at boot?

i commented ipt modules in firewall's modules script and reboot:
Module Size Used by Not tainted
ipt_REJECT 3128 4 (autoclean)
ipt_LOG 3448 10 (autoclean)
ipt_state 536 11 (autoclean)
ipt_pkttype 504 4 (autoclean)
ipt_owner 1368 0 (autoclean)
ipt_recent 7908 0 (autoclean)
ipt_multiport 696 4 (autoclean)
ipt_conntrack 1048 3 (autoclean)
iptable_filter 1676 1 (autoclean)
iptable_mangle 2104 1 (autoclean)
iptable_nat 16974 0 (autoclean) (unused)
ip_conntrack 18440 0 (autoclean) [ipt_state ipt_conntrack iptable_nat]
ip_tables 12000 13 [ipt_REJECT ipt_LOG ipt_state ipt_pkttype ipt_owner ipt_recent ipt_multiport ipt_conntrack iptable_filter iptable_mangle iptable_nat]
uhci 24284 0 (unused)

what is autoclean??

Last edited by pingvina; 02-20-2006 at 11:21 AM.
 
Old 02-20-2006, 11:51 PM   #8
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
it's showing modules that are currently loaded... it doesn't tell you whether they were loaded automatically at boot or if you loaded them yourself manually... if they are still getting loaded after commenting the relevant modprobes in your firewall script, then perhaps check some of your other startup scripts...

also, check your rules, cuz some modules will get loaded automatically when a rule requires them - even if you aren't actually making use of them...

as for autoclean:
Quote:
If (autoclean) is on the line for the module, the module can be autocleaned by the rmmod -a command. When this command is executed, any modules that are tagged with autoclean, that have not been used since the previous autoclean action, are unloaded.
http://www.redhat.com/docs/manuals/l...l-modules.html

just my ...

Last edited by win32sux; 02-21-2006 at 12:01 AM.
 
Old 02-21-2006, 07:18 AM   #9
pingvina
Member
 
Registered: Nov 2005
Distribution: slack
Posts: 188

Original Poster
Rep: Reputation: 30
may be firewall requires these rules...
 
Old 02-21-2006, 11:33 AM   #10
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally Posted by pingvina
do i need this on a single cable connection??

what is lsmod showing? modules that are in use at moment of running "lsmod",
or that are loaded at boot?

i commented ipt modules in firewall's modules script and reboot:
Module Size Used by Not tainted
ipt_REJECT 3128 4 (autoclean)
ipt_LOG 3448 10 (autoclean)
ipt_state 536 11 (autoclean)
ipt_pkttype 504 4 (autoclean)
ipt_owner 1368 0 (autoclean)
ipt_recent 7908 0 (autoclean)
ipt_multiport 696 4 (autoclean)
ipt_conntrack 1048 3 (autoclean)
iptable_filter 1676 1 (autoclean)
iptable_mangle 2104 1 (autoclean)
iptable_nat 16974 0 (autoclean) (unused)
ip_conntrack 18440 0 (autoclean) [ipt_state ipt_conntrack iptable_nat]
ip_tables 12000 13 [ipt_REJECT ipt_LOG ipt_state ipt_pkttype ipt_owner ipt_recent ipt_multiport ipt_conntrack iptable_filter iptable_mangle iptable_nat]
uhci 24284 0 (unused)

what is autoclean??

yeah, the FTP, IRC, and TFTP modules that were getting loaded before aren't getting loaded now... i actually hadn't noticed it when i posted my previous comment... i was thinking they still were getting loaded, and since those are the types of modules that usually DO NOT get loaded automatically that's why i was telling you they would have to be getting loaded from somewhere else...

the ones that are loaded now seem fine...

good luck...
 
Old 02-21-2006, 12:39 PM   #11
pingvina
Member
 
Registered: Nov 2005
Distribution: slack
Posts: 188

Original Poster
Rep: Reputation: 30
it is because i commented them out in firewall script...
 
  


Reply



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
iptables v1.2.9: Unknown arg `/sbin/iptables' Try `iptables -h' or 'iptables --help' Niceman2005 Linux - Security 4 12-29-2005 08:20 PM
iptables modules load? shanenin Linux - General 0 01-06-2004 01:15 PM
%&*#&$$ iptables modules Hangdog42 Linux - Newbie 10 03-03-2003 08:16 PM
Re: modprobe: Note: /etc/modules.conf is more recent than lib/modules/2.4.9/modules.d Andy.M Linux - General 1 01-24-2002 01:50 AM
Re: modprobe: Note: /etc/modules.conf is more recent than lib/modules/2.4.9/modules.d Andy.M Linux - Newbie 2 01-24-2002 01:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:08 PM.

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
Open Source Consulting | Domain Registration