rahulinux / compliance Goto Github PK
View Code? Open in Web Editor NEWServer Hardening
License: Other
Server Hardening
License: Other
Are you sure about that?
net.ipv4.conf.all.accept_source_route = 1
Is this script have only one mode: it modifies all errors he finds? Can it work in mode which will just show mistakes in configuration without modifying anything, or can it make backups before modifying and ability to run revert to original configs?
I think that changes in fstab should be made via tmp file, otherwise user can lost data.
$ cp /etc/fstab fstab
$ cat fstab | wc -l
10
$ awk '1;//tmp/{$4="nosuid,nodev,noexec";print}' fstab | column -t | wc -l
11
$ awk '1;//tmp/{$4="nosuid,nodev,noexec";print}' fstab | column -t > fstab
$ cat fstab | wc -l
0
On the other hand you should not use dd-mm-rr format to name backup files, this way previous backups are overwritten.
If user log-in and it has dns or host entry in /etc/hosts then who -m
output shows dns name, and script is only checking for IP address Regular expression, So it will block all IP.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.