-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcronjob.sh
70 lines (49 loc) · 3.26 KB
/
cronjob.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#! /bin/bash
# sudo ipset create tms-itw_voip-allowed hash:net
# curl https://raw.githubusercontent.com/it-world/ipblocker/main/allwaysallowed_voip_ips.txt | iprange | while read line; do ipset add tms-itw_voip-allowed $line; done
# sudo iptables -I INPUT 12 -m state --state NEW -p tcp -m set --match-set tms-itw_voip-allowed src -j ACCEPT
#
URL="https://raw.githubusercontent.com/it-world/ipblocker/main/allwaysallowed_voip_ips.txt"
BLOCKLIST=tms-itw_voip-allowed
curl $URL | iprange | while read line; do ipset add $BLOCKLIST $line; done
# sudo ipset create firehol_webserver hash:net
# curl https://raw.githubusercontent.com/firehol/blocklist-ipsets/master/firehol_webserver.netset | iprange | while read line; do ipset add firehol_webserver $line; done
# sudo iptables -I INPUT 13 -m state --state NEW -p tcp -m set --match-set firehol_webserver src -j REJECT --reject-with tcp-reset
#
URL="https://raw.githubusercontent.com/firehol/blocklist-ipsets/master/firehol_webserver.netset"
BLOCKLIST=firehol_webserver
curl $URL | iprange | while read line; do ipset add $BLOCKLIST $line; done
# sudo ipset create firehol_sip hash:net
# curl http://lists.blocklist.de/lists/sip.txt | iprange | while read line; do ipset add firehol_sip $line; done
# sudo iptables -I INPUT 13 -m state --state NEW -p tcp -m set --match-set firehol_sip src -j REJECT --reject-with tcp-reset
#
URL="http://lists.blocklist.de/lists/sip.txt"
BLOCKLIST=firehol_sip
curl $URL | iprange | while read line; do ipset add $BLOCKLIST $line; done
# sudo ipset create firehol_ssh hash:net
# curl http://lists.blocklist.de/lists/ssh.txt | iprange | while read line; do ipset add firehol_ssh $line; done
# sudo iptables -I INPUT 13 -m state --state NEW -p tcp -m set --match-set firehol_ssh src -j REJECT --reject-with tcp-reset
#
URL="http://lists.blocklist.de/lists/ssh.txt"
BLOCKLIST=firehol_ssh
curl $URL | iprange | while read line; do ipset add $BLOCKLIST $line; done
# sudo ipset create firehol_voipbl hash:net
# curl http://www.voipbl.org/update/ | iprange | while read line; do ipset add firehol_voipbl $line; done
# sudo iptables -I INPUT 13 -m state --state NEW -p tcp -m set --match-set firehol_voipbl src -j REJECT --reject-with tcp-reset
#
URL="http://www.voipbl.org/update/"
BLOCKLIST=firehol_voipbl
curl $URL | iprange | while read line; do ipset add $BLOCKLIST $line; done
# sudo ipset create tms-itw_voip-bl hash:net
# curl https://raw.githubusercontent.com/it-world/ipblocker/main/blocked_voip_ips.txt | iprange | while read line; do ipset add tms-itw_voip-bl $line; done
# sudo iptables -I INPUT 13 -m state --state NEW -p tcp -m set --match-set tms-itw_voip-bl src -j REJECT --reject-with tcp-reset
#
URL="https://raw.githubusercontent.com/it-world/ipblocker/main/blocked_voip_ips.txt"
BLOCKLIST=tms-itw_voip-bl
curl $URL | iprange | while read line; do ipset add $BLOCKLIST $line; done
# sudo ipset create cisco_talos hash:net
# curl https://talosintelligence.com/documents/ip-blacklist | iprange | while read line; do ipset add cisco_talos $line; done
# sudo iptables -I INPUT 13 -m state --state NEW -p tcp -m set --match-set cisco_talos src -j REJECT --reject-with tcp-reset
URL="https://talosintelligence.com/documents/ip-blacklist"
BLOCKLIST=cisco_talos
curl $URL | iprange | while read line; do ipset add $BLOCKLIST $line; done