• 全部
  • 经验案例
  • 典型配置
  • 技术公告
  • FAQ
  • 漏洞说明
  • 全部
  • 全部
  • 大数据引擎
  • 知了引擎
产品线
搜索
取消
案例类型
发布者
是否解决
是否官方
时间
搜索引擎
匹配模式
高级搜索

F100-S-G acl中deny了的ip段还是能访问外网,请问如何解决?

2019-04-22提问
  • 0关注
  • 1收藏,1353浏览
粉丝:0人 关注:0人

问题描述:

#
 version 5.20, Release 5142P02
#
 sysname chengdu
#
 clock timezone Beijing add 08:00:00
#
 undo voice vlan mac-address 00e0-bb00-0000
#
 ike local-name chengdu
#
 interzone policy default by-priority
#
 domain default enable system
#
 telnet server enable
#
 port-security enable
#
 undo alg dns
 undo alg rtsp
 undo alg h323
 undo alg sip
 undo alg sqlnet
 undo alg pptp
 undo alg ils
 undo alg nbt
 undo alg msn
 undo alg qq
 undo alg tftp
 undo alg sccp
 undo alg gtp
#
session synchronization enable
#
 password-recovery enable
#
acl number 3000
 rule 0 deny ip source 192.168.2.0 0.0.0.255 destination 192.168.0.0 0.0.0.255
 rule 1 deny ip source 192.168.2.0 0.0.0.255 destination 192.168.111.0 0.0.0.255
 rule 2 permit ip source 192.168.2.0 0.0.0.255 destination 47.98.104.125 0
 rule 3 permit ip source 192.168.2.0 0.0.0.255 destination 116.62.215.145 0
 rule 4 permit ip source 192.168.2.0 0.0.0.255 destination 116.62.126.211 0
 rule 5 permit ip source 192.168.2.0 0.0.0.255 destination 47.99.224.84 0
 rule 20 permit ip source 192.168.20.0 0.0.0.255
 rule 30 deny ip
acl number 3001
 rule 0 permit ip source 192.168.2.0 0.0.0.255 destination 192.168.0.0 0.0.0.255
acl number 3002
 rule 0 permit ip source 192.168.2.0 0.0.0.255 destination 192.168.111.0 0.0.0.2
55
#
vlan 1
#
domain system
 access-limit disable
 state active
 idle-cut disable
 self-service-url disable
#
pki domain default
  crl check disable
#
ike proposal 11
#
ike proposal 12
 encryption-algorithm 3des-cbc
 dh group2
 authentication-algorithm md5
#
ike peer chengdu
 exchange-mode aggressive
 proposal 11
 pre-shared-key cipher $c$3$0LsNcZVrkUfqgwmhirY6b+FXy6zeRClAjF4+eSf6pOw=
 id-type name
 remote-name hangzhou
 remote-address 124.160.92.178
 local-name chengdu
 nat traversal
#
ike peer chengdu12
 exchange-mode aggressive
 proposal 12
 pre-shared-key cipher $c$3
 id-type name
 remote-name shimaozhongxin
 remote-address 60.191.109.90
 local-name chengdu12
 nat traversal
#
ipsec transform-set 1
 encapsulation-mode tunnel
 transform esp
 esp authentication-algorithm md5
 esp encryption-algorithm des
#
ipsec transform-set 12
 encapsulation-mode tunnel
 transform esp
 esp authentication-algorithm md5
 esp encryption-algorithm 3des
#
ipsec policy chengdu 10 isakmp
 security acl 3001
 ike-peer chengdu
 transform-set 1
#
ipsec policy chengdu 12 isakmp
 security acl 3002
 ike-peer chengdu12
 transform-set 12
#
user-group system
 group-attribute allow-guest
#
local-user admin
 password cipher $c$3
 authorization-attribute level 3
 service-type telnet
 service-type web
#
cwmp
 undo cwmp enable
#
interface Dialer1
 nat outbound 3000
 link-protocol ppp
 ppp chap user CD83375221
 ppp chap password cipher $c$3$
 ppp pap local-user CD83375221 password cipher $c$
TM5IA+qb
 ppp ipcp dns request
 mtu 1400
 ip address ppp-negotiate
 tcp mss 1024
 dialer user cd83375221
 dialer user pppoeclient
 dialer-group 1
 dialer bundle 1
 dialer timer idle 0
 ipsec policy chengdu
#
interface NULL0
#
interface GigabitEthernet0/0
 port link-mode route
 ip address 172.12.12.1 255.255.255.0
#
interface GigabitEthernet0/1
 port link-mode route
 pppoe-client dial-bundle-number 1
#
interface GigabitEthernet0/2
 port link-mode route
 ip address 10.0.0.1 255.255.255.0
#
interface GigabitEthernet0/3
 port link-mode route
#
interface GigabitEthernet0/4
 port link-mode route
#
vd Root id 1
#
zone name Management id 0
 priority 100
 import interface GigabitEthernet0/0
zone name Local id 1
 priority 100
zone name Trust id 2
 priority 85
 import interface GigabitEthernet0/2
zone name DMZ id 3
 priority 50
zone name Untrust id 4
 priority 5
 import interface Dialer1
 import interface GigabitEthernet0/1
