千家信息网

USG防火墙修改默认规则及放行telnet 流量实验

发表于:2026-11-01 作者:千家信息网编辑
千家信息网最后更新 2026年11月01日,R1在的配置 :[R1]inter[R1]interface e0/0/0[R1-Ethernet0/0/0]ip add[R1-Ethernet0/0/0]ip address 192.168.2.
千家信息网最后更新 2026年11月01日USG防火墙修改默认规则及放行telnet 流量实验


R1在的配置 :
[R1]inter
[R1]interface e0/0/0
[R1-Ethernet0/0/0]ip add
[R1-Ethernet0/0/0]ip address 192.168.2.2 24
[R1]ip route-static 192.168.1.0 255.255.255.0 192.168.2.1 静态路由

开启虚拟终端服务

[R1]user-interface vty 0 4
[R1-ui-vty0-4]set authentication password
[R1-ui-vty0-4]set authentication password cipher 666
[R1-ui-vty0-4]user privilege level 3

R2的配置
[R2]interface e0/0/0
[R2-Ethernet0/0/0]ip add 192.168.1.2 24
[R2-Ethernet0/0/0]q
[R2]ip route-static 192.168.2.0 24 192.168.1.1

[R2]user-interface vty 0 4
[R2-ui-vty0-4]authentication-mode password
[R2-ui-vty0-4]set authentication password cipher 666
[R2-ui-vty0-4]user privilege level 3

防火墙配置
配置接口地址:
interface GigabitEthernet0/0/0
ip address 192.168.2.1 255.255.255.0

interface GigabitEthernet0/0/1
ip address 192.168.1.1 255.255.255.0

创建区域outside,设置优先级30, 并把接口G0/0/1加入到该区域
firewall zone name outside
set priority 30
add interface GigabitEthernet0/0/1

查看区域默认策略
[SRG]display policy interzone local outside outbound
policy interzone local outside outbound
firewall default packet-filter is permit

检测能否ping 通外部的路由器。是可以的。

更改默认策略

[SRG]firewall packet-filter default deny interzone local outside direction outbound

检测能否ping 通外部的路由器。是不可以的,
还原默认策略
[SRG]firewall packet-filter default permit interzone local outside direction outbound

检验 R1和R2能否 telnet 和ping 通 ,结果应该是不通。
怎么可以让R1telnet到R2上 并且ping 通,要放行trust 和outside 之间outbound方向流量 ,如下 :
放行outbound 方向telnet 和ICMP的流量
[SRG]policy interzone trust outside outbound

[SRG-policy-interzone-trust-outside-outbound]policy 1

[SRG-policy-interzone-trust-outside-outbound-1]policy source 192.168.2.2 0

[SRG-policy-interzone-trust-outside-outbound-1]policy destination 192.168.1.2 0
[SRG-policy-interzone-trust-outside-outbound-1]policy service service-set icmp telnet
[SRG-policy-interzone-trust-outside-outbound-1]action permit

[SRG-policy-interzone-trust-outside-outbound-1]q
[SRG-policy-interzone-trust-outside-outbound]q

用R1 去telnet R2,成功登录后来 在防火墙上查看会话表
[SRG]display firewall session table
Current Total Sessions : 1
icmp ×××:public --> public 192.168.2.2:53419-->192.168.1.2:2048
[SRG]display firewall session table
09:46:55 2018/05/11
Current Total Sessions : 0

请思考如何放行outside的主机telnet 到内部的路由器上????

路由 配置 策略 路由器 流量 防火 区域 接口 方向 检测 防火墙 成功 主机 之间 优先级 地址 终端 结果 静态 服务 数据库的安全要保护哪些东西 数据库安全各自的含义是什么 生产安全数据库录入 数据库的安全性及管理 数据库安全策略包含哪些 海淀数据库安全审计系统 建立农村房屋安全信息数据库 易用的数据库客户端支持安全管理 连接数据库失败ssl安全错误 数据库的锁怎样保障安全 科技互联网 上海睿民互联网科技有限公司 广州万易互联网科技有限公司 工业互联网科技新基建 智能科技公司是互联网公司吗 互联网科技论文 兼蜜互联网科技 火传媒上海互联网科技 上海卓越科技 互联网 新华互联网科技校企合作 滨湖区互联网智能科技产品供应 恒生科技互联网指数分析 华中科技有哪些互联网大佬 武汉健翔互联网络科技有限公司 千方科技属于互联网企业吗 晓花互联网科技有限公司网址 电子科技大学互联网创业大赛 国大互联网教育科技有限公司工作 互联网硬科技公司 科技互联网公司两年变化 互联网科技公司起名 互联网科技巨头监管 互联网为科技 鑫亿盛互联网科技 安控科技rtu产品工业互联网 云创客互联网科技公司 贵州叶脉互联网科技有限公司所属行业 宁夏科技产业互联网案例 华夏互联网科技业 萌小萌互联网科技河南有限公司
0