Last active
September 25, 2015 18:18
-
-
Save fernyb/963929 to your computer and use it in GitHub Desktop.
Port forward request from port 3000 to port 80
This file contains hidden or 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
# View rules | |
sudo ipfw show | |
# Add rule | |
sudo ipfw add 100 fwd 127.0.0.1,3000 tcp from any to me dst-port 80 | |
# Remove rules | |
sudo ipfw flush |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment