I've installed Gluetun via a Proxmox Helper Script, but I'm not sure how to connect other LXC containers to the Gluetun enabled vpn.
All the documentaion for Gluetun online is for a docker install, and the Helper Script installs Gluetun as a systemd.service. In the docker install, other containers are connected to Gluetun's vpn via a docker network service and port mapping.
My current vpn setup uses an OpenWrt VM, where I connect the OpenWrt vlan to a network interface which is on a Proxmox network bridge dedicated to the vpn and connect each LXC container to that bridge. It's a pain to periodically change vpn servers this way, so I thought I'd give Gluetun a try.
All the documentaion for Gluetun online is for a docker install, and the Helper Script installs Gluetun as a systemd.service. In the docker install, other containers are connected to Gluetun's vpn via a docker network service and port mapping.
My current vpn setup uses an OpenWrt VM, where I connect the OpenWrt vlan to a network interface which is on a Proxmox network bridge dedicated to the vpn and connect each LXC container to that bridge. It's a pain to periodically change vpn servers this way, so I thought I'd give Gluetun a try.
- On the Gluetun LXC:
- How do I expose the VPN to the Proxmox network?
- I assume via a bridge, but there don't appear to be any options to do this.
- Do I need to route and NAT with cli and iptables?
- How do I expose the VPN to the Proxmox network?
- On an LXC container:
- Do I just connect the container to a new vpn dedicated bridge?
- Do I set the Gluetun LXC as the Gateway?
- For containers with a GUI, how will this change native GUI access?
Code:
cat /opt/gluetun-data/.env
VPN_SERVICE_PROVIDER=custom
VPN_TYPE=openvpn
OPENVPN_CUSTOM_CONFIG=/opt/gluetun-data/custom.ovpn
OPENVPN_USER=
OPENVPN_PASSWORD=
OPENVPN_PROCESS_USER=root
PUID=0
PGID=0
HTTP_CONTROL_SERVER_ADDRESS=:8000
HTTPPROXY=off
SHADOWSOCKS=off
PPROF_ENABLED=no
PPROF_BLOCK_PROFILE_RATE=0
PPROF_MUTEX_PROFILE_RATE=0
PPROF_HTTP_SERVER_ADDRESS=:6060
FIREWALL_ENABLED_DISABLING_IT_SHOOTS_YOU_IN_YOUR_FOOT=on
HEALTH_SERVER_ADDRESS=127.0.0.1:9999
DNS_UPSTREAM_RESOLVERS=cloudflare
LOG_LEVEL=info
STORAGE_FILEPATH=/gluetun/servers.json
PUBLICIP_FILE=/gluetun/ip
VPN_PORT_
Last edited: