最佳答案
私网IP的8080端口可以映射到公网IP的8080端口,但由于8080端口属于知名端口,部分地市政策要求,会在运营商侧管理8080端口的映射权限
操作 | 命令 | 说明 | |
进入系统视图 | system-view | - | |
进入接口视图 | interface interface-type interface-number | - | |
配置普通内部服务器 | 外网地址单一,未使用外网端口或外网端口单一 | nat server [ protocol pro-type ] global { global-address | current-interface | interface interface-type interface-number } [ global-port ] [ vpn-instance global-vpn-instance-name ] inside local-address [ local-port ] [ vpn-instance local-vpn-instance-name ] [ acl { ipv4-acl-number | name ipv4-acl-name } ] [ reversible ] [ rule rule-name ] [ disable ] [ counting ] | 四者至少选其一 缺省情况下,不存在内部服务器 一个接口下可以配置多个普通内部服务器 |
外网地址单一,外网端口连续 | nat server protocol pro-type global { global-address | current-interface | interface interface-type interface-number } global-port1 global-port2 [ vpn-instance global-vpn-instance-name ] inside { { local-address | local-address1 local-address2 } local-port | local-address local-port1 local-port2 } [ vpn-instance local-vpn-instance-name ] [ acl { ipv4-acl-number | name ipv4-acl-name } ] [ rule rule-name ] [ disable ] [ counting ] | ||
外网地址连续,未使用外网端口或外网端口单一 | nat server protocol pro-type global global-address1 global-address2 [ global-port ] [ vpn-instance global-vpn-instance-name ] inside { local-address | local-address1 local-address2 } [ local-port ] [ vpn-instance local-vpn-instance-name ] [ acl { ipv4-acl-number | name ipv4-acl-name } ] [ rule rule-name ] [ disable ] [ counting ] | ||
外网地址连续,外网端口单一 | nat server protocol pro-type global global-address1 global-address2 global-port [ vpn-instance global-vpn-instance-name ] inside local-address local-port1 local-port2 [ vpn-instance local-vpn-instance-name ] [ acl { ipv4-acl-number | name ipv4-acl-name } ] [ rule rule-name ] [ disable ] [ counting ] |
例:nat server protocol tcp global XXX.XXX.XXX.XXX 8080 inside YYY.YYY.YYY.YYY 8080
XXX.XXX.XXX.XXX代替公网地址
YYY.YYY.YYY.YYY代替内网地址
(0)
1.确认设备有公网地址
(0)
暂无评论
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论