aboutsummaryrefslogtreecommitdiff
path: root/templates/pvebanner.bash
blob: 7f79b6d742f70bea3a32ea715421f46a25ec241b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
set -e

LISTEN_IP=$(grep '^LISTEN_IP=' /etc/default/pveproxy | cut -d'"' -f2)
NAT_SUBNET={{ nat_subnet }}
NAT_SUBNET_PREFIX={{ nat_subnet_prefix }}
NAT_BRIDGE_IP={{ nat_bridge_ip }}
WG_SUBNET={{ wg_subnet }}
WG_PORT={{ wg_port }}

> /etc/issue

cat > /etc/motd << EOF
Welcome to the Proxmox Virtual Environment. Please use your web browser to 
configure this server, only accessible via WireGuard:

  https://${LISTEN_IP}:8006

Network configuration:

  - VM/CT subnet        ${NAT_SUBNET}
  - dnsmasq for vmbr1   ${NAT_SUBNET_PREFIX}.100 - ${NAT_SUBNET_PREFIX}.200, 12h
  - Bridge IP           ${NAT_BRIDGE_IP}
  - WireGuard subnet    ${WG_SUBNET}
  - Wireguard port      ${WG_PORT}

EOF