[请问]iptables端口映射

由 techwolf 在 03-05-2004 16:09 发表:

[请问]iptables端口映射

我想把外网的80端口映射到内网的一台web server,下面的chain所怎么不行呢。

iptables -t nat -A PREROUTING -d $OUTER_IP -p tcp --dport 80 -j DNAT --to $WEB_IP

iptables -t nat -A POSTROUTING -d $WEB_IP -p tcp --dport 80 -j SNAT --to $FWALL_IP


《 Gone with Bits 》

I am that I am.(中文翻译略)


由 大熊宝宝 在 03-05-2004 17:39 发表:


指名接口啊 不然怎么。。。。

<font face="腩戾,verdana,

Published At
Categories with 服务器类
Tagged with
comments powered by Disqus