Port Forwarding Troubles
Hey All,
First thanks for this community and YAMS!
So I have gotten my vpn provider Torguard hooked up to gluetun in a docker container running on debian 12 in a proxmox VM now twice. Once using wireguard and now using openvpn.. both times I got the setup to work and survive reboots where the yams check-vpn is successful. It wasnt easy for me either time but I have succeeded both ways.
I have not had success with portforwarding in either scenario. Here are my docker-compose for gluetun and my conf file
Code: Select all
client
dev tun
proto udp
remote XXX.XXX.XXX.XXX XXXX
remote-cert-tls server
auth SHA256
key-direction 1
setenv CLIENT_CERT 0
<tls-crypt>
-----BEGIN OpenVPN Static key V1-----
dsajflkajlkdsajfdslkajlk
-----END OpenVPN Static key V1-----
</tls-crypt>
resolv-retry infinite
nobind
tls-version-min 1.2
cipher AES-256-CBC
auth-user-pass
compress
tun-mtu-extra 32
<ca>
-----BEGIN CERTIFICATE-----
dskjaflkdajdslkfjalkjfl
-----END CERTIFICATE-----
-----BEGIN CERTIFICATE-----
sdkfajdksjlkfdsajdslkj
-----END CERTIFICATE-----
</ca>
Code: Select all
# Gluetun is our VPN, so you can download torrents safely
gluetun:
image: qmcgaw/gluetun:v3
container_name: gluetun
cap_add:
- NET_ADMIN
devices:
- /dev/net/tun:/dev/net/tun
ports:
- 8888:8888/tcp # HTTP proxy
- 8388:8388/tcp # Shadowsocks
- 8388:8388/udp # Shadowsocks
- 8003:8000/tcp # Admin
- 8080:8080/tcp # qbittorrent
- 8081:8081/tcp # gluetun
volumes:
- /mnt/xxx/xxx.conf:/gluetun/xxx.conf
environment:
- VPN_SERVICE_PROVIDER=custom
- OPENVPN_CUSTOM_CONFIG=/gluetun/tor.conf
- OPENVPN_USER="xjkdfkjfakjhfkjdk"
- OPENVPN_PASSWORD="dskfajfdslkajflad"
- FIREWALL_VPN_INPUT_PORTS=1XXXX
# - VPN_PORT_FORWARDING=on
# - VPN_TYPE=openvpn
# - OPENVPN_USER=${VPN_USER}
# - OPENVPN_PASSWORD=${VPN_PASSWORD}
# - OPENVPN_CIPHERS=AES-256-GCM
# - PORT_FORWARD_ONLY=on
# - VPN_PORT_FORWARDING=on
restart: unless-stopped
I also went into the client area Torguard and did the appropriate port forward requests and udp and tcp are both showing as active on my correct IP address. I checked the port numbers in all three places so many times...
I also set the correct port in the connections tab in the qbittorrent settings. i also have portforwarding from my router set
I have also put the port 1xxxx into the port forwarding section of my router pointed to the ip address of the debian 12 that is hosting the docker containers... it occurs to me right now if i shouldn;t forward the port in my router to point to the proxmox machine.. hmmm
Anway that is what I have done and I can't portwarding to correctly show up in the qbittorrent status check at the bottom of the gui. I also get this output from the port command for gluetun:
Code: Select all
user@host:/mnt/yams$ curl http://localhost:8003/v1/openvpn/portforwarded
{"port":0}
Well.. im stuck any ideas-im pretty low average at linux and a very beginner in proxmox