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

SecPath F100-C-G2

2017-08-04提问
  • 0关注
  • 1收藏,2350浏览
粉丝:0人 关注:0人

问题描述:

客户需求禁用tcp端口 ,在命令行里怎么操作呢 ,我做了策略 结果VPN互连网都断了

[F100]
[F100]dis cur
#
 version 7.1.064, Ess 9504P11
#
 sysname F100
#
context Admin id 1
#
ip vpn-instance management
 route-distinguisher 1000000000:1
 vpn-target 1000000000:1 import-extcommunity
 vpn-target 1000000000:1 export-extcommunity
#
 telnet server enable
#
 irf mac-address persistent timer
 irf auto-update enable
 undo irf link-delay
 irf member 1 priority 1
#
 security-zone intra-zone default permit
#
 dialer-group 1 rule ip permit
#
 dhcp enable  
#
 password-recovery enable
#
vlan 1
#
object-group ip address test
 0 network subnet 10.46.16.0 255.255.255.0
#
object-group service group
 0 service tcp source eq 8801 destination eq 8801
 10 service tcp source eq 7776 destination eq 7776
 20 service tcp source eq 7829 destination eq 7829
 30 service tcp source eq 10306 destination eq 10306
 40 service tcp source eq 2800 destination eq 2800
 50 service tcp source eq 8060 destination eq 8060
 60 service tcp source eq 305 destination eq 305
 70 service tcp source eq 8162 destination eq 8162
 80 service tcp source eq 13159 destination eq 13159
 90 service tcp source eq 18200 destination eq 18200
 100 service tcp source eq 17991 destination eq 17991
#
object-group service test1
 0 service tcp source eq 17911 destination eq 17911
 10 service tcp source eq 18200 destination eq 18200
 20 service tcp source eq 13159 destination eq 13159
 30 service tcp source eq 8162 destination eq 8162
 40 service tcp source eq 305 destination eq 305
 50 service tcp source eq 8060 destination eq 8060
 60 service tcp source eq 2800 destination eq 2800
 70 service tcp source eq 10306 destination eq 10306
 80 service tcp source eq 7829 destination eq 7829
 90 service tcp source eq 7776 destination eq 7776
 100 service tcp source eq 8801 destination eq 8801
#
dhcp server ip-pool vlan10
 gateway-list 10.46.16.254
 network 10.46.16.0 mask 255.255.255.0
 dns-list 222.172.200.68 61.166.150.123
#
dhcp server ip-pool vlan20
 gateway-list 10.46.24.254
 network 10.46.24.0 mask 255.255.255.0
 dns-list 222.172.200.68 61.166.150.123
#
dhcp server ip-pool vlan30
 gateway-list 10.46.32.254
 network 10.46.32.0 mask 255.255.255.0
 dns-list 222.172.200.68 61.166.150.123
#
interface Dialer1
 mtu 1492
 ppp chap password cipher $c$3$fWngv2og31qobdESaYh//m50io0pAfvb11c=
 ppp chap user rdqhmlyyb
 ppp ipcp dns admit-any
 ppp ipcp dns request
 ppp pap local-user rdqhmlyyb password cipher $c$3$Db3yVeEQnaEB46KSzCBYCRxnJ8bYTGrS/7Q=
 dialer bundle enable
 dialer-group 1
 dialer timer idle 0
 ip address ppp-negotiate
 tcp mss 1024
 nat outbound 3001
 ipsec apply policy Dia1
#
interface NULL0
#
interface GigabitEthernet1/0/0
 port link-mode route
 combo enable copper
 ip address dhcp-alloc
 pppoe-client dial-bundle-number 1
#
interface GigabitEthernet1/0/1
 port link-mode route
 combo enable copper
#
interface GigabitEthernet1/0/2
 port link-mode route
#
interface GigabitEthernet1/0/2.1
 ip address 10.46.16.253 255.255.255.0
 vrrp version 2
 vrrp vrid 10 virtual-ip 10.46.16.254
 vrrp vrid 10 priority 120
 vlan-type dot1q vid 10
 dhcp server apply ip-pool vlan10
