OpenWrt Forum Archive

Topic: ip_conntrack_sip and ip_nat_sip modules, are they loaded?

The content of this topic has been archived on 27 Mar 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

OK,

I have OpenWrt v8.09.01 loaded on my router and I am experimenting with SIP.  The signaling protocol for VoIP.  I will admit to a certain level of confusion fed by hours of googling about this subject without much success.  Fortunately for me this forum exists so I am not without hope.

The first question I have on this subject is how can I tell if the Linux modules ip_conntrack_sip and ip_nat_sip are properly loaded in my router.  The web page http://www.iptel.org/sipalg/ indicates I should see these with the lsmod command.  But on OpenWrt when I run this command there are no modules listed related to sip.

I some more questions about this subject but think it will be most productive to start with something simple.  Hopefully someone will be able to tell me how to inspect my router to see if the modules are loaded and if they are not how to load them.

Thanks,
pbix

Did you compile the modules as part of the kernel (aka pressing y and it showing as a *) or did you compile them as modules ?

If they are modules have you looking in /lib/modules for them and if needed tried insmod ?

So far your question is a generic linux one and not specific to openwrt.

Timothy wrote:

If they are modules have you looking in /lib/modules for them and if needed tried insmod ?

So far your question is a generic linux one and not specific to openwrt.

Yes I agree my question is rather generic.  The specifics to openwrt come from the fact the tools used in Linux like modprobe and ipkg are not available on Openwrt.  So things become very confused for us Noobs.  So anyway I have not compiled anything and my question is what can I learn from the command prompt.

I do not know if they are "modules" or not.  I am too much of a Noob to know precisely what that means.  According to the URL I listed these are "patches" to the 2.6.11 or higher kernal.  Did these get integrated at some point so a patch is not needed?  Did they get turned into a "module" that needs some other action to include?

From my command line I looked in /lib/modules, the only thing there is another directory "2.4.35.4".  The contents of that directory contain many object files but do not include specific object files that match what I am looking for.

If these are not there is it possible to install something to get them or is the only solution to recompile OpenWRT?

pbix wrote:

The specifics to openwrt come from the fact the tools used in Linux like modprobe and ipkg are not available on Openwrt.

I do not know if they are "modules" or not.  I am too much of a Noob to know precisely what that means.  According to the URL I listed these are "patches" to the 2.6.11 or higher kernal.  Did these get integrated at some point so a patch is not needed?  Did they get turned into a "module" that needs some other action to include?

From my command line I looked in /lib/modules, the only thing there is another directory "2.4.35.4".  The contents of that directory contain many object files but do not include specific object files that match what I am looking for.

If these are not there is it possible to install something to get them or is the only solution to recompile OpenWRT?

modprobe isn't there, but the module tools (lsmod, rmmod, insmod) are. ipkg has been replaced by opkg, but I digress.

Did you compile the image yourself, or did you download it from the repository?
I'm not sure which modules are included in the stock images as I tend to compile my own. It's quite a nice build environment compared to others if you use the tagged releases, most recent being 8.09.2

Timothy wrote:

[I'm not sure which modules are included in the stock images as I tend to compile my own.

I guess I will read between the lines of your last post.

1)  These modules are not included in the build I am running.
2)  There is no way to install them, the only way is to recompile with the correct options selected.

Anyone want to disagree with the above?

I think you will get the sip modules if you install the additional packages
kmod-ipt-nathelper-extra  and iptables-mod-nat-extra
Also install
kmod-ipt-conntrack-extra and iptables-mod-conntrack-extra

The modules can be easily installed by using the opkg command (assuming the router is connected to the Internet)
opkg install kmod-ipt-nathelper-extra  and iptables-mod-nat-extra kmod-ipt-conntrack-extra and iptables-mod-conntrack-extra

There is no need to recompile these modules since the compiled versions are already there on the website (and are pulled down automatically with the opkg command)

The following results from my opkg install attempt.

root@OpenWrt:~# opkg install kmod-ipt-nathelper-extra
Collected errors:
 * Cannot find package kmod-ipt-nathelper-extra.

root@OpenWrt:~# opkg install iptables-mod-nat-extra
Package iptables-mod-nat-extra (1.3.8-4.1) installed in root is up to date.

root@OpenWrt:~# opkg install kmod-ipt-conntrack-extra
Package kmod-ipt-conntrack-extra (2.4.35.4-brcm-2.4-1) installed in root is up to date.

root@OpenWrt:~# opkg install iptables-mod-conntrack-extra
Package iptables-mod-conntrack-extra (1.3.8-4.1) installed in root is up to date.
root@OpenWrt:~#

I think the critical one is the first one which failed.  Looking at http://download.berlin.freifunk.net/fonera/Packages it seems that the modules I am interested in are included in that package.

But what happened to it?

Before you try opkg install <whatever> do an opkg update (not sure if you did or not).

That will update the list of available packages

Timothy wrote:

Before you try opkg install <whatever> do an opkg update (not sure if you did or not).

That will update the list of available packages

Thanks Timothy but I did the update already.

I am guessing that you are running the brcm-2.4 image (on a wrt54g ?) - please confirm.
Anyway  - just do an
opkg update
opkg list |grep nat

opkg list |grep conn

This will give you all the packages related to nat and conntracking. Install all the packages unless it's pretty clear that they are unnecessary.  Alternatively go to
http://downloads.openwrt.org/kamikaze/8 … /packages/
and look through the kmod and iptables packages  and figure out what you need and use opkg to install.

Since you have just started using openwrt, another way of installing packages  would be to

cd /tmp
wget http://downloads.openwrt.org/kamikaze/8 … s/file.ipk
and then do
opkg install file.ipk

Snowyowlster

The discussion might have continued from here.