Skip to content

Instantly share code, notes, and snippets.

@kelvie
Created February 26, 2022 00:19
Show Gist options
  • Save kelvie/efe07624639e31ed5b9d229597a2ad98 to your computer and use it in GitHub Desktop.
Save kelvie/efe07624639e31ed5b9d229597a2ad98 to your computer and use it in GitHub Desktop.
Script to block EAC phonehomes temporarily to run elden ring
#!/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