找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 9264|回复: 2

[Vyatta] Vyatta解决内网web服务器回流

[复制链接]
发表于 2011-11-30 21:04:10 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

×
Wan--eth0:1.1.1.1
Lan--eth1:192.168.1.254
WebServer:192.168.1.10

内网用户也可以通过域名访问自己的web服务器了。

-------------------------------------------------------------------------------------------------------------------------------------------------------------

set service nat rule 201
set service nat rule 201 type destination
set service nat rule 201 inbound-interface eth0
set service nat rule 201 protocol tcp
set service nat rule 201 destination address 1.1.1.1
set service nat rule 201 destination port 80
set service nat rule 201 source address 0.0.0.0/0
set service nat rule 201 inside-address address 192.168.1.10

set service nat rule 202
set service nat rule 202 type destination
set service nat rule 202 inbound-interface eth1
set service nat rule 202 protocol tcp
set service nat rule 202 destination address  1.1.1.1
set service nat rule 202 destination port 80
set service nat rule 202 source address 0.0.0.0/0
set service nat rule 202 inside-address address 192.168.1.10

set service nat rule 203
set service nat rule 203 type masquerade
set service nat rule 203 outbound-interface eth1
set service nat rule 203 protocol tcp
set service nat rule 203 destination address 192.168.1.10
set service nat rule 203 destination port 80
set service nat rule 203 source address  192.168.1.254/24
routeros
发表于 2011-12-6 21:35:58 | 显示全部楼层
这个东西没接触过,貌似设置一些规则。
routeros
回复

使用道具 举报

发表于 2014-11-29 12:49:39 | 显示全部楼层
楼主威武值得我们好好学习下
routeros
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|手机版|小黑屋|软路由 ( 渝ICP备15001194号-1|渝公网安备 50011602500124号 )

GMT+8, 2024-11-6 07:50 , Processed in 0.047388 second(s), 4 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表