千家信息网

6-华为防火墙:配置基于源IP地址的NAT

发表于:2026-10-31 作者:千家信息网编辑
千家信息网最后更新 2026年10月31日,一、实验一:配置No-Pat1、基本配置略:2、R1开启Telnet功能:[R1]user-interface vty 0 4[R1-ui-vty0-4]authentication-mode pas
千家信息网最后更新 2026年10月31日6-华为防火墙:配置基于源IP地址的NAT


一、实验一:配置No-Pat
1、基本配置略:
2、R1开启Telnet功能:
[R1]user-interface vty 0 4
[R1-ui-vty0-4]authentication-mode password ?
Please press ENTER to execute command
[R1-ui-vty0-4]authentication-mode password
Please configure the login password (maximum length 16):cisco
[R1-ui-vty0-4]user privilege level 15
3、配置Trust到Untrust的Zone间策略:
[SRG]policy interzone trust untrust outbound
[SRG-policy-interzone-trust-untrust-outbound]policy create-mode auto-sort enable
[SRG-policy-interzone-trust-untrust-outbound]policy 5
[SRG-policy-interzone-trust-untrust-outbound-5]policy source 192.168.1.0 mask 24
[SRG-policy-interzone-trust-untrust-outbound-5]policy destination 202.100.1.0 mask 24
[SRG-policy-interzone-trust-untrust-outbound-5]policy service service-set telnet
[SRG-policy-interzone-trust-untrust-outbound-5]policy service service-set icmp
[SRG-policy-interzone-trust-untrust-outbound-5]action permit
4、NAT未部署前地址未转换:
telnet 202.100.1.1
Login authentication
Password:cisco

5、配置no-pat:
[SRG]nat address-group 1 202.100.1.10 202.100.1.20 //创建地址组
[SRG]nat-policy interzone trust untrust outbound //创建Zone间NAT策略
[SRG-nat-policy-interzone-trust-untrust-outbound]policy 0
[SRG-nat-policy-interzone-trust-untrust-outbound-0]policy source 192.168.1.0 mask 24 //需要转换的源地址段
[SRG-nat-policy-interzone-trust-untrust-outbound-0]address-group 1 no-pat //转换后的地址组,并且不转换到端口
[SRG-nat-policy-interzone-trust-untrust-outbound-0]action source-nat //执行源转换动作
测试:
telnet 202.100.1.1

查看防火墙会话转换:
[SRG]display firewall session table verbose //源端口50573,转换后端口依然是50573

查看防火墙Map:
[SRG]display firewall server-map

二:实验二:配置PAT,有外部地址池的端口转换
[SRG-nat-policy-interzone-trust-untrust-outbound-0]undo address-group
[SRG-nat-policy-interzone-trust-untrust-outbound-0]address-group 1
测试:
telnet 202.100.1.1
[SRG]display firewall session table verbose

三、实验三:配置Easy-IP,转换192.168.1.2到USG的g0/0/0接口地址
[SRG]nat-policy interzone trust untrust outbound
[SRG-nat-policy-interzone-trust-untrust-outbound-1]policy 0
[SRG-nat-policy-interzone-trust-untrust-outbound-0]undo address-group
[SRG-nat-policy-interzone-trust-untrust-outbound-0]easy-ip GigabitEthernet 0/0/0
测试:
[SRG]display firewall session table verbose

地址 配置 端口 实验 测试 防火墙 防火 策略 功能 动作 基本配置 接口 华为 数据库的安全要保护哪些东西 数据库安全各自的含义是什么 生产安全数据库录入 数据库的安全性及管理 数据库安全策略包含哪些 海淀数据库安全审计系统 建立农村房屋安全信息数据库 易用的数据库客户端支持安全管理 连接数据库失败ssl安全错误 数据库的锁怎样保障安全 深圳九邦互联网科技有限公司 广州紫鲸互联网科技有限公司 互联网科技活动banner 深圳科技互联网 有马互联网科技 紫鲸互联网科技 现代科技和互联网有关系吗 天速互联网络科技有限公司 常德市电业局互联网科技部 互联网时代科技改变生活 互联网科技有哪些公司 武汉健翔互联网络科技有限公司 厦门千工互联网科技有限公司 成都互联网科技公司工作好不好 宁波跨境商互联网科技有限公司 普陀区互联网教育科技管理办法 艺电能源互联网科技有限公司招聘 北京军民互联网科技公司 平安好医生打造互联网科技医疗 互联网科技快速发展优美句子 上海挚品互联网科技有限公司 互联网科技工作委员会毛军 互联网金融 金融科技 高科技与互联网 恒生科技互联网指数分析 须眉科技是互联网公司吗 互联网大会黑科技排名 富国互联网金融科技混合基金 互联网科技融合创新 北京天晋互联网科技有限公司
0