Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- title Apex Server Package Loss "Fix"
- echo This script will add rules to your Windows Firewall blocking any connection to problematic server IPs.
- set ranges=^
- 185.225.209.0/24,^
- 185.225.208.0/24,^
- 23.109.0.0/16,^
- 172.255.13.0/24,^
- 88.202.177.0/24,^
- 109.123.102.0/24,^
- 46.23.78.0/24,^
- 23.109.0.0/16,^
- 172.107.0.0/16,^
- 96.127.186.0/24,^
- 185.169.196.0/24,^
- 31.204.158.0/24,^
- 72.251.246.0/24
- echo:
- echo The following IP ranges will be blocked for Apex Legends: %ranges%
- echo:
- echo Removing any previous rule set...
- netsh advfirewall firewall delete rule name="Apex Server Fix"
- set /p APEX_EXE_PATH="Enter the absolute path to your Apex Legends executeable (r5apex.exe): "
- if exist "%APEX_EXE_PATH%" (
- netsh advfirewall firewall add rule name="Apex Server Fix" dir=in action=block program="%APEX_EXE_PATH%" enable=yes remoteip=%ranges%
- netsh advfirewall firewall add rule name="Apex Server Fix" dir=out action=block program="%APEX_EXE_PATH%" enable=yes remoteip=%ranges%
- echo Done.
- ) else (
- echo Path does not exist.
- )
- pause
Advertisement
Add Comment
Please, Sign In to add comment