1) Ok, I see your point about inserting the wshaper script to the post-firewall script. I would indeed be a good point to start the wshaper script from.Quote:
Originally Posted by Oleg
2) I've made an 'error' by using br0 and eth0, the right device should have been eth1.
I've checked the $1 variable in the post-firewall script and it says: eth1. So the settings were correct all the time, but my tests clearly made visible that shaping does not take place when the script is started from post-firewall:
(which is effectively: '/init/wshaper start "eth1" 976 460')Code:/init/wshaper start "$1" 976 460
This line does not start shaping because the pings rocket sky high when I start downloading.
But when I place the following line in post-boot, the pings stay low during downloads:
So, unless this method is not suitable to test Wondershaper, this proves two things:Code:/init/wshaper start "eth1" 976 460
1) Somehow the same command in post-boot works different then post-firewall. So post-firewall is not suitable for starting the wshaper script.
2) I definitely have the 1Mb downlink and 512 uplink, otherwise shaping would never succeed in keeping the pings low.
Oleg, have you done tests with Wondershaper and the post-firewall scripts in order to check if shaping does really take place?
