Re: Chinese downloads overloading my website

Liste des GroupesRevenir à se design 
Sujet : Re: Chinese downloads overloading my website
De : legg (at) *nospam* nospam.magma.ca (legg)
Groupes : sci.electronics.design
Date : 11. Mar 2024, 15:40:16
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <du5uuih5e5d4ugd7ru8oo0gb6ppenjrtdd@4ax.com>
References : 1 2 3 4 5 6
User-Agent : Forte Agent 4.2/32.1118
On Mon, 11 Mar 2024 09:53:44 GMT, Jan Panteltje <alien@comet.invalid>
wrote:

On a sunny day (Mon, 11 Mar 2024 06:43:34 -0000 (UTC)) it happened jim whitby
<mr.spock@spockmall.net> wrote in <usm96m$3fkqg$1@dont-email.me>:
>
You may find the file:
>
/etc/hosts.deny
>
useful in this case, you can block by name(s) or ip(s).
Man hosts,deny
for more info
>
I wrote a small script years ago using Linux iptables to reject bad IP adresses.
>
raspberrypi: ~ # cat /usr/local/sbin_pi_95/ireject
# this is called to add a input deny for an IP addres to ipchains,
# and save the configuration.
>
if [ "$1" = "" ]
then
       echo "Usage: reject IP_address"
       exit 1
fi
>
# OLD ipchains
##ipchains -A input -s $1 -l -j REJECT
#ipchains -L
##ipchains-save > /root/firewall
##echo "reject: ipchains configuration written to /root/firewall"
>
#iptables -A INPUT -s $1 -p all -j REJECT
#iptables -A INPUT -s $1 -p all -j DROP
>
echo "executing iptables -A INPUT -s $1 -p all -j DROP"
iptables -A INPUT -s $1 -p all -j DROP
>
echo "executing iptables -A OUTPUT -s $1 -p all -j REJECT"
iptables -A OUTPUT -s $1 -p all -j REJECT
>
iptables-save > /root/firewall2
>
exit 0
>
Therr is an other one 'load_firewall somewhere.
raspberrypi: ~ # cat /usr/local/sbin_pi_95/load-firewall
iptables -F
#/sbin/ipchains-restore < /root/firewall
/sbin/iptables-restore < /root/firewall2
>
>
>
There were many many entries in /root/firewall back then, daily work to keep track of attacks.
Now I am on a dynamic IP address and the website is handled by a company,
saves a lot of time.
>
Things evolve all the time, iptables sets this Raspberry Pi with 8 GB memory as router too,
runs with a Huawei 4G USB stick with IP 192.168.8.100 for net connection, anywhere in Europe I think,
an other script:
>
raspberrypi: # cat /usr/local/sbin/start_4g_router
#!/usr//bin/bash
>
iptables -F
>
route add -net 192.168.0.0/16 dev eth0
>
echo 1 >/proc/sys/net/ipv4/ip_forward
>
iptables -t nat -A POSTROUTING ! -d 192.168.0.0/16 -o eth1 -j SNAT --to-source 192.168.8.100
sleep 1
>
ifconfig eth0 down
sleep 1
>
ifconfig eth0 192.168.178.1 up
sleep 1
>
vnstat -i eth1 -s
sleep 1
>
# default is set to 192.168.8.1, using 8.8.8.8 and 8.8.4.4 google name server lookup
cp /etc/resolv.conf.GOOGLE /etc/resolv.conf
sleep 1
>
# reduce swapping
sysctl vm.swappiness=5
>
echo "ready"
>
>
There is more, but then again, things change over time too.

Blocking a single IP hasn't worked for my ISP.

Each identical 17G download block (262 visits)was by a new IP
in a completely different location/region.

Beijing, Hearbin, Henan, a mobile and a fifth, so far untraced
due to suspension of my site.

RL

