Find Jobs
Hire Freelancers

Custom Linux Security Script

$100-120 USD

Completed
Posted over 15 years ago

$100-120 USD

Paid on delivery
Hello, I need? a custom? Perl or Python script that will? block brute force SSH login attempts on a CentOS VPS. Requirements? for the script: 1) The script should run? continuosly as a? daemon? and search the /var/log/secure log every 60 seconds. 2)It will look for the string "Failed password for root from" or "Failed password for invalid user from" and? store the ip? address as a? temporary variable. I've? included some examples from my secure logs below as there seems to be 2 different types of log entries, one for root and one for invalid users: Log sample for root: Sep 10 23:44:14 vps7000 sshd[29727]: Failed password for root from 1.2.3.4 port 40619 ssh2 Sep 10 23:44:14 vps7000 sshd[29735]: Received disconnect from 1.2.3.4: 11: Bye Bye Log sample for invalid user: Sep? 8 06:32:50 vps7000 sshd[5679]: Invalid user admin from 1.2.3.4 Sep? 8 06:32:50 vps7000 sshd[5687]: input_userauth_request: invalid user admin Sep? 8 06:32:52 vps7000 sshd[5679]: Failed password for invalid user admin from 1.2.3.4 port 34956 ssh2 Sep? 8 06:32:52 vps7000 sshd[5687]: Received disconnect from 1.2.3.4: 11: Bye Bye 3)The temporary variable? should then be checked to see if the ip address has had 5 or more failed attempts. 4)If the ip address has 5 or more failed attempts,? the ip address? should be added to the /etc/[login to view URL] in the format: ALL: 1.2.3.4 5)The script should? be able to? detect? and prevent duplicate ip address entries in the [login to view URL] file. 6)There should be an option to exclude? an ip range with? the first 2 octets or the full ip address.? For example, exclude the ip range 1.2 or? 12.3.4 7)The script should be compatible with a CentOS 4 VPS. 8)It should be compatible with Python 2.3.4 or Perl 5.8.5. 9)The script must be original and cannot contain any open source code.? If everything works well, I will have additional security projects for the chosen coder. Thanks? for your interest
Project ID: 3221198

About the project

6 proposals
Remote project
Active 16 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
See private message.
$85 USD in 13 days
5.0 (30 reviews)
5.4
5.4
6 freelancers are bidding on average $94 USD for this job
User Avatar
See private message.
$102 USD in 13 days
4.9 (129 reviews)
6.7
6.7
User Avatar
See private message.
$102 USD in 13 days
5.0 (211 reviews)
6.6
6.6
User Avatar
See private message.
$85 USD in 13 days
4.9 (111 reviews)
6.1
6.1
User Avatar
See private message.
$85 USD in 13 days
5.0 (76 reviews)
5.3
5.3
User Avatar
See private message.
$102 USD in 13 days
5.0 (3 reviews)
2.1
2.1

About the client

Flag of UNITED STATES
United States
5.0
8
Member since May 14, 2008

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.