暂无评论
111.123.111.111:8999 → 自动转 192.168.1.10:1433system-view
# 划分内外网安全域
interface GigabitEthernet 0/3
port security-zone untrust
#
interface GigabitEthernet 0/2
port security-zone trust
# 进入外网接口G0/3配置nat server,外网端口8999,内网1433
interface GigabitEthernet 0/3
nat server protocol tcp global current-interface 8999 inside 192.168.1.10 1433
# 参数解释:
# global current-interface:借用运营商分配的公网IP 111.123.111.111
# 8999:外网对外访问端口
# 192.168.1.10 1433:内网服务器真实IP+数据库端口
security-policy ip
# 新建规则允许Untrust外网访问服务器转换后的1433
rule name Allow_DB_8999
source-zone untrust
destination-zone trust
destination-ip host 192.168.1.10
service tcp destination eq 1433
action permit
# 原有9100~9200放行规则保留不用改动
# 确认接口二层模式
interface GigabitEthernet 0/2
port link-type trunk
undo port access vlan
#
interface GigabitEthernet 0/3
port link-type trunk
undo port access vlan
# 全局二层转发无需配置三层IP,仅做安全域与NAT转换
save force
# 查看NAT端口转换规则是否生效
display nat server
# 查看域间安全策略匹配计数
display security-policy ip rule name Allow_DB_8999
# 查看转换后的会话表(外网访问8999生成会话)
display session table destination-ip 192.168.1.10
global current-interface 是唯一适配写法,不能手动填 111.123.111.111;服务器地址:111.123.111.111,端口:8999
防火墙自动转换为 111.123.111.111:8999 <--> 192.168.1.10:1433。暂无评论
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论