Convert setup_iptables to ansible role + Fix usertwist group don't exist error + Hardened Systemd unit #5

Closed
Mateo wants to merge 10 commits from dev into main
7 changed files with 109 additions and 20 deletions
Showing only changes of commit 2082ccb5b5 - Show all commits

View File

@@ -5,6 +5,16 @@ Description=Simple Web Service
User=usertwist
Group=usertwist
ExecStart=/usr/local/bin/usertwist
PrivateTmp=yes
NoNewPrivileges=true
RestrictNamespaces=uts ipc pid user cgroup
ProtectSystem=strict
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
ProtectKernelTunables=yes
ProtectKernelModules=yes
ProtectControlGroups=yes
PrivateDevices=yes
RestrictSUIDSGID=true
Mateo marked this conversation as resolved
Review

What about ProtectHome ?

What about `ProtectHome` ?
[Install]
WantedBy=multi-user.target
WantedBy=multi-user.target