Skip to content

Instantly share code, notes, and snippets.

@lmlsna
lmlsna / container-to-host-proxy.yaml
Last active February 5, 2025 04:08
Alternative LXD/incus default profile for a Wireguard only interface.
# The best way to access the host is through the exec command using sockets, but you can also add limited
# network connectivity between the host and container on specified ports with lxd proxy devices.
#
# This is an example profile giving the host access to port 8080 of the containers network.
#
name: container-to-host-proxy
description: "Give the host access (on the host's localhost:8080) to container's port 8080"
config: {}
devices:
webproxy: