Skip to content

Instantly share code, notes, and snippets.

@MMTE
Created January 13, 2023 10:53
Show Gist options
  • Save MMTE/c4a4e96b6e87692fd03098a22dc106ad to your computer and use it in GitHub Desktop.
Save MMTE/c4a4e96b6e87692fd03098a22dc106ad to your computer and use it in GitHub Desktop.
#!/bin/sh
curl https://www.arvancloud.ir/fa/ips.txt > ./r1c_ips.txt;
echo 'running......'
for x in `cat ./r1c_ips.txt`;
do
ufw allow from $x
done
ufw reload > /dev/null
# credit: https://betterstack.com/community/questions/whitelisting-better-uptime-ip-ufw/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment