Add Windows cloud image tools with firewall support

This commit is contained in:
2025-11-17 05:41:30 +07:00
parent 6c5d2cac75
commit a218640c29
14 changed files with 1065 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
image_path: "/path/to/windows-11.qcow2"
vm_name: "windows-11-template"
vm_id: 0
storage: "local-lvm"
memory: 8192
cores: 4
sockets: 1
bridge: "vmbr0"
vlan_tag: 0
proxmox_host: "192.168.1.100"
proxmox_user: "root@pam"
guest_agent: true
firewall: true
firewall_rules:
- type: in
action: accept
protocol: tcp
dport: "3389"
comment: "Allow RDP"
- type: out
action: accept
protocol: tcp
dport: "80,443"
comment: "Allow HTTP/HTTPS"
- type: out
action: accept
protocol: udp
dport: "53"
comment: "Allow DNS"

View File

@@ -0,0 +1,13 @@
image_path: "/path/to/windows-server-2019.qcow2"
vm_name: "windows-server-2019-template"
vm_id: 0
storage: "local-lvm"
memory: 4096
cores: 2
sockets: 1
bridge: "vmbr0"
vlan_tag: 0
proxmox_host: "192.168.1.100"
proxmox_user: "root@pam"
guest_agent: true
firewall: false

View File

@@ -0,0 +1,29 @@
image_path: "/path/to/windows-server-2022.qcow2"
vm_name: "windows-server-2022-template"
vm_id: 0
storage: "local-lvm"
memory: 4096
cores: 2
sockets: 1
bridge: "vmbr0"
vlan_tag: 0
proxmox_host: "192.168.1.100"
proxmox_user: "root@pam"
guest_agent: true
firewall: true
firewall_rules:
- type: in
action: accept
protocol: tcp
dport: "3389"
comment: "Allow RDP"
- type: in
action: accept
protocol: tcp
dport: "5985-5986"
comment: "Allow WinRM"
- type: out
action: drop
dest: "10.0.0.0/8"
comment: "Block internal network"