Guest User

apex legends telekom package loss workaround

a guest
Jun 6th, 2023
2,199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 1.06 KB | Gaming | 0 0
  1. @echo off
  2. title Apex Server Package Loss "Fix"
  3. echo This script will add rules to your Windows Firewall blocking any connection to problematic server IPs.
  4.  
  5. set ranges=^
  6. 185.225.209.0/24,^
  7. 185.225.208.0/24,^
  8. 23.109.0.0/16,^
  9. 172.255.13.0/24,^
  10. 88.202.177.0/24,^
  11. 109.123.102.0/24,^
  12. 46.23.78.0/24,^
  13. 23.109.0.0/16,^
  14. 172.107.0.0/16,^
  15. 96.127.186.0/24,^
  16. 185.169.196.0/24,^
  17. 31.204.158.0/24,^
  18. 72.251.246.0/24
  19.  
  20. echo:
  21. echo The following IP ranges will be blocked for Apex Legends: %ranges%
  22. echo:
  23. echo Removing any previous rule set...
  24. netsh advfirewall firewall delete rule name="Apex Server Fix"
  25.  
  26. set /p APEX_EXE_PATH="Enter the absolute path to your Apex Legends executeable (r5apex.exe): "
  27.  
  28. if exist "%APEX_EXE_PATH%" (
  29.     netsh advfirewall firewall add rule name="Apex Server Fix" dir=in action=block program="%APEX_EXE_PATH%" enable=yes remoteip=%ranges%
  30.     netsh advfirewall firewall add rule name="Apex Server Fix" dir=out action=block program="%APEX_EXE_PATH%" enable=yes remoteip=%ranges%
  31.     echo Done.
  32. ) else (
  33.     echo Path does not exist.
  34. )
  35.  
  36. pause
Advertisement
Add Comment
Please, Sign In to add comment