Convert setup_iptables to ansible role + Fix usertwist group don't exist error + Hardened Systemd unit #5
Reference in New Issue
Block a user
No description provided.
Delete Branch "dev"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Goal : Improve service security
Convert setup_iptables to ansible role + Fix usertwist group don't exist errorto Convert setup_iptables to ansible role + Fix usertwist group don't exist error + Hardened Systemd unitPlease provide some details in the PR description (context, changes etc..)
Start looking good, one required change regarding iptables because I think that you current setup does survive a reboot.
@@ -8,0 +14,4 @@ProtectKernelModules=yesProtectControlGroups=yesPrivateDevices=yesRestrictSUIDSGID=trueWhat about
ProtectHome?@@ -0,0 +1,38 @@Role NameThis looks a bit generic !
@@ -0,0 +1,17 @@---Required change : i'm pretty sure this iptables config does not survive a reboot. Can you check ? What should you do to ensure this config is applied at boot time ?
See comment : I would like the user to not being able to login ! Thanks
@@ -32,3 +35,4 @@- name: Create the usertwist useransible.builtin.user:name: usertwistIs this user able to login ?
If so please use No Login https://man7.org/linux/man-pages/man8/nologin.8.html
@@ -0,0 +14,4 @@# - GPL-3.0-only# - Apache-2.0# - CC-BY-4.0license: license (GPL-2.0-or-later, MIT, etc)Which license should we pick ?
Closing for splitting tickets/PR
Pull request closed