I wanted to limit the bandwidth for all traffic that comes and goes outside my network - keeping speed at max on the local net.
I call this one: throttle_on
The first line limits all traffic to 100kbit/s
The following lines, omit traffic source and destination calls to/from my local subnets: 192.168.1.* and 192.168.2.*
What I called throttle_off would get everything back in order, and remove all rules:
sudo ipfw flush
The rules reset is upon restarting the system. If you want these to remain, you can either have these run at startup, or perhaps add a cron-tab.
Needless to say, this all needs to be done in the Terminal, and you need to have an admin password for the sudo commands to work.
Sample application - keep the streaming connections (youtube) at a lower but usable speed, and fast enough to allow access to the schools portal for homework updates and online classes, work VPNs, etc. Flush the settings from Friday evening through Saunday afternoon.
For OSX - Cronix is a simple GUI front end for cron management.
I call this one: throttle_on
sudo ipfw pipe 1 config bw 100kbit/s
sudo ipfw add pipe 1 not src-ip 192.168.1.0/24
sudo ipfw add pipe 1 not dst-ip 192.168.1.0/24
sudo ipfw add pipe 1 not src-ip 192.168.2.0/24
sudo ipfw add pipe 1 not dst-ip 192.168.2.0/24
sudo ipfw add pipe 1 not src-ip 192.168.1.0/24
sudo ipfw add pipe 1 not dst-ip 192.168.1.0/24
sudo ipfw add pipe 1 not src-ip 192.168.2.0/24
sudo ipfw add pipe 1 not dst-ip 192.168.2.0/24
The first line limits all traffic to 100kbit/s
The following lines, omit traffic source and destination calls to/from my local subnets: 192.168.1.* and 192.168.2.*
What I called throttle_off would get everything back in order, and remove all rules:
sudo ipfw flush
The rules reset is upon restarting the system. If you want these to remain, you can either have these run at startup, or perhaps add a cron-tab.
Needless to say, this all needs to be done in the Terminal, and you need to have an admin password for the sudo commands to work.
Sample application - keep the streaming connections (youtube) at a lower but usable speed, and fast enough to allow access to the schools portal for homework updates and online classes, work VPNs, etc. Flush the settings from Friday evening through Saunday afternoon.
For OSX - Cronix is a simple GUI front end for cron management.
No comments:
Post a Comment