Update
All checks were successful
Deployment Verification Ubuntu / deploy-and-test (push) Successful in 2m0s
All checks were successful
Deployment Verification Ubuntu / deploy-and-test (push) Successful in 2m0s
This commit is contained in:
parent
60b2e9877f
commit
a2a47f9483
@ -28,14 +28,14 @@ S'il y a un paramétrage pour le proxy, il faut être saisie dans le fichier : *
|
|||||||
```
|
```
|
||||||
# variables
|
# variables
|
||||||
|
|
||||||
HTTP_PROXY="serveur-proxy.tips-of-mine.local"
|
HTTP_PROXY="serv-proxy.tips-of-mine.local"
|
||||||
HTTPS_PROXY="serveur-proxy.tips-of-mine.local"
|
HTTPS_PROXY="serv-proxy.tips-of-mine.local"
|
||||||
FTP_PROXY="serveur-proxy.tips-of-mine.local"
|
FTP_PROXY="serv-proxy.tips-of-mine.local"
|
||||||
```
|
```
|
||||||
|
|
||||||
## ssh_hardening.sh
|
## ssh_hardening.sh
|
||||||
|
|
||||||
Mise en place de la **ssh**.
|
Mise en place de la **ssh** pour de profile **root** et des profile **non-root**.
|
||||||
|
|
||||||
S'il y a un paramétrage pour rajouter des clé ssh, il faut être saisie dans le fichier : **custom_key**
|
S'il y a un paramétrage pour rajouter des clé ssh, il faut être saisie dans le fichier : **custom_key**
|
||||||
|
|
||||||
|
@ -35,12 +35,13 @@ configure_ufw() {
|
|||||||
|
|
||||||
# Allow SSH on custom port
|
# Allow SSH on custom port
|
||||||
log_message "INFO" "IPv4 : Allowing SSH on port 22"
|
log_message "INFO" "IPv4 : Allowing SSH on port 22"
|
||||||
ufw allow 22/tcp
|
#ufw allow 22/tcp
|
||||||
|
ufw allow ssh
|
||||||
|
|
||||||
# Allow HTTP/HTTPS for web services if needed
|
# Allow HTTP/HTTPS for web services if needed
|
||||||
log_message "INFO" "IPv4 : Allowing HTTP/HTTPS ports"
|
log_message "INFO" "IPv4 : Allowing HTTP/HTTPS ports"
|
||||||
ufw allow 80/tcp
|
#ufw allow 80/tcp
|
||||||
ufw allow 443/tcp
|
#ufw allow 443/tcp
|
||||||
|
|
||||||
# Allow SNMP for monitoring
|
# Allow SNMP for monitoring
|
||||||
log_message "INFO" "IPv4 : Allowing SNMP port for monitoring"
|
log_message "INFO" "IPv4 : Allowing SNMP port for monitoring"
|
||||||
|
@ -165,6 +165,7 @@ EOF
|
|||||||
log_message "SUCCESS" "SSH service restarted successfully"
|
log_message "SUCCESS" "SSH service restarted successfully"
|
||||||
else
|
else
|
||||||
log_message "ERROR" "Failed to restart SSH service"
|
log_message "ERROR" "Failed to restart SSH service"
|
||||||
|
|
||||||
# Revert to backup
|
# Revert to backup
|
||||||
cp "$SSH_CONFIG_BACKUP" "$SSH_CONFIG"
|
cp "$SSH_CONFIG_BACKUP" "$SSH_CONFIG"
|
||||||
service restart sshd
|
service restart sshd
|
||||||
|
Loading…
x
Reference in New Issue
Block a user