subscribe to our Youtube


14455 questions

17168 answers


0 members

We are migrating to our new platform at Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
1,103 views 9 comments
by anonymous

We have problems with newer versions of the firmware of the RUT955 devices. 

What we do is use an iptables plugin called iprange, to block all then allow a specific range to go through. This has worked for years without any issues. 

With the 06.07.5 firmware it still works, but with the 06.07.7 firmware and later it doesn't work anymore. I suspect this is a bug in iptables that found it's way into the firmware. 

Let me show you what we do.

We first need to install the iprange module for iptables.

root@Teltonika:~# opkg install iptables-mod-iprange --force-depends

Installing iptables-mod-iprange (1.4.21-1) to root...



Multiple packages (kmod-ipt-core and kmod-ipt-core) providing same name marked HOLD or PREFER.

 Using latest.

Installing kmod-ipt-iprange (3.18.23-1) to root...



Configuring kmod-ipt-iprange.

sed: xt_iprange: No such file or directory

Configuring iptables-mod-iprange.
Collected errors:

 * satisfy_dependencies_for: Cannot satisfy the following dependencies for iptables-mod-iprange:
 *      kernel (= 3.18.23-1-b2f200610f46d20ef52d269421369d0c) *

root@Teltonika:~# opkg install iptables-mod-iprange

Package iptables-mod-iprange (1.4.21-1) installed in root is up to date.

Now we move the xt_iprange.ko file to the folder containing the current kernel version:

root@Teltonika:/lib/modules/3.18.23# mv xt_iprange.ko ../3.18.44/

No we can insert the module.

root@Teltonika:/lib/modules/3.18.23# insmod /lib/modules/3.18.44/xt_iprange.ko

Now we try to install the iptables rule containing iprange.

root@Teltonika:/lib/modules/3.18.23# iptables -I FORWARD -m iprange --src-range -j ACCEPT

/usr/lib/iptables/ File not found

iptables v1.6.2: Couldn't load match `iprange':No such file or directory

Try `iptables -h' or 'iptables --help' for more information.

When you check that folder, the file does exist. Both 06.07.5 and 06.07.7 both use the same kernel version, but .5 works properly and .7 doesn't. We also tried an even newer version, 06-08.1 which has the same issue.

by anonymous
Does anyone have an idea how to fix this?
by anonymous

You'll have to generate your own module using the SDK available here.


by anonymous
Not exactly, the ipk are already compiled you can try to install them directly with opkg install on the device.

Or you can generate your own using the SDK, make menuconfig, enable both and make.
by anonymous


Not exactly? Exactly. 

That was the solution. Installing directly doesn't work, this does.

by anonymous
1) Make sure you have the latest version of the firmware.

2) Upload iptables-mod-iprange ir kmod-ipt-iprange

3) Install kmod (with --force-depends should install, even though it drops the error)

4) Insmod /lib/modules/3.18.44/xt_iprange.ko

5) Install iptables-mod-iprange


1 Answer

0 votes
by anonymous

Could you please send me your troubleshoot file via private messages?

To download it go to System > Administration > Troubleshoot and download file from there.

Make sure you don't download it freshly started router and your configuration must be already done.

by anonymous

Please try downloading and installing this:

Your current iptables mod iprange application doesn't work because iptables was updated due to security reasons and it's not working because of version mismatch.

by anonymous

How do I add that?

root@Teltonika:/etc/opkg# cat distfeeds.conf 

src/gz chaos_calmer_base

src/gz chaos_calmer_packages

src/gz chaos_calmer_luci

root@Teltonika:/etc/opkg# cat /etc/*version


When I look here ( ) I don't see the ar71xx platform, so adding this to the repo doesn't look like an option.

by anonymous

root@Teltonika:~# opkg install iptables-mod-iprange_1.6.2-1_arm_cortex-a7_neon-vfpv4.ipk 

Unknown package 'iptables-mod-iprange'.

Collected errors:

 * pkg_hash_fetch_best_installation_candidate: Packages for iptables-mod-iprange found, but incompatible with the architectures configured

 * opkg_install_cmd: Cannot install package iptables-mod-iprange.

downloaded the file directly and tried to install that.