Improve my BASH script [limit speed for specific IP with TC]

Ditutup Disiarkan 4 tahun lepas Dibayar semasa penghantaran
Ditutup Dibayar semasa penghantaran

Hello, I'm preparing a small VPN project.

I found on the internet a bash script that slows down vpn clients with the TC command ([login to view URL]), but this isn't enough, I want to develop it.

The idea is to:

a) block max up and download of VPN's client to 10mbit/s

b) reduce the number of packets per second to some reasonable value

c) prevent port/local network scanning and sending emails

a) I did this part myself already, you can check and tell me if its ok or something should be changed there

b) sometimes users trying to abuse the VPN service, and i receive notifications from VPS providers, that my network generates

example:

"the IP subnet [login to view URL] is automatically nulled due to excessive incoming network data traffic.

Amount of PPS: 351632

TOTAL Incoming 2.2 G bits/s"

or closed server due to 40 kpps UDP.

I don't know if its DDoS attack or what but it has to be blocked.

c) also i got some warnings about scanning local network:

Sun Mar 8 07:10:37 2020 UDP <my ip4> 56225 => [login to view URL] 2054

Sun Mar 8 07:10:37 2020 UDP <my ip4> 56225 => [login to view URL] 2054

Sun Mar 8 07:10:37 2020 UDP <my ip4> 56225 => [login to view URL] 2054

and sending spam via emails – looks like my 2 iptable rules don't help

iptables -A OUTPUT -p tcp --dport 25 -j REJECT

iptables -A OUTPUT -p tcp --dport 465 -j REJECT

time: 2 days

budget: 200-400 USD

Linux Pentadbir Sistem Kejuruteraan Perisian Kejuruteraan Ujian Perisian

ID Projek: #24523986

Tentang projek

11 cadangan Projek jarak jauh Aktif 3 tahun lepas

11 pekerja bebas membida secara purata $332 untuk pekerjaan ini

AhmadSameer

Hey there, I'm a Systems Engineer with coding skills. I had developed tons of Bash scripts. I can help. Regards.

$400 USD dalam 4 hari
(52 Ulasan)
5.5
thasleemkamila

i have well experienced in doing such kind of jobs.................................. ......... . ...... ...... .......

$200 USD dalam 3 hari
(34 Ulasan)
5.4
Darwish001

Hello, I am programmer with enough experiences on C/C++ for 13 years. C/C++ is nice programming language and I am majoring on it for long years so I have confident to complete your project by C/C++. I can work by full Lagi

$300 USD dalam 7 hari
(5 Ulasan)
5.2
letsstartcoding

ok 2 days are enough for me to finish this job, but you need to stay with me to finish work quickly

$400 USD dalam 2 hari
(19 Ulasan)
5.1
hsh564cf84accd96

we will do your work I am writing this proposal in order to work for you in Software and Web Development. We are highly trained professional developers seeking to freelance and earn online. Having a flair in programmi Lagi

$250 USD dalam 7 hari
(11 Ulasan)
4.4
Ashutosh1665

Hi , i would love to do this project . i have experience with bash scripting , packet analysis . let's discuss about the project in chat .

$444 USD dalam 7 hari
(3 Ulasan)
2.6
bdttousd

Hi, Let me see your script first. Hope I can help you. Thanks. Hi, Let me see your script first. Hope I can help you. Thanks.

$555 USD dalam 2 hari
(2 Ulasan)
2.2
GameBoss

hello,how are you. i read your bid carefully. i am c/c++, linux expert and have full experience for 10 years. c/c++, linux is my top skill and i can handle your project perfectly. i can provide most quality and high sp Lagi

$300 USD dalam 7 hari
(2 Ulasan)
1.2
whitend

Hello sir. I got yout problem very well. You try to common way but your problem is not common problem. You need to use mod security or let me write your own script for your specific problem.

$400 USD dalam 6 hari
(1 Ulasan)
0.7
backendScience

5 years experience in writing complex automation scripts and services in bash ... sounds simple we can be done in less than an hour ... have you considered other alternatives ?.... if its traffic shaping + openvpn what Lagi

$200 USD dalam sehari
(0 Ulasan)
0.0
rishiseth99

Hi, I am very passionate to start this work and I have good technical skills to complete it. Let's discuss to start this project. Thanks

$200 USD dalam 15 hari
(0 Ulasan)
0.0