mirror of
https://github.com/LizardByte/Sunshine.git
synced 2024-11-17 08:09:50 +00:00
Add batch files to add and remove firewall rules
This commit is contained in:
parent
6000b85b1a
commit
65b557d003
8
src_assets/windows/misc/firewall/add-firewall-rule.bat
Normal file
8
src_assets/windows/misc/firewall/add-firewall-rule.bat
Normal file
@ -0,0 +1,8 @@
|
||||
@echo off
|
||||
|
||||
set RULE_NAME=Sunshine
|
||||
set PROGRAM_BIN="%~dp0sunshine.exe"
|
||||
|
||||
rem Add the rule
|
||||
netsh advfirewall firewall add rule name=%RULE_NAME% dir=in action=allow protocol=tcp program=%PROGRAM_BIN% enable=yes
|
||||
netsh advfirewall firewall add rule name=%RULE_NAME% dir=in action=allow protocol=udp program=%PROGRAM_BIN% enable=yes
|
@ -0,0 +1,6 @@
|
||||
@echo off
|
||||
|
||||
set RULE_NAME=Sunshine
|
||||
|
||||
rem Delete the rule
|
||||
netsh advfirewall firewall delete rule name=%RULE_NAME%
|
Loading…
Reference in New Issue
Block a user