proxmox

Dies ist eine alte Version des Dokuments!


Proxmox Konfigurationen

Das Proxmox Administration Interface wird durch eine vorgeschaltete Authentifizierung geschützt. Hierzu wird die .htaccess Datei verwendet sowie ein lokaler Proxy der auf den Standard Port 8006 weiterleitet. Das Interface wird zusätzlich für den externen Zugriff gesperrt, womit es nur möglich ist, über den Proxy auf das Interface zuzugreifen.

Mithilfe von LetsEncrypt und Certbot wird die Verbindungen per SSL gesichert.

Installation & Konfiguration Nginx

apt update && apt install nginx certbot python3-certbot-nginx
nano /etc/nginx/sites-available/DOMAINNAME.conf
listen 80;
server_name DOMAINNAME;

access_log /var/log/nginx/access_DOMAINNAME.log
error_log /var/log/nginx/access_DOMAINNAME.log

proxy_redirect off;
location / {
   proxy_http_version 1.1;
   proxy_set_header Upgrade $http_upgrade;
   proxy_set_header Connection "upgrade";
   proxy_pass https://127.0.0.1:8006;
   proxy_buffering off;
   client_max_body_size 0;
   proxy_connect_timeout 3600s;
   proxy_read_timeout 3600s;
   proxy_send_timeout 3600s;
   send_timeout 3600;
   
   auth_basic "418";
   auth_basic_user_file /etc/nginx/.htpasswd_SERVERNAME;
}
ln -s /etc/nginx/sites-available/DOMAINNAME.conf /etc/nginx/sites-enabled/DOMAINNAME.conf
systemctl restart nginx
nano /etc/default/pveproxy
ALLOW_FROM="127.0.0.1"
DENY_FROM="all"
POLICY="allow"
systemctl restart pveproxy
  • proxmox.1704631629.txt.gz
  • Zuletzt geändert: 2024/01/07 12:47
  • von lehmann