종료

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

기술: 리눅스, 시스템 관리인, 소프트웨어 아키텍처, 공학, 소프트웨어 테스팅

확대 보기: 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

고용주 소개:
( 31건의 리뷰 ) Warsaw, Poland

프로젝트 ID: #24523986

이 프로젝트의 입찰 현황은 다음과 같습니다. 입찰자: 12명, 평균 입찰가: $329

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일 이내)
(52 리뷰)
5.5
thasleemkamila

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

$200 USD (3일 이내)
(31 리뷰)
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 (2일 이내)
(13 리뷰)
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 더 보기

$250 USD (7일 이내)
(10 리뷰)
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 (2일 이내)
(2 리뷰)
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 더 보기

$300 USD (7일 이내)
(1 리뷰)
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 더 보기

$300 USD (7일 이내)
(1 리뷰)
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일 이내)
(1 리뷰)
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 더 보기

$300 USD (7일 이내)
(0 리뷰)
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 더 보기

$200 USD (1일 이내)
(0 리뷰)
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 (7일 이내)
(0 리뷰)
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일 이내)
(0 리뷰)
0.0