-
-
Save joelbutcher/bcec7d78954eb4a8267a6f7b1fcb9eb0 to your computer and use it in GitHub Desktop.
Laravel Forge / Envoyer IP allowlist shell script
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
forgeIps=$(curl -L https://forge.laravel.com/ips-v4.txt) | |
for ip in $forgeIps | |
do | |
echo "Adding Laravel Forge IP $ip to SSH allowlist" | |
ufw allow from $ip to any port 22 | |
done; | |
envoyerIps="159.65.47.205 157.245.120.132 134.122.14.47" | |
for ip in $envoyerIps | |
do | |
echo "Adding Envoyer IP $ip to SSH allowlist" | |
ufw allow from $ip to any port 22 | |
done; | |
envoyerHeartbeatIps="198.199.84.22 167.71.140.19 167.71.208.72" | |
for ip in $envoyerHeartbeatIps | |
do | |
echo "Adding Envoyer Heartbeat IP $ip to SSH allowlist" | |
ufw allow from $ip to any port 22 | |
done; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment