Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wifidog iptablesV1.4.10 REDIRECT does not work #295

Open
linsun78 opened this issue Mar 22, 2018 · 3 comments
Open

wifidog iptablesV1.4.10 REDIRECT does not work #295

linsun78 opened this issue Mar 22, 2018 · 3 comments

Comments

@linsun78
Copy link

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
Copy link
Member

benoitg commented Mar 22, 2018

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
Copy link
Author

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
Copy link
Member

benoitg commented Apr 5, 2018

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants