Vyatta解决内网web服务器回流
Wan--eth0:1.1.1.1Lan--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 address1.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 address192.168.1.254/24
这个东西没接触过,貌似设置一些规则。 楼主威武值得我们好好学习下
页:
[1]