华为路由器典型配置

[router]dis cur
  Now create configuration...
  Current configuration
  !
    version 1.74
    local-user username service-type administrator password cipher 98_8S,&Ta4_-JE
XJQ<%DJQ!!
    sysname router
    firewall enable
    aaa-enable
    aaa accounting-scheme optional
  !
  acl 1 match-order auto
    rule normal permit source 192.168.1.0 0.0.0.255
  !
  acl 100 match-order auto
    rule normal deny udp source any destination any destination-port equal tftp
    rule normal deny tcp source any destination any destination-port equal 135
    rule normal deny icmp source any destination any
    rule normal deny udp source any destination any destination-port equal 135
    rule normal deny udp source any destination any destination-port equal netbi
os-ssn
    rule normal deny tcp source any destination any destination-port equal 139
    rule normal deny tcp source any destination any destination-port equal 445
    rule normal deny udp source any destination any destination-port equal 445
  !
  acl 101 match-order auto
    rule normal deny tcp source any destination any destination-port equal 135
    rule normal deny tcp source any destination any destination-port equal 445
    rule normal deny udp source any destination any destination-port equal 445
    rule normal deny udp source any destination any destination-port equal 135
  !
  acl 102 match-order auto
    rule normal deny tcp source any source-port range 6881 6889 destination any
    rule normal deny udp source any source-port range 6881 6889 destination any
  !
  interface Aux0
    async mode flow
    link-protocol ppp
  !
  interface Ethernet0
    ip address 192.168.1.254 255.255.255.0
    firewall packet-filter 102 inbound
    firewall packet-filter 101 inbound
    firewall packet-filter 100 inbound
    firewall packet-filter 102 outbound
    firewall packet-filter 101 outbound
    firewall packet-filter 100 outbound
  !
  interface Ethernet1
    ip address 218.X.X.X 255.255.255.X
    nat outbound 1 interface
    firewall packet-filter 102 inbound
    firewall packet-filter 101 inbound
    firewall packet-filter 100 inbound
    firewall packet-filter 102 outbound
    firewall packet-filter 101 outbound
    firewall packet-filter 100 outbound
  !
  interface Serial0
    link-protocol ppp
  !
  interface Serial1
    link-protocol ppp
  !
  quit
  ip route-static 0.0.0.0 0.0.0.0 218.X.X.X preference 60
  !
  return  

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值