This file contains hidden or 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 | |
nic="eth0" | |
export LastIP=`/bin/cat /var/log/ipv6addr` | |
export NowIP=`ip -o -6 addr show dev $nic scope global |head -n 1 | /bin/sed -e's/^.*inet6 \([^ ]*\)\/.*$/\1/;t;d'` | |
password="you password" | |
hostname="nas.d.youdomain.com" | |
if [ -z "$NowIP" ] | |
then |
This file contains hidden or 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 | |
# HOSTS | |
HOSTS="example.com foo.example.com" | |
# HOSTS PASSWORD | |
# Because I'm lazy, it needs to be the same for all hosts | |
HOST_KEY="YOUR_PASSWORD" | |
# Get Current IPs |
This file contains hidden or 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
0.0.0.0 | |
101.0.92.66 | |
101.50.3.120 | |
101.99.80.71 | |
103.10.214.18 | |
103.1.115.181 | |
103.11.213.98 | |
103.1.173.156 | |
103.11.74.118 | |
103.1.209.214 |
This file contains hidden or 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
27.150.192.0/21 | |
27.150.200.0/22 | |
27.150.204.0/24 | |
27.150.205.0/24 | |
27.150.206.0/23 | |
27.150.208.0/21 | |
27.150.216.0/22 | |
27.150.220.0/23 | |
27.150.222.0/24 | |
27.150.223.0/24 |
This file contains hidden or 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
iptables -I INPUT -s 27.150.192.0/21 -j DROP | |
iptables -I INPUT -s 27.150.200.0/22 -j DROP | |
iptables -I INPUT -s 27.150.204.0/24 -j DROP | |
iptables -I INPUT -s 27.150.205.0/24 -j DROP | |
iptables -I INPUT -s 27.150.206.0/23 -j DROP | |
iptables -I INPUT -s 27.150.208.0/21 -j DROP | |
iptables -I INPUT -s 27.150.216.0/22 -j DROP | |
iptables -I INPUT -s 27.150.220.0/23 -j DROP | |
iptables -I INPUT -s 27.150.222.0/24 -j DROP | |
iptables -I INPUT -s 27.150.223.0/24 -j DROP |