Mac Port Forwarding Scheme

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.