Unable to disable Bandwidth Monitoring with Shorewall

If you enable the Bandwidth Monitoring in Webmin and are you ising shorewall for firewall its impossibile to disable via Webmin the Bandwidth Monitoring becaus the botton "Turn Off Monitoring" does not appear.

For more details see:

http://www.virtualmin.com/node/11273

Thanks

Status: 
Closed (fixed)

Comments

Is it just showing the "Setup Now" button instead?

If so, what does your /etc/shorewall/start file contain?

We have the same problem. The bandwidth monitoring page shows the "setup now" button (see screenshot).

cat /etc/shorewall/start
run_iptables -I INPUT -i eth1 -j LOG --log-prefix BANDWIDTH_IN: --log-level debug
run_iptables -I FORWARD -i eth1 -j LOG --log-prefix BANDWIDTH_IN: --log-level debug
run_iptables -I FORWARD -o eth1 -j LOG --log-prefix BANDWIDTH_OUT: --log-level debug
run_iptables -I OUTPUT -o eth1 -j LOG --log-prefix BANDWIDTH_OUT: --log-level debug

Thanks in advance for your help.

tdueck - In the /etc/webmin/bandwidth/config file, is the iface= line set to iface=eth1 ? If not, it should be ..

It looks like its set correctly.

cat /etc/webmin/bandwidth/config

bandwidth_log=/var/log/bandwidth

iface=eth1

firewall_system=shorewall

Ok, I see the cause of this now .. it's a Webmin bug.

The fix is to add a single blank link to the top of /etc/shorewall/start

A proper fix will be in Webmin 1.510 and later.

Thanks for your prompt responses. Adding a blank line at the top of /etc/shorewall/start fixed the problem.

Automatically closed -- issue fixed for 2 weeks with no activity.