Created
August 1, 2012 21:35
-
-
Save buddhisthead/3230974 to your computer and use it in GitHub Desktop.
Mac OS X IP firewall for traffic limiting
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This snippet uses the IP firewall rules on Mac OS X to limit traffic between two specific machines. Access to other addresses, like the internet is unchanged. | |
sudo ipfw pipe 1 config delay 30ms | |
sudo ipfw pipe 2 config delay 30ms | |
sudo ipfw add pipe 1 ip from 192.168.1.4 to 192.168.1.7 | |
sudo ipfw add pipe 2 ip from 192.168.1.7 to 192.168.1.4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment