Closed

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

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

Skills: Linux, System Admin, Software Architecture, Engineering, Software Testing

See more: php script connection speed tester, best bash script, unix ftp bash script, mutt bash script, common bash script admin task, bash script set proxy, php script send email specific email address, sendmail bash script, unit testing bash script, bash script website clicks, bash script query mysql database, bash script login webiste, file parsing bash script, bash script valid ip chacking, ip settings bash script, bash script kill specific process, bash script get ip address, bash script to ping multiple ip addresses and log results, bash script ping ip range

About the Employer:
( 31 reviews ) Warsaw, Poland

Project ID: #24523986

12 freelancers are bidding on average $329 for this job

AhmadSameer

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

$400 USD in 4 days
(52 Reviews)
5.5
thasleemkamila

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

$200 USD in 3 days
(31 Reviews)
5.3
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 in 2 days
(13 Reviews)
4.8
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 More

$250 USD in 7 days
(10 Reviews)
4.0
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 in 2 days
(2 Reviews)
2.1
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 More

$300 USD in 7 days
(1 Review)
2.3
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 More

$300 USD in 7 days
(1 Review)
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 in 6 days
(1 Review)
0.7
techsoft56

Hi, "This is my area of specialization, i can get it done perfectly well. So drop me a line over chat, so that we can discuss about your budget and project generally. feel free to look into my feed backs. rest assu More

$300 USD in 7 days
(0 Reviews)
0.0
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 More

$200 USD in 1 day
(0 Reviews)
0.0
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 in 7 days
(0 Reviews)
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 in 15 days
(0 Reviews)
0.0