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

Suljettu Julkaistu 4 vuotta sitten Maksettu toimituksen yhteydessä
Suljettu Maksettu toimituksen yhteydessä

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 Järjestelmänvalvoja Tietojärjestelmäarkkitehtuuri tekniikka Ohjelmistojen testaus

Projektin tunnus: #24523986

Tietoa projektista

11 ehdotusta Etäprojekti Aktiivinen 3 vuotta sitten

11 freelanceria on tarjonnut keskimäärin $332 tähän työhön

AhmadSameer

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

$400 USD 4 päivässä
(52 arvostelua)
5.5
thasleemkamila

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

$200 USD 3 päivässä
(34 arvostelua)
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 Lisää

$300 USD 7 päivässä
(5 arvostelua)
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 2 päivässä
(19 arvostelua)
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 Lisää

$250 USD 7 päivässä
(11 arvostelua)
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 7 päivässä
(3 arvostelua)
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 2 päivässä
(2 arvostelua)
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 Lisää

$300 USD 7 päivässä
(2 arvostelua)
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 6 päivässä
(1 arvostelu)
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 Lisää

$200 USD 1 päivässä
(0 arvostelua)
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 15 päivässä
(0 arvostelua)
0.0