---
title: "mac 端口转发"
author: "tycomputer"
date: "2013-08-06T09:43:19Z"
tags: []
categories: ["操作系统"]
slug: "mac"
draft: false
lastmod: "2013-08-06T09:43:19Z"
id: 1920745
url: "https://tycomputer.iteye.com/blog/1920745"
---

ipfw 是 OS X 自带的防火墙程序
查看当前 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