Created
February 26, 2022 00:19
-
-
Save kelvie/efe07624639e31ed5b9d229597a2ad98 to your computer and use it in GitHub Desktop.
Script to block EAC phonehomes temporarily to run elden ring
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -euo pipefail | |
# Script to temporarily block EAC acesss so Elden Ring can start up | |
# from dig modules-cdn.eac-prod.on.epicgames.com -- this might be different for | |
# you | |
iprange=18.65.229.0/24 | |
sleeptime=10 | |
sudo -v | |
echo "Blackholing $iprange" | |
sudo ip route add blackhole $iprange | |
echo "Sleeping for $sleeptime seconds" | |
sleep $sleeptime | |
echo "Deleting route for $iprange" | |
sudo ip route delete $iprange |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment