Questions tagged «ipfw»

2
OS X:从ipfw到pfctl-转发端口80和443
我找到了一种使用ipfw将端口80和443转发到其他任意端口(在我的情况下为3000和3001)的方法。但是不推荐使用ipfw,而将其替换为pfctl。这是我的ipfw声明: sudo ipfw flush sudo ipfw add 100 fwd 127.0.0.1,3000 tcp from any to me 443 sudo ipfw add 200 fwd 127.0.0.1,3001 tcp from any to me 80 sudo ipfw show 我如何用pfctl做同样的事情?
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.