Skip to content

Commit

Permalink
Add discorvery port to firewall and add firewall uninstall script
Browse files Browse the repository at this point in the history
  • Loading branch information
Eirenliel committed Oct 5, 2021
1 parent 4f042de commit c49af7f
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
4 changes: 4 additions & 0 deletions resources/firewall.bat
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
@echo off
echo Installing firewall rules...

rem Discovery defauly port
netsh advfirewall firewall add rule name="SlimeVR UDP 35903 incoming" dir=in action=allow protocol=UDP localport=35903
netsh advfirewall firewall add rule name="SlimeVR UDP 35903 outgoing" dir=out action=allow protocol=UDP localport=35903

rem Rotational data default port
netsh advfirewall firewall add rule name="SlimeVR UDP 6969 incoming" dir=in action=allow protocol=UDP localport=6969
netsh advfirewall firewall add rule name="SlimeVR UDP 6969 outgoing" dir=out action=allow protocol=UDP localport=6969
Expand Down
17 changes: 17 additions & 0 deletions resources/firewall_uninstall.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
@echo off
echo Installing firewall rules...

rem Discovery defauly port
netsh advfirewall firewall delete rule name="SlimeVR UDP 35903 incoming"
netsh advfirewall firewall delete rule name="SlimeVR UDP 35903 outgoing"

rem Rotational data default port
netsh advfirewall firewall delete rule name="SlimeVR UDP 6969 incoming"
netsh advfirewall firewall delete rule name="SlimeVR UDP 6969 outgoing"

rem WebSocket server default port
netsh advfirewall firewall delete rule name="SlimeVR TCP 21110 incoming"
netsh advfirewall firewall delete rule name="SlimeVR TCP 21110 outgoing"

echo Done!
pause

0 comments on commit c49af7f

Please sign in to comment.