# version 7.1.064, Release 9524P39 # sysname H3C # context Admin id 1 # irf mac-address persistent timer irf auto-update enable undo irf link-delay irf member 1 priority 1 # password-recovery enable # vlan 1 # controller Cellular1/0/0 # interface NULL0 # interface GigabitEthernet1/0/0 port link-mode route ip address 192.168.0.1 255.255.255.0 # interface GigabitEthernet1/0/1 port link-mode route # interface GigabitEthernet1/0/2 port link-mode route ip address 192.168.1.1 255.255.255.0 # 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 ip address 192.168.13.1 255.255.255.0 nat hairpin enable # interface GigabitEthernet1/0/7 port link-mode route ip address 192.168.36.100 255.255.255.0 nat server protocol tcp global 192.168.36.100 7501 inside 192.168.13.31 7501 rule ServerRule_4 nat hairpin enable gateway 192.168.36.254 # security-zone name Local # security-zone name Trust import interface GigabitEthernet1/0/6 # security-zone name DMZ # security-zone name Untrust import interface GigabitEthernet1/0/7 # security-zone name Management import interface GigabitEthernet1/0/0 import interface GigabitEthernet1/0/2 # 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 192.168.36.254 # 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$0z0omVR5HvxEzs0g$r3Cup3dCj+sJZJSkJ5m2y/HL8LJx8Xy1q8ZpUo1xOKVcZ2h6at/3HY+MnCF8n+1eTZ0O2iUQIGdZ8OpBZJ0otg== service-type ssh terminal https authorization-attribute user-role level-3 authorization-attribute user-role network-admin authorization-attribute user-role network-operator # session synchronization enable session synchronization http # ipsec logging negotiation enable # ike logging negotiation enable # ip https enable # loadbalance isp file flash:/lbispinfo_v1.5.tp # security-policy ip rule 0 name 1 action pass source-zone Local rule 1 name 2 action pass source-zone Trust rule 3 name 9 action pass source-zone Untrust destination-zone Trust rule 4 name 0 action pass destination-zone Untrust destination-zone Trust # return
(0)
最佳答案
如果是防火墙的话,除了配置NAT之外还需要在域间策略放行
(0)
security-policy ip rule 0 name 1 action pass source-zone Local rule 1 name 2 action pass source-zone Trust rule 3 name 9 action pass source-zone Untrust destination-zone Trust rule 4 name 0 action pass destination-zone Untrust destination-zone Trust 我的配置策略 是哪里出错了吗
443端口可以正常访问 但是映射端口就会拒绝访问
备案之后才会打开
interface GigabitEthernet1/0/7
port link-mode route
ip address 192.168.36.100 255.255.255.0
nat server protocol tcp global 192.168.36.100 7501 inside 192.168.13.31 7501 rule ServerRule_4
nat hairpin enable
gateway 192.168.36.254
我的配置文件
security-policy ip rule 0 name 1 action pass source-zone Local rule 1 name 2 action pass source-zone Trust rule 3 name 9 action pass source-zone Untrust destination-zone Trust rule 4 name 0 action pass destination-zone Untrust destination-zone Trust
(0)
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
备案之后才会打开