Last active
May 4, 2017 16:10
-
-
Save Toshakins/865d15985c38478d23f15aa768be0129 to your computer and use it in GitHub Desktop.
Redirect ports on OS X El Capitan via embedded firewall
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
#!/bin/bash | |
echo " | |
rdr pass inet proto tcp from any to any port 443 -> 127.0.0.1 port 4443 | |
" | sudo pfctl -ef - |
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
#!/bin/bash | |
sudo ssh -L localhost:80:localhost:8888 -fN -i /Users/antono/virt/.vagrant/machines/default/virtualbox/private_key -p 2222 vagrant@localhost |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment