Morten Nilsen
2004-May-30 19:21 UTC
modified wondershaper script causes hardlock in server
Hi, I''ve modified my copy of the wondershaper script to add a few filters that allow traffic to and from a few specific ips go through with a speed of up to 100Mbits... I increased the root from 10 to 100mbit, and added this bit of code a bit further down the script; # Real time hosts for i in 62.101.244.63/32 216.74.158.11/32 216.74.158.3/32 216.74.158.57/32; do tc filter add dev $DEV parent 1:0 protocol ip prio 1 u32 match ip src $i flowid 1:0 tc filter add dev $DEV parent 1:0 protocol ip prio 1 u32 match ip dst $i flowid 1:0 done but after using this modified script, the server would at random intervals cease to function, not answering ping, not showing anything in the console. No pertinent log entries were made at the time either. Am I doing something stupid with this? -- Morten
Damion de Soto
2004-May-31 00:41 UTC
Re: modified wondershaper script causes hardlock in server
Hi Morten,> but after using this modified script, the server would at random > intervals cease to function, not answering ping, not showing anything in > the console. No pertinent log entries were made at the time either.You mean the console would be locked up and not responding ? Or did you mean you just couldn''t find any network errors/logs on the console ? If it''s locked up completely without a kernel panic or any other kind of error logged, I would tend to suspect a hardware problem. Regards, -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Damion de Soto - Software Engineer email: damion@snapgear.com SnapGear - A CyberGuard Company --- ph: +61 7 3435 2809 | Custom Embedded Solutions fax: +61 7 3891 3630 | and Security Appliances web: http://www.snapgear.com ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- Free Embedded Linux Distro at http://www.snapgear.org --- _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Morten Nilsen
2004-May-31 10:08 UTC
Re: modified wondershaper script causes hardlock in server
Damion de Soto wrote:> Hi Morten, >> but after using this modified script, the server would at random >> intervals cease to function, not answering ping, not showing anything in >> the console. No pertinent log entries were made at the time either. > You mean the console would be locked up and not responding ? > Or did you mean you just couldn''t find any network errors/logs on the console ? > > If it''s locked up completely without a kernel panic or any other kind of error > logged, I would tend to suspect a hardware problem.complete hardlock I did suspect hardware too, but when I moved the harddrive to another box, the problem followed over.. I did move the two rtl8139 adapters too, and after a couple hardlocks, removed one of them and used the integrated controller instead. That seemed to fix it, but the next day it started locking all over again. If I don''t use wondershaper, the system is 100% stable. Cheers, -- Morten