iptables v1.8.3 (legacy): can't initialize iptables table `NAT': Table does not exist (do you need to insmod?)

There are 5 replies in this Thread which was already clicked 3,157 times. The last Post () by nasky.

  • Hi all, on my ZGemma H7s with openatv 6.4 I installed all (i think) necessary module to iptables works.


    Code
    root@zgemmah7:~# ls /lib/modules/`uname -r`/kernel/net/ipv4/netfilter/
    ip_tables.ko               ipt_ah.ko                  iptable_mangle.ko          nf_defrag_ipv4.ko          nf_nat_ipv4.ko             nf_reject_ipv4.ko
    ipt_REJECT.ko              iptable_filter.ko          nf_conntrack_ipv4.ko       nf_log_ipv4.ko             nf_nat_masquerade_ipv4.ko
    Code
    root@zgemmah7:~# ls /lib/modules/`uname -r`/kernel/net/netfilter/
    nf_conntrack.ko   nf_nat.ko         xt_connbytes.ko   xt_connmark.ko    xt_state.ko
    nf_log_common.ko  x_tables.ko       xt_connlimit.ko   xt_multiport.ko   xt_tcpudp.ko


    But when I try to load iptables NAT through wireguard launching

    Code
    [#] iptables -A FORWARD -i wg0 -j ACCEPT; iptables -A FORWARD -o wg0 -j ACCEPT; iptables -t NAT -A POSTROUTING -o eth0 -j MASQUERADE
    iptables v1.8.3 (legacy): can't initialize iptables table `NAT': Table does not exist (do you need to insmod?)
    Perhaps iptables or your kernel needs to be upgraded.

    Any helps it should be really appreciate!

    Edited once, last by Davicom ().

  • Code
    iptables --table nat -A FORWARD -i wg0 -j ACCEPT
    iptables v1.8.3 (legacy): can't initialize iptables table `nat': Table does not exist (do you need to insmod?)
    Perhaps iptables or your kernel needs to be upgraded.


    Code
    root@zgemmah7:~# insmod /lib/modules/4.10.12/kernel/net/ipv4/netfilter/nf_nat_ipv4.ko
    insmod: ERROR: could not insert module /lib/modules/4.10.12/kernel/net/ipv4/netfilter/nf_nat_ipv4.ko: File exists
  • Code
    root@zgemmah7:~# opkg install iptables
    iptables: unsatisfied recommendation for kernel-module-ipt-masquerade
    iptables: unsatisfied recommendation for kernel-module-iptable-nat
    Breaking circular dependency on iptables for iptables-module-xt-standard.
  • OpenSpa installed iptables in some receivers, not all receivers could activate iptables


    Test the last openspa in your receiver, maybe you have luck

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!