Chinaunix首页 | 论坛 | 博客
  • 博客访问: 7388139
  • 博文数量: 1755
  • 博客积分: 18684
  • 博客等级: 上将
  • 技术积分: 16227
  • 用 户 组: 普通用户
  • 注册时间: 2010-06-02 10:28
个人简介

啥也没写

文章分类

全部博文(1755)

文章存档

2024年(1)

2023年(44)

2022年(39)

2021年(46)

2020年(43)

2019年(27)

2018年(44)

2017年(50)

2016年(47)

2015年(15)

2014年(21)

2013年(43)

2012年(143)

2011年(228)

2010年(263)

2009年(384)

2008年(246)

2007年(30)

2006年(38)

2005年(2)

2004年(1)

分类: WINDOWS

2009-04-28 11:54:54

Netsh 是一个命令行脚本实用程序,可让用户从本地或远程显示或修改当前运行的计算机的网络配置。Netsh 还提供了允许用户使用批处理模式对指定的计算机运行一组命令的脚本功能。Netsh 实用程序也可以将配置脚本以文本文件保存,以便存档或帮助配置其他服务器。

  Netsh实用程序在Windows XP Service Pack 2中得到了极大的增强,包含了新选项的所有运行方式。通过在笔者计算机上的命令运行结果可以看出,Netsh命令相当友好。

  如何启动这个命令就不用说了吧。

  C:> netsh firewall show?

  下面的命令您是可以用于查看防火墙的的配置情况:

  show allowedprogram –显示被允许的程序配置

  show config - 显示防火墙的配置

  show currentprofile -显示 Windows 防火墙的当前配置文件.

  show icmpsetting -显示 Windows 防火墙中的 ICMP 配置

  show logging -显示 Windows 防火墙中的日志记录配置

  show multicastbroadcastresponse –显示防火墙的组播/广播响应配置

  show notifications -显示 Windows 防火墙中的通知配置

  show opmode -显示 Windows 防火墙中的操作配置

  show portopening -显示 Windows 防火墙中的端口配置

  show service -显示 Windows 防火墙中的服务配置

  show state -显示 Windows 防火墙的当前状态

  当然,如果想精确配置防火墙,请使用如下的命令:

  netsh firewall set allowedprogram 编辑 Windows 防火墙中的允许程序配置

  netsh firewall set icmpsettings 编辑 Windows 防火墙中的 ICMP 配置

  netsh firewall set logging 编辑 Windows 防火墙中的日志记录配置

  netsh firewall set notifications 编辑 Windows 防火墙中的通知配置

  netsh firewall set opmode 编辑 Windows 防火墙中的操作配置

  netsh firewall set portopening 编辑 Windows 防火墙中的端口配置

  netsh firewall set service 编辑 Windows 防火墙中的服务配置

 

open.bat
netsh firewall set portopening ALL 80 web ENBALE ALL
netsh firewall set portopening ALL 3389 mstsc ENBALE ALL
netsh firewall set portopening ALL 161 snmp ENBALE ALL
netsh firewall set portopening ALL 21 ftp ENBALE ALL
 
阅读(1570) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~