Created
December 27, 2013 12:35
-
-
Save olegokunevych/8146412 to your computer and use it in GitHub Desktop.
ipfw examples
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
sudo ipfw pipe 1 config bw 15KByte/s | |
creates a pipe that only allows up to 15KB/s to go through. | |
Then: | |
sudo ipfw add 1 pipe 1 src-port 80 | |
will attach that pipe to the outgoing traffic on port 80, effectively limiting the outgoing traffic of the web server. | |
sudo ipfw delete 1 | |
will remove the pipe from the port. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment