-
Notifications
You must be signed in to change notification settings - Fork 0
/
KOR_Block.sh
31 lines (31 loc) · 868 Bytes
/
KOR_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="Korea"
echo "Blocking Country: $c"
echo ""
#sudo iptables -A INPUT -m iprange --src-range 175.45.176.0/24 -j DROP
sudo iptables -A INPUT -s 175.45.176/8 -j DROP
sudo iptables -A INPUT -s 175.45.176/24 -j DROP
sudo iptables -A INPUT -s 175.45.177/8 -j DROP
sudo iptables -A INPUT -s 175.45.177/24 -j DROP
sudo iptables -A INPUT -s 175.45.178/8 -j DROP
sudo iptables -A INPUT -s 175.45.178/24 -j DROP
sudo iptables -A INPUT -s 175.45.179/8 -j DROP
sudo iptables -A INPUT -s 175.45.179/24 -j DROP
echo "Blocking Complete!"
echo ""
bash menu.sh
# KOREA
#
#Showing results for KOREA network ip ranges
#Search instead for KOREAnetwork ip ranges
#IP address ranges
#
# 175.45.176.0/24
# 175.45.177.0/24
# 175.45.178.0/24
# 175.45.179.0/24