Win10 iot 配置防火牆限制應用部署

來源:互聯網
上載者:User

標籤:netsh   com   技術   round   ima   studio   應該   自己   需要   

最近在玩樹莓派接大觸控螢幕

發現一個問題,vs 在 iot 上部署應用,使用的是

Universal (Unencrypted Protocol)

https://docs.microsoft.com/en-us/windows/iot-core/develop-your-app/appdeployment

 

也就是說只要知道IP,誰只要能連上裝置就能部署應用…

這要部署到外面不是很危險…

查看 iot 的配置,想把 deploy 改成 windows驗證

瞅了半天沒看到有能改的地方…

 

改不了驗證方式,就只能想限制訪問IP了

iot 既然是win10,那麼應該帶防火牆,去命令列裡查查防火牆的配置

netsh advfirewall firewall show rule name=all

果然防火牆還是在的:

 

自己翻翻,可以看到這兩條:

 

下面就很簡單了,我們可以加上個IP限制:

netsh advfirewall firewall set rule name="Visualstudio_Msvsmon_Allow_In" new remoteip=192.168.1.1netsh advfirewall firewall set rule name="Visualstudio_Msvsmon_Allow_In2" new remoteip=192.168.1.1

 

或者乾脆禁止 deploy,需要的時候再開啟

netsh advfirewall firewall set rule name="Visualstudio_Msvsmon_Allow_In" new action=blocknetsh advfirewall firewall set rule name="Visualstudio_Msvsmon_Allow_In2" new action=block

 

附錄:防火牆添加修改刪除 rule 命令:

https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/dd734783(v=ws.10)

Win10 iot 配置防火牆限制應用部署

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.