---
title: "Mac Os端口重定向"
author: "superseven"
date: "2012-01-07T13:23:50Z"
tags: []
categories: ["操作系统"]
slug: "mac-os"
draft: false
lastmod: "2012-01-07T16:47:57Z"
id: 1337190
url: "https://superseven.iteye.com/blog/1337190"
---

8080端口重定向到80，因为Mac Os里80端口权限比较高。命令如下：
sudo ipfw add 100 fwd 127.0.0.1,8080 tcp from any to any 80 in

ps:ipfw命令
sudo ipfw list 查看自定义的规则
sudo del XXX 删除规则 如：sudo del 00100 