Vyatta 端口转发设置

在 Vyatta 下进行端口转发设置也是一件很简单而直观的事情。 所谓端口转发,其实就是目标地址转换的一种应用,它应用的只是一个端口,而不是地址。
进入vyatta 设置界面,输入以下命令,即可将网关的82端口转发到内网机器的80端口了:

set service nat rule 71  type destination
set service nat rule 71  inbound-interface  pppoe0
set service nat rule 71  destination port 82
set service nat rule 71  inside-address address 192.168.10.8
set service nat rule 71  inside-address port 80
set service nat rule 71  protocol tcp

commit
save

很简单吧。

关于 清风

关注IT资讯,虚拟化技术,企业VPN, VoIP, CRM应用等。
本文章发表于 (This entry was posted in) linux 技术, Vyatta 专题 标签 (and tagged) , , . 收藏 (Bookmark the) 永久链接(permalink).

本文有一条评论

  1. 不错,支持下!

发表评论 Leave a Reply

邮箱不会出现在评论中(Your email address will not be published.) *号为必填项 Required fields are marked *

*

你可以使用一些简单的 HTML 命令。You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

请回答(What is) 8 + 3 ?
Please leave these two fields as-is:
IMPORTANT! To be able to proceed, you need to solve the following simple math (so we know that you are a human) :-)