NICMx / Jool

SIIT and NAT64 for Linux
GNU General Public License v2.0
328 stars 66 forks source link

jool: unrecognized option `--iptables' #344

Closed lirenjieArthur closed 4 years ago

lirenjieArthur commented 4 years ago

Hi, I tried to use jool to run "stateful NAT64" in OpenWRT(19.07.4) following by this tutorial:https://www.jool.mx/en/run-nat64.html. But I got some troubles. The problem is as follows:

root@OpenWrt:~# jool instance add "example" --iptables --pool6 64:ff9b::/96
jool: unrecognized option `--iptables'
Try `jool --help' or `jool --usage' for more information.

the version of kmod-jool is:

root@OpenWrt:~# opkg info kmod-jool
Package: kmod-jool
Version: 4.14.195+3.5.7-2
Depends: kernel (= 4.14.195-1-18384755d38fc43c447d83d4a3e07054), kmod-crypto-md5, kmod-nf-conntrack, kmod-nf-conntrack6
Status: install user installed
Architecture: mipsel_24kc
Installed-Time: 1601430156

and the version of jool-tools is:

root@OpenWrt:~# opkg info jool-tools
Package: jool-tools
Version: 3.5.7-2
Depends: libc, libnl200, ethtool
Status: install user installed
Architecture: mipsel_24kc
Installed-Time: 1601430186

installation goes as following command:

opkg update
opkg install kmod-jool
opkg install jool-tools

Am I doing anything wrong or missing something? How would you do it?

ydahhrk commented 4 years ago

OpenWRT's "official" Jool package has been unmaintained for two and a half years. It'll apparently be stuck in version 3.5.7 forever.

You can find the old 3.5 documentation here. (But let me tell you up front: Jool used to lack the iptables feature back then. So if it's important to you, it won't help you.)

The updated version is accesible from OpenWRT, but it lives as a member of a community-maintained (but still arguably "official") package "feed." To install the new version, I understand that you have to compile a new OpenWRT image, while enabling the "packages" feed definitions.

Now that you mention this bug, I should probably explain all of this in Jool's OpenWRT documentation... or delete it altogether.

Since you're closer to OpenWRT than I am, tell me: Is this "compiling a special OpenWRT image" gimmic normal and practical?

lirenjieArthur commented 4 years ago

OpenWRT's "official" Jool package has been unmaintained for two and a half years. It'll apparently be stuck in version 3.5.7 forever.

You can find the old 3.5 documentation here. (But let me tell you up front: Jool used to lack the iptables feature back then. So if it's important to you, it won't help you.)

The updated version is accesible from OpenWRT, but it lives as a member of a community-maintained (but still arguably "official") package "feed." To install the new version, I understand that you have to compile a new OpenWRT image, while enabling the "packages" feed definitions.

Now that you mention this bug, I should probably explain all of this in Jool's OpenWRT documentation... or delete it altogether.

Since you're closer to OpenWRT than I am, tell me: Is this "compiling a special OpenWRT image" gimmic normal and practical?

Thanks a lot! I'm sorry for that I'm not familar to OpenWRT, so I don't know how to answer your question.

ydahhrk commented 4 years ago

The OpenWRT documentation now has a large block explaining this issue: https://nicmx.github.io/Jool/en/openwrt.html

(This will be reflected in jool.mx in at most three business days.)