Skip to content

How to use the script

mlhbeckmann edited this page Mar 6, 2021 · 1 revision

Automated Linux (Debian) Security Script

Thank your for using my Script, here's how to use it.

After downloading the script, make it executable by running chmod +x deploySecurity.sh. After that run the script as root, by issuing sudo ./deploySecurity.sh

You can use the following options when running the script:

-h for help -u to specify a user, that will be added as an allowed user in the SSH-Config. You can only specify one user. -p to make the firewall rules more strict -> denying all outgoing traffic, except some needed protocols.

Examples:

To add user "myuser" as allowed user, and a strict firewall sudo ./deploySecurity -u myuser -p

To add user "myuser" as allowed user, but allowing all ougoing traffic sudo ./deploySecurity -u myuser

To add no user as allowd user, with strict firewall sudo ./deploySecurity -p

To add no user as allowd user and allowing all outgoing traffic sudo ./deploySecurity

Clone this wiki locally