How to Harden Your Linux Servers Security with Bastille

The Bastille hardening program “locks down” an operating system, pro-actively configuring the system for increased security and decreasing its susceptibility to compromise and downtime. Bastille can also assess a system’s current state of hardening, granularly reporting on each of the security settings with which it works. It currently supports the Red Hat (Fedora, Enterprise, and Numbered/Classic), SUSE, Ubuntu, Debian, Gentoo, Mandrake, Mac OS X and HP-UX.

Bastille’s focuses on letting the system’s user/administrator choose exactly how to harden the operating system. In its default hardening mode, it interactively asks the user questions, explains the topics of those questions, and builds a policy based on the user’s answers. It then applies the policy to the system. In its assessment mode, it builds a report intended to teach the user about available security settings as well as inform the user as to which settings have been tightened.

Install Bastille on Ubuntu/Debian

Install Bastille using the following command on Ubuntu/Debian and its derivatives:

Start Basetille

Execute the following command to start using Bastille:

First it will display License Agreement. Type accept to agree:

Then you may see a screen like below. Click Ok to proceed further.

Bastille_001The installer will ask you the series of questions, mostly the questions are yes or no type. Each question is self-explanatory. Go through the each question carefully and setup your server security accordingly. If don’t know what to set, just click on Restore Default. Bastille will select the default settings for you automatically.

Bastille_002After you answered all questions, it will ask you to save the changes. If you are happy with the settings, just click on Save configuration, or click on Go back and change the configuration to perform all the steps from beginning.

Save Configuration Changes?_004Now it will ask you to apply the settings that you have done to system-wide. Click on Apply Configuration to System.

Finishing Up_005After that, click Close to close Bastille program. Bastille perform automatically depending upon your answers and hardens your server as secure as you want.

Revert Bastille Settings

If you wish to revert all the changes done by Bastille, run the following command. It will let your system to its default state:

I must say that this tool is more easy than manually changing settings and will be definitely useful for new system administrators who don’t have much experience in server security hardening methods.

Source:https://www.unixmen.com/how-to-harden-your-linux-servers-security-with-bastille/

未经允许不得转载:VPS啦 » How to Harden Your Linux Servers Security with Bastille

赞 (0) 打赏

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