Skip to content

teverett/fbsd-secured

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fbsd-secured

Introduction

fbsd-secured is an Ansible playbook which provides incremental security to FreeBSD systems including:

  • Making key files accessible only by root
  • Network hardening including blackhole
  • pf firewall
  • Disabling inetd and NFS
  • sendmail in queue mode
  • Clearing /tmp on reboot
  • Firewalling IP6
  • ALSR, PIE and WX
  • Restricting cron configurations to root
  • Kernel securelevel 2
  • Blowfish password encryption
  • node_exporter enabled

License

fbsd-secured is licensed under the 3-clause BSD license.

Disclaimer

fbsd-secured is provided as-is. fbsd-secured is intended as an example of configurations which may, or may not, improve the security posture of FreeBSD systems. The author does not accept any responsibility for damages caused by the use of these configurations. Any user using these configuration should do their own research and must take full accountability for potential risk and/or damages resulting from using them

Acknowledgements

fbsd-secured uses ideas from these sites:

Prererequsites

Client (OS X)

  • brew install ansible
  • brew tap esolitos/ipa
  • brew install esolitos/ipa/sshpass

Host (FreeBSD)

  • A user account 'ansible' in the group 'wheel' is required. Use a strong password and disable the account after the host is configured. A one-time ssh login to this account is required before running ansible, to accept the host key
  • Host IP's are in the file "inventory"

Usage

sh run.sh. Provide the login password for the account "ansible" and the root password.

TODO

  • Security Event Auditing
  • Mandatory Access Control
  • User Classes
  • Enforce password complexity

About

Ansible playbook to harden FreeBSD installations

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages