sudo chmod +x makefast.sh sudo cp makefast.sh makeslow.sh
- Create a normal traffic control rule (or multiple traffic control rules)
- SSH into your Synology box
- Create a directory in /volume1 (or wherever) called SCHEDTC_SCRIPT
- CD into /etc/tc and copy the .conf rule to /volume1/SCHEDTC_SCRIPT/.conf.slow - where is the name of the network device on the Synology machine (eg.: eth0, eth1, bond0, etc.)
- CD into /volume1/SCHEDTC_SCRIPT
- Copy .conf.slow to .conf.fast
- Edit .conf.fast changing the "maxrate" value of any/all of your rules to the higher limit you want (the values are exactly as you set them in the GUI)
- Open vi to create the scrip with this cmd: 'vi makefast.sh'
- Add the following three lines: CODE: SELECT ALL
#!/bin/bash cp /volume1/SCHEDTC_SCRIPT/.conf.fast /etc/tc/.conf /usr/syno/bin/synotc_common restart 10. Then save and exit, and issue these commands back at the shell: CODE: SELECT ALL
chmod +x makefast.sh cp makefast.sh makeslow.sh 11. Then edit the "makeslow.sh" script substituting .conf.slow for .conf.fast 12. You can now use the GUI task scheduler to run /volume1/SCHEDTC_SCRIPT/makefast.sh to speed up the limit, and makeslow to slow it down.