#
interface GigabitEthernet1/0/2.2
 ip address 10.46.24.253 255.255.255.0
 vrrp version 2
 vrrp vrid 20 virtual-ip 10.46.24.254
 vrrp vrid 20 priority 120
 vlan-type dot1q vid 20
 dhcp server apply ip-pool vlan20
#
interface GigabitEthernet1/0/2.3
 ip address 10.46.32.253 255.255.255.0
 vrrp version 2
 vrrp vrid 30 virtual-ip 10.46.32.254
 vrrp vrid 30 priority 120
 vlan-type dot1q vid 30
 dhcp server apply ip-pool vlan30
#
interface GigabitEthernet1/0/3
 port link-mode route
#
interface GigabitEthernet1/0/4
 port link-mode route
#
interface GigabitEthernet1/0/5
 port link-mode route
#
interface GigabitEthernet1/0/6
 port link-mode route
#
interface GigabitEthernet1/0/7
 port link-mode route
#
interface GigabitEthernet1/0/8
 port link-mode route
#
interface GigabitEthernet1/0/9
 port link-mode route
#
interface GigabitEthernet1/0/10
 port link-mode route
#
interface GigabitEthernet1/0/11
 port link-mode route
#
object-policy ip market-database
 rule 0 drop source-ip test service test1
#
object-policy ip pass
 rule 0 pass
#
security-zone name Local
#
security-zone name Trust
 import interface GigabitEthernet1/0/1
 import interface GigabitEthernet1/0/2
 import interface GigabitEthernet1/0/2.1
 import interface GigabitEthernet1/0/2.2
 import interface GigabitEthernet1/0/2.3
 import interface GigabitEthernet1/0/3
 import interface GigabitEthernet1/0/4
 import interface GigabitEthernet1/0/5
 import interface GigabitEthernet1/0/6
 import interface GigabitEthernet1/0/7
 import interface GigabitEthernet1/0/8
 import interface GigabitEthernet1/0/9
 import interface GigabitEthernet1/0/10
 import interface GigabitEthernet1/0/11
#
security-zone name DMZ
#
security-zone name Untrust
 import interface Dialer1
 import interface GigabitEthernet1/0/0
#
security-zone name Management
#             
zone-pair security source Any destination Any
 object-policy apply ip pass
#
 scheduler logfile size 16
#
line class aux
 user-role network-operator
#
line class console
 user-role network-admin
#
line class vty
 user-role network-operator
#
line aux 0
 user-role network-admin
#
line con 0
 authentication-mode scheme
 user-role network-admin
#
line vty 0 63
 authentication-mode scheme
 user-role network-admin
#
 ip route-static 0.0.0.0 0 Dialer1
#
 ssh server enable
#
acl advanced 3000
 rule 0 permit ip source 10.46.16.240 0.0.0.15 destination 10.0.0.0 0.0.0.255
 rule 5 permit ip source 10.46.16.240 0.0.0.15 destination 10.0.32.0 0.0.0.255
#
acl advanced 3001
 rule 0 deny ip source 10.46.0.0 0.0.255.255 destination 10.0.0.0 0.0.255.255
 rule 10 permit ip source 10.46.0.0 0.0.255.255
#
acl advanced 3050
 rule 0 deny tcp source-port eq 17991
 rule 5 deny tcp source-port eq 18200
 rule 10 deny tcp source-port eq 13159
 rule 15 deny tcp source-port eq 8162
 rule 20 deny tcp source-port eq 350
 rule 25 deny tcp source-port eq 8060
 rule 30 deny tcp source-port eq 2800
 rule 35 deny tcp source-port eq 10306
 rule 40 deny tcp source-port eq 7829
 rule 45 deny tcp source-port eq 7776
 rule 50 deny tcp source-port eq 8801
 rule 55 deny tcp destination-port eq 17991
 rule 60 deny tcp destination-port eq 18200
 rule 65 deny tcp destination-port eq 13159
 rule 70 deny tcp destination-port eq 8162
 rule 75 deny tcp destination-port eq 350
 rule 80 deny tcp destination-port eq 8060
 rule 85 deny tcp destination-port eq 2800
 rule 90 deny tcp destination-port eq 10306
 rule 95 deny tcp destination-port eq 7829
 rule 100 deny tcp destination-port eq 7776
 rule 105 deny tcp destination-port eq 8801
