Cannot install package iptables-mod-nat

I want to configure the Tor on openwrt.
I use this faq https://trac.torproject.org/projects/tor/wiki/doc/OpenWRT
I get an error at this stage

Collected errors:
Unknown package 'iptables-mod-nat'.
Collected errors:

  • opkg_install_cmd: Cannot install package iptables-mod-nat.

is there a replacement? package iptables-mod-nat ?

tell me about your repositories configured for opkg .

opkg couldnt find the package in the configured repository, we have to see the configured repo or an ipk

no problem

or in worst case we can compile this package

/etc/opkg.conf

dest root /
dest ram /tmp
lists_dir ext /opkg-lists
option overlay_root /overlay
option check_signature 1

3 line I change, from recommendation article
https://openwrt.org/docs/guide-user/additional-software/extroot_configuration#devices_8_mib

Notes
opkg Status

Saving opkg status in the extroot, instead of in RAM, saves some RAM and keeps package lists available after a reboot.

Generate the new folder on the extroot: mkdir /opkg-lists
Edit /etc/opkg.conf, changing:
    lists_dir ext /var/opkg-lists
    into
    lists_dir ext /opkg-lists

Are you able to install any other package ?

I don't think

Try sone with opkg install

iptables-mod-nat-extra is installed
other packages can be installed

Simple answer for you:
there is no iptables-mod-nat package in Openwrt

The references wiki page even says so (referencing to year 2011 version):

Before OpenWRT 11 you had to install the proper iptables packages. Now they are included, so if you are on OpenWRT 11 you can leave out this step

(The wiki page seems to be really old. Edited last time 3 years ago)

iptables-mod-nat was removed in 2012 with this commit:
https://git.openwrt.org/?p=openwrt/svn-archive/archive.git;a=commitdiff;h=0a77bde6822d3447608102e25d313857ec341f03

arjuniet , why query about opkg repo config, when the whole package in question is non-existent?

2 Likes

openwrt wiki have actual "how to" install Tor ?

1 Like

I didn't had idea of non existent of package and was in impression that repo might be in consistent

@kris_ini so your tor installed ?

Please use the Package Table in the future: https://openwrt.org/packages/table/start

1 Like

ok thanks .

yes,installed.

great

its was a dependency of firewall now replaced by other module i saw

  • DEPENDS:=+iptables +iptables-mod-conntrack +iptables-mod-nat
  • DEPENDS:=+iptables +kmod-ipt-conntrack +kmod-ipt-nat
1 Like

I installed without them

1 Like

they are dependencies of firewall , as you must be using firewall they are already in your box .

see "opkg list-installed | grep 'kmod-ipt-nat' its there

opkg list-installed | grep 'kmod-ipt-nat'

kmod-ipt-nat - 4.14.63-1
kmod-ipt-nat-extra - 4.14.63-1

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.