-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRUS_Block.sh
32 lines (31 loc) · 864 Bytes
/
RUS_Block.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
#!/bin/bash
# (c)J~Net 2021
# jnet.sytes.net
#
# https://jnet.forumotion.com/t1761-country-blocking-by-ip
#
c="Russia"
echo "Blocking Country: $c"
echo ""
#sudo iptables -A INPUT -m iprange --src-range 2.20.253.0/24 -j DROP
sudo iptables -A INPUT -s 2.20.253.0/8 -j DROP
sudo iptables -A INPUT -s 2.20.253/24 -j DROP
sudo iptables -A INPUT -s 2.20.0.0/8 -j DROP
sudo iptables -A INPUT -s 2.20.0/24 -j DROP
sudo iptables -A INPUT -s 2.21.0.0/8 -j DROP
sudo iptables -A INPUT -s 2.21.0/24 -j DROP
sudo iptables -A INPUT -s 2.22.0.0/8 -j DROP
sudo iptables -A INPUT -s 2.23.0.0/8 -j DROP
sudo iptables -A INPUT -s 2.23.0/24 -j DROP
echo "Blocking Complete!"
echo ""
bash menu.sh
#
#
# RUSSAIN
#
# Begin IP Address End IP Address Total Count
# 2.20.253.0 2.20.255.255
# 2.21.1.0 2.21.6.255
# 2.22.237.0 2.22.237.255
# 2.23.167.0 2.23.167.255