If you want to protect your auth Proxmox VE, you can follow this step.
This configuration will be make max 3 attempt
for Login to SSH or GUI & ban for 1 days
you can modify on maxretry
& bantime
parameter.
apt-get install -y fail2ban
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: nginx-minio-config | |
data: | |
default.conf: | | |
server { | |
listen 80; | |
listen [::]:80; | |
server_name localhost; |
apiVersion: v1 | |
kind: Namespace | |
metadata: | |
name: istio-test | |
labels: | |
istio-injection: enabled | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: nginx-deployment | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: nginx | |
template: |
server { | |
listen 80; | |
server_name ~^([\w-]+)\.YOURDOMAIN\.com$; | |
return 301 https://$host$request_uri; | |
} | |
server { | |
listen 443 ssl; | |
server_name ~^([\w-]+)\.YOURDOMAIN\.com$; |
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: imagecleanupconfig | |
namespace: default | |
labels: | |
component: imagecleanup | |
data: | |
# removes all images unused by a running container | |
cronjobs: 0 0 * * * crictl rmi --prune 2>&1 |
docker run -d -p 999:9999 -v /run/utmp:/run/utmp flor0/prometheus-ssh-exporter