Skip to content

Commit 2f4e860

Browse files
feat: add TUN/TAP (VPN) option to container features in web GUI
- Add var_tun to advanced defaults (default: no) - Add TUN/TAP (VPN) dropdown in Container Features section for /dev/net/tun - Enables Tailscale, WireGuard, OpenVPN in LXC containers via GUI
1 parent ff5478d commit 2f4e860

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

src/app/_components/ConfigurationModal.tsx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ export function ConfigurationModal({
109109
var_mknod: 0,
110110
var_mount_fs: '',
111111
var_protection: 'no',
112+
var_tun: 'no',
112113

113114
// System
114115
var_timezone: '',
@@ -806,6 +807,20 @@ export function ConfigurationModal({
806807
<option value={1}>Enabled</option>
807808
</select>
808809
</div>
810+
<div>
811+
<label className="block text-sm font-medium text-foreground mb-2">
812+
TUN/TAP (VPN)
813+
</label>
814+
<select
815+
value={typeof advancedVars.var_tun === 'boolean' ? (advancedVars.var_tun ? 'yes' : 'no') : String(advancedVars.var_tun ?? 'no')}
816+
onChange={(e) => updateAdvancedVar('var_tun', e.target.value)}
817+
className="w-full rounded-md border border-input bg-background px-3 py-2 text-sm text-foreground focus:ring-2 focus:ring-ring focus:outline-none"
818+
>
819+
<option value="no">No</option>
820+
<option value="yes">Yes</option>
821+
</select>
822+
<p className="text-xs text-muted-foreground mt-1">For Tailscale, WireGuard, OpenVPN</p>
823+
</div>
809824
<div>
810825
<label className="block text-sm font-medium text-foreground mb-2">
811826
Mknod

0 commit comments

Comments
 (0)