Author Topic: Trafficshaping configuration error  (Read 522 times)

m0rtal

  • Zen Apprentice
  • *
  • Posts: 2
  • Karma: +1/-0
    • View Profile
Trafficshaping configuration error
« on: April 27, 2012, 12:08:49 »
When I'm trying to configure trafficshaping module and save changes, I got thiss error no matter what settings are:

Code: [Select]
2012/04/27 12:52:06 INFO> GlobalImpl.pm:539 EBox::GlobalImpl::saveAllModules - Saving config and restarting services: firewall trafficshaping
2012/04/27 12:52:06 INFO> Base.pm:228 EBox::Module::Base::save - Restarting service for module: firewall
2012/04/27 12:52:09 INFO> Base.pm:228 EBox::Module::Base::save - Restarting service for module: trafficshaping
2012/04/27 12:52:10 ERROR> Sudo.pm:213 EBox::Sudo::_rootError - root command set -e
/sbin/iptables  -t mangle  -A EBOX-L7SHAPER-ppp0       -j NFQUEUE --queue
/sbin/iptables -t mangle -I EBOX-SHAPER-ppp0 -m mark --mark 0x100/0xFF00 -j MARK --set-mark 0x0
/sbin/iptables -t mangle -I EBOX-SHAPER-ppp0 -m mark --mark 0x200/0xFF00 -j MARK --set-mark 0x0
/sbin/iptables -t mangle -A EBOX-SHAPER-ppp0 -m mark --mark 0x500/0xFF00 -j MARK --set-mark 0x500
/sbin/iptables -t mangle -A EBOX-SHAPER-ppp0 -m mark --mark 0x600/0xFF00 -j MARK --set-mark 0x600 failed.
Error output: iptables v1.4.4: option `--queue' requires an argument
 Try `iptables -h' or 'iptables --help' for more information.

Command output: .
Exit value: 2
2012/04/27 12:52:10 ERROR> GlobalImpl.pm:612 EBox::GlobalImpl::__ANON__ - Failed to save changes in module trafficshaping: root command set -e
/sbin/iptables  -t mangle  -A EBOX-L7SHAPER-ppp0       -j NFQUEUE --queue
/sbin/iptables -t mangle -I EBOX-SHAPER-ppp0 -m mark --mark 0x100/0xFF00 -j MARK --set-mark 0x0
/sbin/iptables -t mangle -I EBOX-SHAPER-ppp0 -m mark --mark 0x200/0xFF00 -j MARK --set-mark 0x0
/sbin/iptables -t mangle -A EBOX-SHAPER-ppp0 -m mark --mark 0x500/0xFF00 -j MARK --set-mark 0x500
/sbin/iptables -t mangle -A EBOX-SHAPER-ppp0 -m mark --mark 0x600/0xFF00 -j MARK --set-mark 0x600 failed.
Error output: iptables v1.4.4: option `--queue' requires an argument
 Try `iptables -h' or 'iptables --help' for more information.

Command output: .
Exit value: 2
2012/04/27 12:52:10 ERROR> GlobalImpl.pm:664 EBox::GlobalImpl::saveAllModules - The following modules failed while saving their changes, their state is unknown: trafficshaping

What's wrong?
My intention was to set first rule for p2p traffic (limit bandwith and reduce priority).

jbman

  • Zen Apprentice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Trafficshaping configuration error
« Reply #1 on: May 09, 2012, 12:33:36 »
same error for me as well with trafficshaping set for p2p

Javier Amor Garcia

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1190
  • Karma: +10/-0
    • View Profile
Re: Trafficshaping configuration error
« Reply #2 on: June 11, 2012, 04:15:22 »
This a 2.3 error and it is fixed in a development branch.

I copy from trac ticket #4379:

Quote
this error was triggered for a change of syntax for the NFQUEUE target. It has benn fixed in the development branch. If they isn't any unexpected error the new version will be later published this week.

However if you can hotfix your system you can do it editing the file /usr/share/perl5/EBox/TrafficShaping.pm and replacing '--queue' for '--queue-num', after that restart the web interface with 'sudo /etc/init.d/zentyal apache restart'.

http://trac.zentyal.org/ticket/4379

Regards,

Javier

christian

  • Zen Hero
  • *****
  • Posts: 3652
  • Karma: +83/-14
    • View Profile
Re: Trafficshaping configuration error
« Reply #3 on: June 11, 2012, 04:21:31 »
Does it mean this topic should be moved in the "beta" section?
Well my question should rather be: "do you confirm you face this error while using Zentyal 2.3 beta?"

Javier Amor Garcia

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1190
  • Karma: +10/-0
    • View Profile
Re: Trafficshaping configuration error
« Reply #4 on: June 11, 2012, 04:36:47 »
Yes, it is beta. You can move it.