Date Sujet#  Auteur
7 Mar 24 * Chinese downloads overloading my website58legg
7 Mar 24 +- Re: Chinese downloads overloading my website1John R Walliker
7 Mar 24 +- Re: Chinese downloads overloading my website1Don Y
8 Mar 24 +* Re: Chinese downloads overloading my website46legg
8 Mar 24 i`* Re: Chinese downloads overloading my website45Jan Panteltje
10 Mar 24 i `* Re: Chinese downloads overloading my website44legg
10 Mar 24 i  `* Re: Chinese downloads overloading my website43Jan Panteltje
10 Mar 24 i   +* Re: Chinese downloads overloading my website2liz@poppyrecords.invalid.invalid (Liz Tuddenham)
10 Mar 24 i   i`- Re: Chinese downloads overloading my website1Jeff Liebermann
10 Mar 24 i   `* Re: Chinese downloads overloading my website40legg
10 Mar 24 i    +- Re: Chinese downloads overloading my website1Don Y
11 Mar 24 i    `* Re: Chinese downloads overloading my website38Jan Panteltje
11 Mar 24 i     +* Re: Chinese downloads overloading my website10jim whitby
11 Mar 24 i     i+- Re: Chinese downloads overloading my website1Don Y
11 Mar 24 i     i`* Re: Chinese downloads overloading my website8Jan Panteltje
11 Mar 24 i     i `* Re: Chinese downloads overloading my website7legg
11 Mar 24 i     i  `* Re: Chinese downloads overloading my website6Don Y
11 Mar 24 i     i   `* Re: Chinese downloads overloading my website5legg
12 Mar 24 i     i    +- Re: Chinese downloads overloading my website1Don Y
12 Mar 24 i     i    `* Re: Chinese downloads overloading my website3Martin Brown
12 Mar 24 i     i     `* Re: Chinese downloads overloading my website2legg
12 Mar 24 i     i      `- Re: Chinese downloads overloading my website1Peter
11 Mar 24 i     `* Re: Chinese downloads overloading my website27legg
13 Mar 24 i      `* Re: Chinese downloads overloading my website26Don Y
13 Mar 24 i       `* Re: Chinese downloads overloading my website25legg
14 Mar 24 i        `* Re: Chinese downloads overloading my website24Don Y
14 Mar 24 i         `* Re: Chinese downloads overloading my website23Peter
15 Mar 24 i          `* Re: Chinese downloads overloading my website22Don Y
15 Mar 24 i           +* Re: Chinese downloads overloading my website9Liz Tuddenham
15 Mar 24 i           i+- Re: Chinese downloads overloading my website1Don Y
15 Mar 24 i           i+* Re: Chinese downloads overloading my website3Peter
15 Mar 24 i           ii`* Re: Chinese downloads overloading my website2Liz Tuddenham
15 Mar 24 i           ii `- Re: Chinese downloads overloading my website1Peter
15 Mar 24 i           i`* Re: Chinese downloads overloading my website4Don Y
15 Mar 24 i           i `* Re: Chinese downloads overloading my website3Liz Tuddenham
15 Mar 24 i           i  +- Re: Chinese downloads overloading my website1Don Y
15 Mar 24 i           i  `- Re: Chinese downloads overloading my website1Carlos E.R.
15 Mar 24 i           `* Re: Chinese downloads overloading my website12Peter
15 Mar 24 i            +* Re: Chinese downloads overloading my website10Carlos E.R.
15 Mar 24 i            i+* Re: Chinese downloads overloading my website5Don Y
15 Mar 24 i            ii`* Re: Chinese downloads overloading my website4Peter
15 Mar 24 i            ii `* Re: Chinese downloads overloading my website3Don Y
20 Mar 24 i            ii  `* Re: Chinese downloads overloading my website2Peter
20 Mar 24 i            ii   `- Re: Chinese downloads overloading my website1Don Y
15 Mar 24 i            i`* Re: Chinese downloads overloading my website4Peter
15 Mar 24 i            i +- Re: Chinese downloads overloading my website1Don Y
20 Mar 24 i            i `* Re: Chinese downloads overloading my website2Carlos E.R.
20 Mar 24 i            i  `- Re: Chinese downloads overloading my website1Don Y
15 Mar 24 i            `- Re: Chinese downloads overloading my website1Don Y
8 Mar 24 +* Re: Chinese downloads overloading my website2Martin Brown
8 Mar 24 i`- Re: Chinese downloads overloading my website1legg
11 Mar 24 `* Re: Chinese downloads overloading my website7legg
12 Mar 24  `* Re: Chinese downloads overloading my website6Peter
12 Mar 24   `* Re: Chinese downloads overloading my website5legg
14 Mar 24    `* Re: Chinese downloads overloading my website4bitrex
15 Mar 24     `* Re: Chinese downloads overloading my website3Don Y
15 Mar 24      `* Re: Chinese downloads overloading my website2bitrex
15 Mar 24       `- Re: Chinese downloads overloading my website1Don Y

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal