0
OS X 下用 IPFW 作端口转发
source link: https://fann.im/blog/2013/01/22/port-forwarding-using-ipfw-on-os-x/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
OS X 下用 IPFW 作端口转发
Jan 22, 2013
用 ipfw 监听本地 80 端口然后转发到 8080 等端口,方便本地开发时调试操作。ipfw 是 OS X 自带的防火墙程序,类似 Linux 下的 iptables。
- 查看当前 ipfw 规则:
sudo ipfw show
- port 80 to 8080 forward:
sudo ipfw add 100 fwd 127.0.0.1,8080 tcp from any to any 80 in
- 清除 ipfw 规则
sudo ipfw flush
Done.
via Port Forwarding (80 to 8080 for Tomcat) Using IPFW on Mac OSX
Was this page helpful?
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK