Skip to content

Instantly share code, notes, and snippets.

@pjan
Created August 6, 2013 06:03
Show Gist options
  • Save pjan/6162393 to your computer and use it in GitHub Desktop.
Save pjan/6162393 to your computer and use it in GitHub Desktop.
Port redirection in OSX
# you have to run this after every reboot (route is not persistent)
# 2 lines added below; deduct if more needed...
sudo ipfw add 100 fwd 127.0.0.1,8080 tcp from any to me 80
sudo ipfw add 101 fwd 127.0.0.1,8443 tcp from any to me 443
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment