Juniper SSG-5 端口映射命令行设定

简介:

SSG-5是Juniper 防火墙里入门级的产品,某些紧急情况需要登录到内网的某台PC或者Server时,需要临时把防火墙的3389端口打开及做相应的VIP映射。

命令行自然是设定最快,最不容易错的方式啦。设定方法如下:

set service "3389" protocol tcp src-port 0-65535 dst-port 3389-3389 -------打开远程登录的3389端口
set interface ethernet0/0 vip interface-ip 3389 "3389" 192.168.1.5-------- 添加要远程登录设备的IP端口映射
set policy id 3 from "Untrust" to "Trust"  "Any" "VIP(ethernet0/0)" "3389" permit log -------设定端口policy及ID
set policy id 3
exit

以上设定只是在untrust to trust 和trust to untrust 都是permit any的情况,如果有deny 的policy存在的话,需要注意policy的顺序。

 




本文转自 yhw85 51CTO博客,原文链接:http://blog.51cto.com/yanghuawu/662447,如需转载请自行联系原作者

相关文章
|
网络协议 网络安全 Windows
命令行下开启与关闭windows防火墙关端口(转)
sc config sharedaccess start= auto //设置防火墙服务为自动 net start sharedaccess //开启防火墙服务   关闭端口 netsh firewall add portopening protocol = TCP port = 139 n...
2832 0
|
网络安全 数据安全/隐私保护
|
网络协议 网络架构 测试技术