Mac Port Mapping
Good pit
Osx10.10mac removed IPFW instead of PF
PF used to be useless.
Document Search
Mac's PF syntax, not found. BSD is very full, the heart of the happy to take a try.
Http://www.openbsd.org/faq/pf/rdr.html
Tried the BSD a few example are not.
Report syntax error
Pfctl:syntax error in config FILE:PF rules not loaded
Mac PF and BSD pf What is the difference, the version is wrong? Is the Mac a castrated version?
RDR Pass on utun0 Proto TCP from any to any port 29017-127.0.0.1 Port 27017
Effect
RDR Pass on Lo0 inet Proto TCP from all to any port 8987, 172.16.231.185 Port 80
does not take effect
That is, this approach can only be mapped to ports on the 127.0.0.1
Https://github.com/basecamp/powpow is a good thing.
Can implement port forwarding on different servers
But there are limitations.
Only the HTTP protocol can be forwarded
No other protocols.
The last one was to use
Socat tcp4-listen:7888,fork tcp4:172.16.231.185:80
But this performance is problematic.
Cond
Mac Port Forwarding Scheme