nameif ethernet0 outside security0
nameif ethernet1 inside security100
interface ethernet0 auto
interface ethernet1 auto
ip address outside 192.168.10.2(公网IP) 255.255.255.252
ip address inside 192.168.1。1 255.255.255.0
global (outside) 1 61.138.98.199 (公网IP)netmask 255.255.255.252
nat (inside) 1 0.0.0.0 0.0.0.0 0 0
static (inside,outside) 61.138.98.252(WEB服务器的外部IP) 192.168.1.254(WEB服务器的内部IP) netmask 255.255.255.255 0 0
conduit permit tcp host 61.138.98.252 eq www any
route outside 0.0.0.0 0.0.0.0 192.168.10.1(路由器的内接口IP) 1
最后需在路由器上做路由即可! |