switchto vd Root
 object network subnet da
  subnet 192.168.0.0 0.0.0.255
 object network subnet nw
  subnet 192.168.2.0 0.0.0.255
 object network subnet sm
  subnet 192.168.111.0 0.0.0.255
 object service 3389
  service tcp destination-port 3389
 zone name Management id 0
 ip virtual-reassembly
 zone name Local id 1
 ip virtual-reassembly
 zone name Trust id 2
 ip virtual-reassembly
 zone name DMZ id 3
 ip virtual-reassembly
 zone name Untrust id 4
 ip virtual-reassembly
 interzone source Trust destination Untrust
  rule 0 deny
   source-ip nw
   destination-ip da
   service 3389
   rule enable
 interzone source Untrust destination Trust
  rule 0 permit
   source-ip da
   destination-ip nw
   service any_service
   rule enable
  rule 1 permit
   comment smzx
   source-ip sm
   destination-ip nw
   service any_service
   rule enable
#
 ip route-static 0.0.0.0 0.0.0.0 Dialer1
 ip route-static 192.168.2.0 255.255.255.0 GigabitEthernet0/2 10.0.0.2
 ip route-static 192.168.20.0 255.255.255.0 GigabitEthernet0/2 10.0.0.2
#
 ip https port 36365
 ip https enable
#
 dialer-rule 1 ip permit
#
 load xml-configuration
#
 load tr069-configuration
#
user-interface con 0
 authentication-mode password
 set authentication password cipher $c$3$fBdH
=
user-interface vty 0 4
 authentication-mode scheme
#
return

组网及组网描述:

192.168.2.0为内网,192.168.20.0为外网,2.0异常可访问外网。

最佳答案

寂东 九段
粉丝:225人 关注:3人

ACL写得有问题,乱,没有理清思路:

acl number 3000
 rule 0 deny ip source 192.168.2.0 0.0.0.255 dest 192.168.0.0 0.0.0.255      
 rule 1 deny ip source 192.168.2.0 0.0.0.255 dest 192.168.111.0 0.0.0.255

rule 2 permit ip source 192.168.2.0 0.0.0.255 destination 47.98.104.125 0
 rule 3 permit ip source 192.168.2.0 0.0.0.255 destination 116.62.215.145 0
 rule 4 permit ip source 192.168.2.0 0.0.0.255 destination 116.62.126.211 0
 rule 5 permit ip source 192.168.2.0 0.0.0.255 destination 47.99.224.84 0

 rule 20 permit ip source 192.168.20.0 0.0.0.255
 rule 30 deny ip

rul 0 到 rul 5 源和目的都是私网地址,在这里没用,rul 20 将整个20网段都转发了,20都能上外网,如果想禁止某台主机,在下边直接写deny的明细规则,源可以访问外网的哪个目的,是通过域间策略来做的,rul1和rul2通过三层交换机做策略来实现

暂无评论

2 个回答
粉丝:7人 关注:0人

你确定20.0是外网环境吗?2.0访问20.0是否需要做NAT转换,如果需要的话,这个配置没有问题,肯定可以拒绝。如果不做NAT转发的话,相当于内网互访,配置没有做到过滤的

暂无评论

粉丝:26人 关注:2人

内网经过防火墙嘛

暂无评论

编辑答案

你正在编辑答案

如果你要对问题或其他回答进行点评或询问,请使用评论功能。

分享扩散:

提出建议

    +

亲~登录后才可以操作哦!

确定

亲~检测到您登陆的账号未在http://hclhub.h3c.com进行注册

注册后可访问此模块

跳转hclhub

你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作

举报

×

侵犯我的权益 >
对根叔社区有害的内容 >
辱骂、歧视、挑衅等(不友善)

侵犯我的权益

×

泄露了我的隐私 >
侵犯了我企业的权益 >
抄袭了我的内容 >
诽谤我 >
辱骂、歧视、挑衅等(不友善)
骚扰我

泄露了我的隐私

×

您好,当您发现根叔知了上有泄漏您隐私的内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到pub.zhiliao@h3c.com 邮箱,我们会尽快处理。
  • 1. 您认为哪些内容泄露了您的隐私?(请在邮件中列出您举报的内容、链接地址,并给出简短的说明)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)

侵犯了我企业的权益

×

您好,当您发现根叔知了上有关于您企业的造谣与诽谤、商业侵权等内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到 pub.zhiliao@h3c.com 邮箱,我们会在审核后尽快给您答复。
  • 1. 您举报的内容是什么?(请在邮件中列出您举报的内容和链接地址)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)
  • 3. 是哪家企业?(营业执照,单位登记证明等证件)
  • 4. 您与该企业的关系是?(您是企业法人或被授权人,需提供企业委托授权书)
我们认为知名企业应该坦然接受公众讨论,对于答案中不准确的部分,我们欢迎您以正式或非正式身份在根叔知了上进行澄清。

抄袭了我的内容

×

原文链接或出处

诽谤我

×

您好,当您发现根叔知了上有诽谤您的内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到pub.zhiliao@h3c.com 邮箱,我们会尽快处理。
  • 1. 您举报的内容以及侵犯了您什么权益?(请在邮件中列出您举报的内容、链接地址,并给出简短的说明)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)
我们认为知名企业应该坦然接受公众讨论,对于答案中不准确的部分,我们欢迎您以正式或非正式身份在根叔知了上进行澄清。

对根叔社区有害的内容

×

垃圾广告信息
色情、暴力、血腥等违反法律法规的内容
政治敏感
不规范转载 >
辱骂、歧视、挑衅等(不友善)
骚扰我
诱导投票

不规范转载

×

举报说明