OpenWrt Forum Archive

Topic: Trubbles with iptables

The content of this topic has been archived on 13 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I have tl-mr3020 with openwrt 14.07 and configured wifidog to authpuppy server. I get error message page, when enable Policy to limit time duration. I found this errors in logs

iptables: No chain/target/match by that name.
[3][Thu Jul 27 17:00:45 2017][4433](fw_iptables.c:118) iptables command failed(1): iptables -t mangle -D WiFiDog_br-wln_Outgoing -s 192.168.1.133 -m mac --mac-source 10:68:3f:f9:ee:76 -j MARK --set-mark 0
iptables: Bad rule (does a matching rule exist in that chain?).
[3][Thu Jul 27 17:00:45 2017][4433](fw_iptables.c:118) iptables command failed(1): iptables -t mangle -D WiFiDog_br-wln_Incoming -d 192.168.1.133 -j ACCEPT

I have tried to add new chain manual, but got

root@OpenWrt:~# iptables -t mangle -N WiFiDog_br-wln_Outgoing
iptables: Chain already exists.
root@OpenWrt:~# iptables -L -n -v | grep Out
root@OpenWrt:~#

nothing

What can I do to resolve this trubble?

You have to specify the table also with the list (-L) command, it will use the filter table otherwise.

iptables -t mangle -L -n -v | grep Out

The discussion might have continued from here.