pyrovski / wrtbwmon

Linux bandwidth monitor with per-device tracking
Other
179 stars 47 forks source link

iptables errors on setup #26

Closed thep0stmaster closed 4 years ago

thep0stmaster commented 7 years ago

Linksys WRT1900AC OpenWrt Chaos Calmer 15.05.1 / LuCI 15.05-142-gb6330a1 Release (git-15.363.78009-956be55)

root@connect:~# wrtbwmon.sh remove root@connect:~# wrtbwmon.sh setup /tmp/usage.db iptables v1.4.21: host/network pkts' not found Tryiptables -h' or 'iptables --help' for more information. iptables v1.4.21: host/network pkts' not found Tryiptables -h' or 'iptables --help' for more information. Bad argument RETURN' Tryiptables -h' or 'iptables --help' for more information. Bad argument RETURN' Tryiptables -h' or 'iptables --help' for more information. iptables v1.4.21: host/network Chain' not found Tryiptables -h' or 'iptables --help' for more information. iptables v1.4.21: host/network Chain' not found Tryiptables -h' or 'iptables --help' for more information. iptables v1.4.21: host/network Zeroing' not found Tryiptables -h' or 'iptables --help' for more information. iptables v1.4.21: host/network Zeroing' not found Tryiptables -h' or 'iptables --help' for more information. awk: can't open '': No such file or directory root@connect:~#

What could be causing these errors?

thep0stmaster commented 7 years ago

root@connect:~# wrtbwmon.sh remove; rm -f /tmp/usage.db root@connect:~# wrtbwmon.sh setup /tmp/usage.db ERROR: /tmp/usage.db not writable root@connect:~# wrtbwmon.sh remove; rm -f /tmp/usage.db root@connect:~# touch /tmp/usage.db && wrtbwmon.sh setup /tmp/usage.db iptables v1.4.21: host/network pkts' not found Tryiptables -h' or 'iptables --help' for more information. iptables v1.4.21: host/network pkts' not found Tryiptables -h' or 'iptables --help' for more information. Bad argument RETURN' Tryiptables -h' or 'iptables --help' for more information. Bad argument RETURN' Tryiptables -h' or 'iptables --help' for more information. iptables v1.4.21: host/network Chain' not found Tryiptables -h' or 'iptables --help' for more information. iptables v1.4.21: host/network Chain' not found Tryiptables -h' or 'iptables --help' for more information. iptables v1.4.21: host/network Zeroing' not found Tryiptables -h' or 'iptables --help' for more information. iptables v1.4.21: host/network Zeroing' not found Tryiptables -h' or 'iptables --help' for more information. awk: can't open '': No such file or directory

pyrovski commented 7 years ago

Can you send me the output of "iptables -nvL -t mangle"? You can also try adding "set -x" after the comment block in the wrtbwmon script and sending that output.

pyrovski commented 4 years ago

Closed due to inactivity.