xwartz / xwartz.github.com

Home Page
https://xwartz.github.com/
1 stars 0 forks source link

升级OS X Yosemite 之后,ipfw被移除 #2

Closed xwartz closed 7 years ago

xwartz commented 10 years ago

解决方法,https://github.com/basecamp/pow/issues/452

只是搬运工,给自己看:

  1. 首先创建, touch touch /etc/pf.anchors/com.pow文件, 输入
rdr pass on lo0 inet proto tcp from any to any port 80 -> 127.0.0.1 port 8080
rdr pass on lo0 inet proto tcp from any to any port 443 -> 127.0.0.1 port 8443
rdr pass on en0 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 443 -> 127.0.0.1 port 8443

注意最后换行

  1. 打开, vim /etc/pf.conf文件,在 rdr-anchor "com.apple/*"之后添加: rdr-anchor "pow"load anchor "com.apple" from "/etc/pf.anchors/com.apple"之后添加: load anchor "pow" from "/etc/pf.anchors/com.pow" 注意最后换行
  2. 最后跑, sudo pfctl -f /etc/pf.conf&&sudo pfctl -e 就ok
zackexplosion commented 10 years ago

請問com.pow的內容與原文不同是因為您的設定與原作者不一樣嗎?還是pow的版本不一樣呢? 謝謝

xwartz commented 10 years ago

@cstony0917 原作者那个是有问题的,后面有回复。用我这个就行

xwartz commented 9 years ago

@molecar 你只能自己谷歌看看,我也不知道..