bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/ct/docker.sh)"
run the advanced settings to customize your install
this uses the docker lxc proxmox helper script
change the
CTID
for your setup
CTID="100"
cat << 'EOF' >> /etc/pve/lxc/$CTID.conf
lxc.cgroup2.devices.allow: c 10:200 rwm
lxc.mount.entry: /dev/net/tun dev/net/tun none bind,create=file
EOF
run this from the proxmox node
lxc-attach $CTID
get user/pw from https://www.expressvpn.com/welcome#manual
USER="changeme"
PW="changeme"
cat << 'EOF' > docker-compose.yml
services:
gluetun:
image: qmcgaw/gluetun
container_name: gluetun
cap_add:
- NET_ADMIN
devices:
- /dev/net/tun:/dev/net/tun
environment:
- TZ=US/Eastern
- VPN_SERVICE_PROVIDER=expressvpn
- OPENVPN_USER=$USER
- OPENVPN_PASSWORD=$PW
- SERVER_COUNTRIES=USA
- SHADOWSOCKS=on
ports:
- 8388:8388/tcp # Shadowsocks
- 8388:8388/udp # Shadowsocks
EOF
let it run for a second to make sure everythings connects successfully, and then re-run it as a daemon
docker compose up
CTRL+c to exit
docker compose up -d
docker run --rm --network=container:gluetun alpine:3.20 sh -c "apk add wget && wget -qO- https://ipinfo.io"
the first time i ran this it failed, ran it again and it worked
ss://method:password@hostname:port