ensp双向NAT

防火墙FW1

interface g1/0/0

ip address 192.168.71.1 24

interface g1/0/1

ip address 192.168.71.1 24

interface g1/0/2

ip address 200.0.71.1 24

 

firewall zone trust

add interface g1/0/0

firewall zone dmz

add interface g1/0/1

firewall zone untrust

add interface g1/0/2

 

ip address-set client246 type object

address 192.168.71.2 0

address 192.168.71.4 0

address 192.168.71.6 0

 

ip address-set client35 type object

address 192.168.71.3 0

address 192.168.71.5 0

 

time-range daytime

period-range 08:00:00 to 17:30:00 daily

time-range evening

period-range 17:30:00 to 22:00:00 daily

 

security-policy(安全策略)

rule name P1

destination-zone untrust

source-address address-set client246

time-range daytime

service http

action permit

 

rule name P2

destination-zone untrust

source-address 192.168.71.7 32

action permit

 

rule name P3

destination-zone untrust

source-address address-set client35

time-range evening

service ftp

action permit

 

rule name P4

destination-zone dmz

source-zone trust

action permit

 

rule name P5

destination-zone dmz

source-zone untrust

service http

action permit

 

ip route-static 200.100.70.0 24 200.0.70.2(静态)

ip route-static 200.200.70.0 24 200.0.70.2(静态)

 

nat address-group natpool

section 200.0.70.10 200.0.70.11

mode pat

 

nat-policy

rule name P1

destination-zone untrust

source-zone trust

action source-nat address-group natpool

 

nat server httpserver protocol tcp global 200.0.70.100 www inside 192.168.70.2 www

 

路由器R1

interface g0/0/0

ip address 200.0.70.2 24

interface g0/0/1

ip address 200.100.70.1 24

interface g0/0/2

ip address 200.200.70.1 24

 

ip route-static 192.168.70.0 24 200.0.70.1(静态)

trust246三台主机在8:00-17:30可以访问untrust http服务器

7b95294cab414ea784c5740159d24a48.png

 trust7主机可以全天访问untrust

6a9c6b17971f459bb51ab0dcde10970a.png

 

  • 21
    点赞
  • 21
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值