-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.bat
20 lines (16 loc) · 1.22 KB
/
setup.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
@ECHO OFF
REM Location of GTA5.exe
set location="E:\Program Files (x86)\Steam\steamapps\common\Grand Theft Auto V\GTA5.exe"
REM Delete default GTA V rules
netsh advfirewall firewall delete rule name="Grand Theft Auto V"
REM Delete previously created GTA V rules
netsh advfirewall firewall delete rule name="GTA V Block"
netsh advfirewall firewall delete rule name="GTA V Open"
REM Create inbound rules
netsh advfirewall firewall add rule name="GTA V Block" protocol=UDP dir=in action=block enable=no localport=6672,61455,61456,61457,61458 remoteip=0.0.0.0 profile=any program=%location%
netsh advfirewall firewall add rule name="GTA V Block" protocol=TCP dir=in action=block enable=no localport=any remoteip=0.0.0.0 profile=any program=%location%
netsh advfirewall firewall add rule name="GTA V Open" protocol=UDP dir=in action=allow enable=yes localport=any profile=any program=%location%
netsh advfirewall firewall add rule name="GTA V Open" protocol=TCP dir=in action=allow enable=yes localport=any profile=any program=%location%
REM Create outbound rules
netsh advfirewall firewall add rule name="GTA V Block" protocol=UDP dir=out action=block enable=no localport=6672,61455,61456,61457,61458 remoteip=0.0.0.0 profile=any program=%location%
PAUSE