华三F1000防火墙下接了一台二层交换机,交换机配置了telnet服务,从防火墙可以ping通交换机ip(交换机写了一条默认路由指向防火墙地址。)现在可以远程telnet防火墙,但从防火墙无法telnet交换机。
(0)
最佳答案
防火墙local-trust是否是全放通的
看一下交换机配置是否完整
# 进入系统视图,并开启Telnet服务,默认开启。
<H3C> system-view
[H3C] telnet server enable
# 配置VTY接口认证模式为scheme模式(用户名+密码认证)。
[H3C] line vty 0 4
[H3C-ui-vty0-4] authentication-mode scheme //另两种认证模式为None(无密码)和Password(单密码)
[H3C-ui-vty0-4] user-role network-admin
[H3C-ui-vty0-4] quit
# 创建本地账号abc,密码为123456,权限级别为network-admin。
[H3C] local-user abc
[H3C-luser-abc] password simple 123456
[H3C-luser-abc] service-type telnet
[H3C-luser-abc] authorization-attribute user-role network-admin
[H3C-luser-abc] quit
# 保存配置。
[H3C] save force
(0)
交换机可以在本地telnet,下面是防火墙配置文件,公网IP被我隐藏
#
version 7.1.064, Release 9524P27
#
sysname H3C F1000
#
context Admin id 1
#
telnet server enable
#
irf mac-address persistent timer
irf auto-update enable
undo irf link-delay
irf member 1 priority 1
#
dhcp enable
#
dns server 114.114.114.114
dns server 8.8.8.8
#
password-recovery enable
#
vlan 1
#
dhcp server ip-pool 1
gateway-list 189.189.189.254
network 189.189.189.0 mask 255.255.255.0
dns-list 211.139.29.170 211.139.29.150
forbidden-ip 189.189.189.1
forbidden-ip 189.189.189.254
#
controller Cellular1/0/0
#
interface NULL0
#
interface GigabitEthernet1/0/0
port link-mode route
ip address 39.*.*.196 255.255.255.128
nat outbound
#
interface GigabitEthernet1/0/1
port link-mode route
ip address 189.189.189.254 255.255.255.0
#
interface GigabitEthernet1/0/2
port link-mode route
#
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
#
object-policy ip pass
rule 0 pass
#
security-zone name Local
#
security-zone name Trust
import interface GigabitEthernet1/0/1
#
security-zone name DMZ
#
security-zone name Untrust
#
security-zone name Management
import interface GigabitEthernet1/0/0
import interface GigabitEthernet1/0/2
#
zone-pair security source Local destination Trust
object-policy apply ip pass
#
zone-pair security source Trust destination Local
object-policy apply ip pass
#
zone-pair security source Trust destination Untrust
object-policy apply ip pass
#
scheduler logfile size 16
#
line class aux
user-role network-operator
#
line class console
authentication-mode scheme
user-role network-admin
#
line class usb
user-role network-admin
#
line class vty
user-role network-operator
#
line aux 0
user-role network-admin
#
line con 0
user-role network-admin
#
line vty 0 63
authentication-mode scheme
user-role network-admin
#
ip route-static 0.0.0.0 0 39.*.*.*
#
info-center source FILTER logfile deny
#
ssh server enable
#
domain system
#
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$wxjvHeXQMZoHPhue$xdIMx1tGAtYsizFcl+e99L9WmiN8vM3Xbr44U9Qivak112uttHukUIfnK11djeUcPZG854TsNwEogRTBR5pnTw==
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 logging negotiation enable
#
ike logging negotiation enable
#
ip https enable
webui log enable
#
security-policy ip
rule 0 name 0
action pass
#
cloud-management server domain ops.seccloud.h3c.com
#
return
(0)
您好,请知:
防火墙无法telnet到交换机,以下是排查要点,请参考:
1、检查防火墙与交换机是否能相互PING通。
2、防火墙上涉及到的物理端口、VLAN虚接口需要加入安全域并放通安全策略或域间策略,尤其是到LOCAL域的策略,LOCAL域需分别作为源和目的进行放通。
3、检查防火墙与交换机之间是否配置了路由的相互指向。
4、检查交换机telnet是否已配置,且是否配置了登陆IP的限制。
(0)
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
交换机可以在本地telnet,下面是防火墙配置文件,公网IP被我隐藏