Hello all, my first post!
Been using FreeBSD for a week or two now and I wanted to secure the simple things right away as is my nature. I wrote a Python script that can set and re-set:
Along with a set of mitigations that I've gathered over the years from everywhere including a lot in this forum, including the hardening FreeBSD thread of course.
The script also does simple syntax verification of the flags like equal is present, quotes are present in pairs, etc. It sets blowfish encryption for passwords as suggested in the official guide, password expirations, and lots more. I also included some third-party software in the repo to validate the implementation of the settings to ensure confidence.
I really aimed it at the new user like myself who can quickly just run a script that is not so impactful of function but also get a lot for it, quickly.
Let me know if there are holes in it, things I could better, just plain mistakes, etc. Also this is my second Python script ever so if you have any suggestions where I could really use some refactoring or streamlining I'd hear that too!
Thanks!
Elias
Been using FreeBSD for a week or two now and I wanted to secure the simple things right away as is my nature. I wrote a Python script that can set and re-set:
- rc.conf
- sysctl.conf
- loader.conf
- login.conf
Along with a set of mitigations that I've gathered over the years from everywhere including a lot in this forum, including the hardening FreeBSD thread of course.
The script also does simple syntax verification of the flags like equal is present, quotes are present in pairs, etc. It sets blowfish encryption for passwords as suggested in the official guide, password expirations, and lots more. I also included some third-party software in the repo to validate the implementation of the settings to ensure confidence.
I really aimed it at the new user like myself who can quickly just run a script that is not so impactful of function but also get a lot for it, quickly.
Let me know if there are holes in it, things I could better, just plain mistakes, etc. Also this is my second Python script ever so if you have any suggestions where I could really use some refactoring or streamlining I'd hear that too!
GitHub - wravoc/harden-freebsd: Updated for 14.0. A half days worth of work can be done in seconds, with comprehensive logging, togglable secure/performance settings, and backups. Implements a broad, time-tested, thoroughly researched, cohesive grou
Updated for 14.0. A half days worth of work can be done in seconds, with comprehensive logging, togglable secure/performance settings, and backups. Implements a broad, time-tested, thoroughly rese...
github.com
Thanks!
Elias