添加防火墙规则 netsh advfirewall firewall>add rule name="allow to ycg.0.6" dir=in localip=any r emoteip=192.168.0.6 action=allow 确定。 netsh advfirewall firewall>add rule name="allow to ycg.0.6" dir=out localip=any remoteip=192.168.0.6 action=allow 确定。 netsh advfirewall firewall>add rule name="allow to ycg3389" dir=in protocol=tcp localport=3389 action=allow 确定。 netsh advfirewall firewall>add rule name="allow to ycg3389" dir=out protocol=tcp localport=3389 action=allow 确定。 显示防火墙规则 netsh advfirewall firewall>show rule name="allow to ycg.0.6" 阻止所有入站出站 netsh advfirewall>set allprofiles firewallpolicy blockinbound,blockoutbound 重置防火墙 netsh advfirewall>reset