![]() Load anchor "com.apple" from "/etc/pf.anchors/com.apple" Original file: scrub-anchor "com.apple/*" Modify the file /private/etc/pf.conf but keep a trailing empty line ![]() Or rdr pass inet proto tcp from any to any port 80 -> 127.0.0.1 port 8080 Rdr pass on en1 inet proto tcp from any to any port 80 -> 127.0.0.1 port 8080 Rdr pass on en0 inet proto tcp from any to any port 80 -> 127.0.0.1 port 8080 With the following content and a trailing empty line rdr pass on lo0 inet proto tcp from any to any port 80 -> 127.0.0.1 port 8080 Please adjust the redirections to your needs.Ĭreate an anchor file in /private/etc/pf.anchors sudo touch /private/etc/pf.anchors/ In the example below all port 80 requests are forwarded to port 8080 on the same host. The modern way to forward ports in El Capitan is using pf.
0 Comments
Leave a Reply. |