Hello to everyone
I wanted to limit my internet speed with terminal commands:
sudo ipfw pipe 1 config bw 200KBytes/s
sudo ipfw add pipe 1 all from any to any in
and that works.
But with computer restart that setting is gone, so I have to write it again.
And I came to idea to make a deamon that does it.
I wrote a file with content:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://
www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>ipfw</string>
<key>Program</key>
<string>/sbin/ipfw</string>
<key>ProgramArguments</key>
<array>
<string>/sbin/ipfw</string>
<string>/etc/ipfw.conf</string>
</array>
<key>RunAtLoad</key>
<true />
</dict>
</plist>
and save it on path /Library/Launch Daemons/ipwf.plist
and I also made a file /etc/ipfw.conf with content
/sbin/ipfw -f -q flush
/sbin/ipfw pipe 1 config bw 200KByte/s
/sbin/ipfw add pipe 1 all from any to any in
/sbin/ipfw -q /etc/ipfw.conf
but after computer restart I don't have limitation setting, and ipfw has just a default settings.
Can you help me?
I wanted to limit my internet speed with terminal commands:
sudo ipfw pipe 1 config bw 200KBytes/s
sudo ipfw add pipe 1 all from any to any in
and that works.
But with computer restart that setting is gone, so I have to write it again.
And I came to idea to make a deamon that does it.
I wrote a file with content:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://
www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>ipfw</string>
<key>Program</key>
<string>/sbin/ipfw</string>
<key>ProgramArguments</key>
<array>
<string>/sbin/ipfw</string>
<string>/etc/ipfw.conf</string>
</array>
<key>RunAtLoad</key>
<true />
</dict>
</plist>
and save it on path /Library/Launch Daemons/ipwf.plist
and I also made a file /etc/ipfw.conf with content
/sbin/ipfw -f -q flush
/sbin/ipfw pipe 1 config bw 200KByte/s
/sbin/ipfw add pipe 1 all from any to any in
/sbin/ipfw -q /etc/ipfw.conf
but after computer restart I don't have limitation setting, and ipfw has just a default settings.
Can you help me?