WINDOWS2008 设置FTP防火墙规则后被拦截的解决办法

来源:互联网 发布:吴彦祖冯德伦关系知乎 编辑:程序博客网 时间:2024/05/16 01:16

在cmd中输入:

1、sc sidtype ftpsvc unrestricted(将ftp服务的注册卸载)

2、net stop ftpsvc & net start ftpsvc(重启ftp服务)

3、netsh advfirewall firewall add rule name="FTP for IIS7" service=ftpsvc action=allow protocol=TCP div=in(开启所有ftp端口监听)

4、netsh advfirewall set global Statefulftp disable(使防火墙不拦截所有ftp服务的访问)

输入以上命令即可;

原创粉丝点击