****************************************************************************** * Copyright (c) 2004-2015 Hangzhou H3C Tech. Co., Ltd. All rights reserved. * * Without the owner's prior written consent, * * no decompiling or reverse-engineering shall be allowed. * ******************************************************************************
Login authentication
Username:admin Password: <GPluslife>sys System View: return to User View with Ctrl+Z. # 进入外网网卡 [GPluslife]in gig0/0 [GPluslife-Ethernet0/0] nat server 15 protocol udp global current-interface 1194 inside 10.84.102.131 1194 [GPluslife-Ethernet0/0] save [GPluslife-Ethernet0/0] quit # 查看更改后的配置是否成功 [GPluslife]dis cur [GPluslife]quit
映射完成后可找台外网服务器通过nmap扫描下1194端口是否开放
1 2 3 4 5 6 7
root@wujianjun-net-work:~# nmap -sU [路由器外网IP] -p 1194 -Pn Starting Nmap 7.80 ( https://nmap.org ) at 2022-08-04 11:36 CST Nmap scan report for xx.xx.xx.xx Host is up.
****************************************************************************** * Copyright (c) 2004-2015 Hangzhou H3C Tech. Co., Ltd. All rights reserved. * * Without the owner's prior written consent, * * no decompiling or reverse-engineering shall be allowed. * ******************************************************************************
Login authentication
Username:admin Password: <GPluslife>sys System View: return to User View with Ctrl+Z. # 查看现有配置 [GPluslife]dis cur [GPluslife] ip route-static 10.8.0.0 255.255.255.0 10.84.102.131 # 查看添加路由后的配置 [GPluslife]dis cur [GPluslife] save [GPluslife] quit