feat(rego-tunnel): optional shared network via NIC2
Some checks failed
Test / test (push) Has been cancelled

This commit is contained in:
2025-12-29 06:59:52 +00:00
parent 2dae9f667e
commit 6fd57b0ce2
4 changed files with 127 additions and 7 deletions

View File

@@ -76,6 +76,60 @@
"env_variable": "BRIDGE_CIDR",
"default": "100.100.0.1"
},
{
"type": "text",
"label": "QEMU binary",
"hint": "Override the QEMU system binary (e.g. /usr/bin/qemu-system-amd64). Leave empty for default.",
"placeholder": "/usr/bin/qemu-system-amd64",
"required": false,
"env_variable": "QEMU_BIN",
"default": ""
},
{
"type": "text",
"label": "TAP2 name (shared network)",
"hint": "Optional second TAP interface for a second VM NIC. Set to enable NIC2 (e.g. tap1).",
"placeholder": "tap1",
"required": false,
"env_variable": "TAP2_NAME",
"default": ""
},
{
"type": "text",
"label": "Bridge2 name (shared network)",
"hint": "Optional second Linux bridge for NIC2 (e.g. br-app).",
"placeholder": "br-app",
"required": false,
"env_variable": "BRIDGE2_NAME",
"default": ""
},
{
"type": "text",
"label": "Bridge2 uplink interface",
"hint": "If set, bridge NIC2 onto this container interface (e.g. eth0 for 10.x app network, eth1 for 172.x main network).",
"placeholder": "eth0",
"required": false,
"env_variable": "BRIDGE2_UPLINK_IF",
"default": ""
},
{
"type": "text",
"label": "Bridge2 CIDR (optional)",
"hint": "Optional IPv4/CIDR for Bridge2. If empty and uplink is set, the bridge inherits the uplink IPv4 address.",
"placeholder": "10.128.14.2/24",
"required": false,
"env_variable": "BRIDGE2_CIDR",
"default": ""
},
{
"type": "text",
"label": "VM MAC2 (shared network)",
"hint": "Optional MAC for NIC2 (e.g. 52:54:00:12:34:57).",
"placeholder": "52:54:00:12:34:57",
"required": false,
"env_variable": "VM_MAC2",
"default": ""
},
{
"type": "ip",
"label": "VM subnet",