locked
Netsh Firewall for Windows IOT and Raspberry Pi RRS feed

  • Question

  • Hi I'm trying to block all access to my Raspberry Pi except from my IP Address to the web interface and PowerShell RM.

    Does anybody know why these commands are still allowing access to all other computers thanks!

    netsh advfirewall firewall add rule name="Web Access" dir=in protocol=TCP localport=8080 remoteip=192.168.1.132 action=Allow
    netsh advfirewall firewall add rule name="Powershell Access" dir=in protocol=TCP localport=5985 remoteip=192.168.1.132 action=Allow
    netsh advfirewall firewall add rule name="Powershell Access" dir=in protocol=TCP localport=5986 remoteip=192.168.1.132 action=Allow
    netsh advfirewall set allprofiles firewallpolicy 'blockinbound,allowoutbound'
    netsh advfirewall set allprofiles state on

    Tuesday, May 15, 2018 1:04 PM

All replies

  • This is not a PowerShell issue or question.  Post in the IoT forums for help with utility commands.


    \_(ツ)_/

    Tuesday, May 15, 2018 1:10 PM