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

Typical Configuration of Packet Filtering ACL on AR Series Routers

2007-09-13 发表
  • 0关注
  • 0收藏 455浏览
粉丝: 关注:

Typical Configuration of Packet Filtering ACL on AR Series Routers

 

[Requirements]

1. The intranet address 192.168.1.0/25 can freely access external networks.

2. The intranet address 192.168.1.128/25 can only send and receive e-mails rather than access  to external networks.

[Networking diagram]

 

[Configuration script]

Configuration script

#

sysname RouterA

#

firewall enable                               /Enable firewall/

firewall default deny                         /Set default operation of firewall to deny/

#

radius scheme system

#

domain system

#

acl number 2000                               /Define an ACL for the NAT/

rule 0 permit source 192.168.1.0 0.0.0.255

rule 1 deny

#

acl number 3001                               /Define an ACL for packet filtering/

rule 0 permit ip source 192.168.1.0 0.0.0.127

                                          /Permit the intranet address   

                     192.168.1.0/25 to freely access external networks/

rule 1 permit tcp source 192.168.1.128 0.0.0.127 destination-port eq pop3

rule 2 permit tcp source 192.168.1.128 0.0.0.127 destination-port eq smtp

                                          /Permit the intranet address

                     192.168.1.128/25 only to send and receive e-mails/

#

interface Ethernet1/0/0

ip address 192.168.1.1 255.255.255.0

firewall packet-filter 3001 inbound     /Apply packet filtering to the inbound flow/

#

interface Serial2/0/0

link-protocol ppp

ip address 202.101.1.2 255.255.255.252

nat outbound 2000

#

interface NULL0

#

ip route-static 0.0.0.0 0.0.0.0 202.101.1.1 preference 60

#

user-interface con 0

user-interface vty 0 4

#

return

 

[Verification]

Execute the disp firewall-statistics all and disp acl 3001 commands to make sure that

 the firewall does take effect.

<RouterA>disp firewall-statistics all                                          

  Firewall is enable, default filtering method is 'deny'.                      

                                                                               

  Interface: Ethernet1/0/0                                                      

  In-bound Policy: acl 3001                                                    

  Fragments matched normally                                                   

  From 2006-05-31 5:05:50  to 2006-05-31 6:32:49                               

     198 packets, 24129 bytes, 4% permitted,                                   

     0 packets, 0 bytes, 0% denied,                                            

     0 packets, 0 bytes, 0% permitted default,                                  

     5919 packets, 1021492 bytes, 96% denied default,                          

  Totally 198 packets, 24129 bytes, 4% permitted,                              

  Totally 5919 packets, 1021492 bytes, 96% denied.

 

<RouterA>disp acl 3001                                                         

Advanced ACL  3001, 3 rules                                                    

Acl's step is 1                                                                

 rule 0 permit ip source 192.168.1.0 0.0.0.127 (194 times matched)             

 rule 1 permit tcp source 192.168.1.128 0.0.0.127 destination-port eq pop3 (9 ti

mes matched)                                                                   

 rule 2 permit tcp source 192.168.1.128 0.0.0.127 destination-port eq smtp (0 ti

mes matched)

 

[Tip]

1. By default, the firewall is disabled (firewall disable). You can execute the firewall enable command to enable it.

2. The default filtering mode of the firewall is permit. You can execute the firewall default deny command to change it.

3. Where packet filtering is applied on the intranet and the DHCP server is used to allocate addresses, you shall add rule 0 permit ip source 0.0.0.0 0 to acl 3001; otherwise, the DHCP server fails to allocate addresses.

若您有关于案例的建议,请反馈:

作者在2007-10-12对此案例进行了修订
0 个评论

该案例暂时没有网友评论

编辑评论

举报

×

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

侵犯我的权益

×

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

泄露了我的隐私

×

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

侵犯了我企业的权益

×

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

抄袭了我的内容

×

原文链接或出处

诽谤我

×

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

对根叔知了社区有害的内容

×

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

不规范转载

×

举报说明

提出建议

    +

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

确定

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

注册后可访问此模块

跳转hclhub

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