Last active
May 16, 2017 05:27
-
-
Save nodegin/834a52d4436e9afbc188494b21d404a9 to your computer and use it in GitHub Desktop.
redirect 80 to 8080 on macOS
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
... | |
rdr-anchor "com.apple/*" | |
rdr pass on lo0 inet proto tcp from any to port 80 -> 127.0.0.1 port 8080 | |
rdr pass on en0 inet proto tcp from any to port 80 -> 192.168.1.9 port 8080 | |
... |
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
<?xml version="1.0" encoding="UTF-8" ?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer/DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>com.pf.plist</string> | |
<key>Program</key> | |
<string>/sbin/pfctl</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/sbin/pfctl</string> | |
<string>-e</string> | |
<string>-f</string> | |
<string>/etc/pf.conf</string> | |
</array> | |
<key>RunAtLoad</key> | |
<true/> | |
<key>ServiceDescription</key> | |
<string>FreeBSD Packet Filter (pf) daemon</string> | |
<key>StandardErrorPath</key> | |
<string>/var/log/pf.log</string> | |
<key>StandardOutPath</key> | |
<string>/var/log/pf.log</string> | |
</dict> | |
</plist> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment