---
title: "linux 端口映射 命令"
author: "lam"
date: "2011-11-11T17:25:23Z"
tags: []
categories: ["操作系统"]
slug: "linux"
draft: false
lastmod: "2011-11-11T17:25:23Z"
id: 1254544
url: "https://lam.iteye.com/blog/1254544"
---

有些端口不被root权限的帐号调用,我们可以通过端口映射实现如下:
iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080