#
domain system
#
 aaa session-limit ftp 16
 aaa session-limit telnet 16
 aaa session-limit ssh 16
 domain default enable system
#
role name level-0
 description Predefined level-0 role
#
role name level-1
 description Predefined level-1 role
#
role name level-2
 description Predefined level-2 role
#
role name level-3
 description Predefined level-3 role
#
role name level-4
 description Predefined level-4 role
#
role name level-5
 description Predefined level-5 role
#
role name level-6
 description Predefined level-6 role
#
role name level-7
 description Predefined level-7 role
#             
role name level-8
 description Predefined level-8 role
#
role name level-9
 description Predefined level-9 role
#
role name level-10
 description Predefined level-10 role
#
role name level-11
 description Predefined level-11 role
#
role name level-12
 description Predefined level-12 role
#
role name level-13
 description Predefined level-13 role
#
role name level-14
 description Predefined level-14 role
#
user-group system
#             
local-user admin class manage
 password hash $h$6$UbIhNnPevyKUwfpm$LqR3+yg1IjNct39MkOR0H0iQXLkYB3jMqM4vbAeoXOhbabIIFnjJPEGR00YiYA1Sz4LiY3FmEdru2fOLMb1shQ==
 service-type ssh telnet terminal https
 authorization-attribute user-role level-3
 authorization-attribute user-role network-admin
 authorization-attribute user-role network-operator
#
ipsec transform-set Dia1_IPv4_1
 esp encryption-algorithm des-cbc
 esp authentication-algorithm sha1
#
ipsec transform-set ipsec
 esp encryption-algorithm des-cbc
 esp authentication-algorithm sha1
#
ipsec policy Dia1 1 isakmp
 transform-set Dia1_IPv4_1
 security acl 3000
 remote-address 110.86.1.226
 ike-profile Dia1_IPv4_1
#
ipsec policy vpn 1 isakmp
 transform-set ipsec
 security acl 3000
 remote-address 110.86.1.226
 ike-profile vpn
#
 ike identity fqdn honghe
#
ike profile Dia1_IPv4_1
 keychain Dia1_IPv4_1
 exchange-mode aggressive
 local-identity fqdn honghe
 match remote identity address 110.86.1.226 255.255.255.255
 match local address Dialer1
 proposal 65535
#
ike profile proposal
#
ike profile vpn
 keychain k1
 exchange-mode aggressive
 local-identity fqdn honghe
 match remote identity address 110.86.1.226 255.255.255.255
#
ike proposal 65535
 description Dia1_IPv4_1
#
ike keychain Dia1_IPv4_1
 match local address Dialer1
 pre-shared-key address 110.86.1.226 255.255.255.255 key cipher $c$3$6w1mmCywHVUHwCx76c1FOoEOsXEBeASg6w==
#
ike keychain k1
 pre-shared-key address 110.86.1.226 255.255.255.255 key cipher $c$3$6YKPhZsGILwDozvvkOjjgXgPeblgmrt3Nw==
#
 ip https enable
#
inspect block-source parameter-profile ips_block_default_parameter
#
ips policy default
#
anti-virus policy default
#
return
[F100]

最佳答案

粉丝:4人 关注:0人

http://www.h3c.com/cn/Service/Document_Center/IP_Security/FW_VPN/F1000-E-G2/Configure/Operation_Manual/H3C_CG(V7)(R9313_E9504)-5W201/03/201612/964785_30005_0.htm

要禁用内网到外网的某些TCP端口,可以参考手册配一下,配对象策略后,在域间调用下

暂无评论

0 个回答

该问题暂时没有网友解答

编辑答案

你正在编辑答案

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

分享扩散:

提出建议

    +

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

确定

亲~检测到您登陆的账号未在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. 您是谁?(身份证明材料,可以是身份证或护照等证件)
我们认为知名企业应该坦然接受公众讨论,对于答案中不准确的部分,我们欢迎您以正式或非正式身份在根叔知了上进行澄清。

对根叔社区有害的内容

×

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

不规范转载

×

举报说明