LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   does anyone know where to find the /etc/modprobe.conf and /proc/net/ipt_condition/ .. (https://www.linuxquestions.org/questions/linux-newbie-8/does-anyone-know-where-to-find-the-etc-modprobe-conf-and-proc-net-ipt_condition-784146/)

vincent.dang 01-22-2010 11:19 PM

does anyone know where to find the /etc/modprobe.conf and /proc/net/ipt_condition/ ..
 
Hi, I am linux newbie and using fedora core 11. I am struggling to find the /pro/net/ipt_condition and the modprobe.conf Does anyone know where they are?

If someone thinks that I lack of the module for ipt_condition so this is the outcome of my lismod command.
[root@linux net]# lsmod
Module Size Used by
ppp_deflate 4128 0
zlib_deflate 16992 1 ppp_deflate
ppp_async 7708 1
crc_ccitt 1588 1 ppp_async
ppp_generic 19440 6 ppp_deflate,ppp_async
slhc 4456 1 ppp_generic
fuse 49780 2
sco 9324 2
bridge 41488 0
stp 1944 1 bridge
llc 4780 2 bridge,stp
bnep 10888 2
l2cap 18884 3 bnep
bluetooth 44768 5 sco,bnep,l2cap
sunrpc 152352 1
ipt_LOG 4548 3
xt_limit 1812 7
ip6t_REJECT 3160 2
nf_conntrack_ipv6 11368 2
ip6table_filter 3132 1
ip6_tables 10712 1 ip6table_filter
ipv6 232288 26 ip6t_REJECT,nf_conntrack_ipv6
cpufreq_ondemand 6056 2
acpi_cpufreq 8224 0
dm_multipath 13512 0
uinput 6496 0
ppdev 6304 0
snd_hda_codec_analog 54964 1
arc4 1580 2
snd_hda_intel 24028 2
option 18892 1
ecb 2452 2
snd_hda_codec 54280 2 snd_hda_codec_analog,snd_hda_intel
usbserial 26764 4 option
firewire_ohci 19456 0
firewire_core 36556 1 firewire_ohci
yenta_socket 21228 1
pcspkr 2156 0
usb_storage 82556 0
serio_raw 4852 0
crc_itu_t 1580 1 firewire_core
snd_hwdep 6584 1 snd_hda_codec
rsrc_nonstatic 9784 1 yenta_socket
iwl3945 125016 0
joydev 8964 0
snd_pcm 62632 2 snd_hda_intel,snd_hda_codec
iTCO_wdt 10464 0
iTCO_vendor_support 2736 1 iTCO_wdt
snd_timer 17888 1 snd_pcm
snd 49056 10 snd_hda_codec_analog,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_timer
mac80211 164704 1 iwl3945
tg3 91680 0
soundcore 5404 1 snd
lib80211 5064 1 iwl3945
snd_page_alloc 7644 2 snd_hda_intel,snd_pcm
cfg80211 30560 2 iwl3945,mac80211
parport_pc 22216 0
wmi 5868 0
tpm_infineon 7492 0
parport 28496 2 ppdev,parport_pc
tpm 11668 1 tpm_infineon
hp_accel 9440 0
tpm_bios 4924 1 tpm
lis3lv02d 6908 1 hp_accel
ata_generic 4264 0
pata_acpi 3620 0
i915 143984 2
drm 165948 2 i915
i2c_algo_bit 4804 1 i915
i2c_core 18016 3 i915,drm,i2c_algo_bit
video 17336 1 i915
output 2324 1 video

The other question is iptables needs the ip_conntrack module for connection tracking but I couldn't find that ip_conntrack in the lsmod but the iptables is still working fine. I can see the connection tracking by accessing the /pro/net/nf_conntrack. I am confusing here. So do we still need the ip_conntrack? and how can I see all the current and available modules in fc11?

Thanks for your time and for your help

GrapefruiTgirl 01-22-2010 11:29 PM

modprobe.conf is a file usually located in your /etc folder or in a folder called /etc/modprobe.d/

I can see the ipv6 conntracking module in your lsmod output, but I do not see the ipv4 module.

Note that you should be looking in /proc, rather than /pro though that appears to be just a small typo, since you claim to be able to see the conntracking by looking in there -- I just wanted to point that out for your reference.

As for seeing ALL the modules possibly available on your current system, have a look in /lib/modules/$(uname -r)/ as this is where all your kernel modules are kept.

If iptables is working fine for you, chances are good that all the modules it needs, are available. However, if you are doing any ipv4 connection tracking (like maybe for FTP or whatever) then I would expect the nf_conntrack module to appear somewhere. If you look in the module folder I told you about above, and find the nf_conntrack or ipt_conntrack module, try modprobing it, using the `modprobe` command, and it should then appear in the lsmod listing.

Also, if I could suggest something everyone will find helpful: please put [code] tags around long lists of stuff like that, as it will make it much easier to read :)

Best of success,
Sasha

John VV 01-23-2010 02:54 AM

you might want to read the fedora docs !
http://docs.fedoraproject.org/

vincent.dang 01-24-2010 01:55 AM

Regarding modules missing, how can I get the modules and install it? Can I download modules from the internet? I tried googling for modules many times for downloading but it gives me a lot of unnecessary things. Some of them are about coding and some of them even suggest to recompile the kernel. I dont understand much about coding and I tried all the suggested solutions but still, I dont have the the modules I would like. I am talking about the ipt_condition, connrate, ipv4options of iptables. But the bottom line is how to get the module (download it from internet or have to recompile the kernel to choose the desired modules?) and how to install it?

Thanks everyone!!!

GrapefruiTgirl 01-24-2010 02:04 AM

Not sure if I mentioned it earlier vincent, but I have never heard of "ipt_condition" nor "ipv4options" -- this doesn't mean they don't exist, but just make sure you are looking for exactly the correct names, or you'll never find them :)

And no, you cannot just download the modules from somewhere. Kernel modules are created from the kernel source code, which generally means you need to rebuild the kernel to get modules that you do not have.

Now, in the case of Iptables, it is a package in and of itself.

How to try to explain it... The kernel has a built-in interface, for connecting with and interacting with the iptables code. The iptables package contains all the bits and pieces needed to create the packet filtering tables, but your kernel needs to be configured properly to SUPPORT iptables. So, when you want to do something using the iptables package, iptables will tell the kernel "hey, I need you to plug this module in", and if the kernel does not have the module requested, you get an error. In this case, you need too rebuild the kernel, and select options which will give you the missing modules you are looking for.

I'm sorry if this is a bit confusing; I am getting tired :) and going to bed soon! I hope it makes sense though!
Kernel modules must be built from your kernel source; you cannot download them.

Sasha

John VV 01-24-2010 02:10 AM

from the fedora docs and wiki
As i recall " modprobe" has been replaced by HAL at boot and the needed modules will be turned on if needed.
there is no real need to ad things to the config file
--- or ---
Are you talking about the 3d card drivers ? ie. akmod-nvidia.rpm


Fedora 11 and 12 ( even better) should auto detect hardware at boot
BUT seeing as Fedora is a TESTING and " let's see how far we can push it , till it brakes " and "lets get the NEWEST code and cludge it together and see if it works" distro....

some reading
http://www.mjmwired.net/resources/mjm-fedora-f11.html
http://www.mjmwired.net/resources/
http://www.fedoraforum.org/
http://docs.fedoraproject.org/
https://fedoraproject.org/wiki/Fedora_Project_Wiki


All times are GMT -5. The time now is 12:37 AM.