wifidog / wifidog-gateway

Repository for the wifidog-gateway captive portal designed for embedded systems
GNU General Public License v2.0
756 stars 319 forks source link

wifidog iptablesV1.4.10 REDIRECT does not work #295

Open linsun78 opened 6 years ago

linsun78 commented 6 years ago

wifidog log : (fw_iptables.c:121) iptables command failed(1): iptables -t nat -A WD_br-lan_Unknown -p tcp --dport 80 -j REDIRECT --to-ports 2060 iptables v1.4.10: unknown option `--to-ports'

kernel version:Linux OpenWrt 3.3.8 iptables version: iptables v1.4.10

benoitg commented 6 years ago

Where did you get your wifidog package? It seems you are missing a kernel module (should be a dependency), iptables-mod-nat-extra or some such...

linsun78 commented 6 years ago

I got package on https://github.com/wifidog/wifidog-gateway/ how and where can I get iptables-mod-nat-extra module or other module, I think my kernel verison is too low to dependent REDIRECT option

benoitg commented 6 years ago

@linsun78 I presume you mean you compiled your pachage from the sources on github?

In any event, to install iptables-mod-nat-extra , the command is:

opkg install iptables-mod-nat-extra

See https://openwrt.org/docs/guide-user/services/captive-portal/wireless.hotspot.wifidog?s[]=wifidog for more information