-
Notifications
You must be signed in to change notification settings - Fork 3
How to use the 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.
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