做母盘必备,禁高危端口!
下载地址:[url]http://bbs.jxpl.net/thread-73-20-20.html[/url]
批处理禁止了如下的端口。需要增加的朋友。自己按以下的格式添加其他端口。附件里是一个自解压。包括自动开启服务和ipseccmd.exewe
文件都有。直接运行就可以了。
ipseccmd -w REG -p "jinduankou" -o -x >nul
ipseccmd -w REG -p "jinduankou" -x >nul
ipseccmd -w REG -p "jinduankou" -r "Block TCP/135" -f *+0:135:TCP -n BLOCK -x >nul
ipseccmd -w REG -p "jinduankou" -r "Block UDP/135" -f *+0:135:UDP -n BLOCK -x >nul
ipseccmd -w REG -p "jinduankou" -r "Block TCP/139" -f *+0:139:TCP -n BLOCK -x >nul
ipseccmd -w REG -p "jinduankou" -r "Block UDP/139" -f *+0:139:UDP -n BLOCK -x >nul
ipseccmd -w REG -p "jinduankou" -r "Block TCP/445" -f *+0:445:TCP -n BLOCK -x >nul
ipseccmd -w REG -p "jinduankou" -r "Block UDP/445" -f *+0:445:UDP -n BLOCK -x >nul
ipseccmd -w REG -p "jinduankou" -r "Block TCP/1025" -f *+0:1025:TCP -n BLOCK -x >nul
ipseccmd -w REG -p "jinduankou" -r "Block TCP/110" -f *+0:110:TCP -n BLOCK -x >nul
ipseccmd -w REG -p "jinduankou" -r "Block TCP/25" -f *+0:25:TCP -n BLOCK -x >nul
ipseccmd -w REG -p "jinduankou" -r "Block UDP/593" -f *+0:593:UDP -n BLOCK -x >nul
ipseccmd -w REG -p "jinduankou" -o -x >nul
ipseccmd -w REG -p "jinduankou" -x >nul
ipseccmd -w REG -p "jinduankou" -r "Block TCP/135" -f *+0:135:TCP -n BLOCK -x >nul
ipseccmd -w REG -p "jinduankou" -r "Block UDP/135" -f *+0:135:UDP -n BLOCK -x >nul
ipseccmd -w REG -p "jinduankou" -r "Block TCP/139" -f *+0:139:TCP -n BLOCK -x >nul
ipseccmd -w REG -p "jinduankou" -r "Block UDP/139" -f *+0:139:UDP -n BLOCK -x >nul
ipseccmd -w REG -p "jinduankou" -r "Block TCP/445" -f *+0:445:TCP -n BLOCK -x >nul
ipseccmd -w REG -p "jinduankou" -r "Block UDP/445" -f *+0:445:UDP -n BLOCK -x >nul
ipseccmd -w REG -p "jinduankou" -r "Block TCP/1025" -f *+0:1025:TCP -n BLOCK -x >nul
ipseccmd -w REG -p "jinduankou" -r "Block TCP/110" -f *+0:110:TCP -n BLOCK -x >nul
ipseccmd -w REG -p "jinduankou" -r "Block TCP/25" -f *+0:25:TCP -n BLOCK -x >nul
ipseccmd -w REG -p "jinduankou" -r "Block UDP/593" -f *+0:593:UDP -n BLOCK -x >nul
转载于:https://blog.51cto.com/yutianxuan/99984