Page 1 of 1

VPN Configuration not happening during install

Posted: Tue Oct 01, 2024 8:38 pm
by 1000_Sparrows

After having completed the install, I was able to get to to qbittorrent, but on checking the vpn. I manually configured it, then ran the install script again, but it must have deleted with that. When going through the install if I say "Y" for configure the VPN, it skipped over it. Now with me manually configuring it again as directed in https://github.com/qdm12/gluetun-wiki/b ... mullvad.md when I try to run

Code: Select all

yams check-vpn

I am met with the following message:

Code: Select all

yams@yams-lxc:/tmp/yams$ yams check-vpn
Getting your IP...
xx.xx.xx.xx
Your local IP country is United States


Getting your qBittorrent IP...

with nothing else reported.

For what it's worth my environment is configured like this:
environment:
- VPN_SERVICE_PROVIDER=mullvad
- VPN_TYPE=wireguard
- WIREGUARD_PRIVATE_KEY=[KEY]
- WIREGUARD_ADDRESSES=xx.xx.xx.xx/32
- SERVER_CITIES=Chicago

**I removed all of the IP addresses that would have shown.


Re: VPN Configuration not happening during install

Posted: Tue Oct 01, 2024 9:11 pm
by 1000_Sparrows

On further inspection, my City was only "Chicago" not "Chicago IL", but after that am getting a different error from logs, but same issue when running yams check-vpn


Re: VPN Configuration not happening during install

Posted: Tue Oct 01, 2024 9:19 pm
by rogs

Hey @1000_Sparrows!

Are you sure you configured Mullvad + Wireguard correctly? You might be missing some of the env vars. Can you send the Gluetun logs in a pastebin?

Cheers!

Roger.


Re: VPN Configuration not happening during install

Posted: Tue Oct 01, 2024 9:57 pm
by 1000_Sparrows

I am not sure. I didn't change much in the yaml file apart from uncommenting:
network_mode: "service:gluetun"

Then i tried for Wireguard instead of OpenVPN for this section:

  • 8080:8080/tcp # gluetun -> Uncomment this line
    ...
    environment:
    • VPN_SERVICE_PROVIDER=<vpn_service> # -> Replace "<vpn_service>" with your VPN service provider
      • VPN_TYPE=openvpn
      • OPENVPN_USER=<vpn_user> # -> Replace "<vpn_user>" with your VPN username
      • OPENVPN_PASSWORD=<vpn_password> # -> Replace "<vpn_password>" with your VPN password

https://pastebin.com/jx5h23Z3


Re: VPN Configuration not happening during install

Posted: Tue Oct 01, 2024 10:13 pm
by rogs

In order to use Wireguard, it's best if you add the credentials directly on the container environment variables. Make sure you have all the environment variables needed for running Mullvad with Wireguard.

Also, according to your logs, your /tun/ device is not available.

Code: Select all

2024-10-01T21:53:08Z ERROR checking TUN device: TUN device is not available: open /dev/net/tun: operation not permitted (see the Wiki errors/tun page)

This might be related. One question, are. you running YAMS in a LXC, a VM or bare metal?

Cheers!

Roger.


Re: VPN Configuration not happening during install

Posted: Tue Oct 01, 2024 10:31 pm
by 1000_Sparrows

Not sure what to make of the TUN not being available

Code: Select all

yams@yams-lxc:/opt/yams$ ls -l /dev/net/tun
crw------- 1 root root 10, 200 Oct  1 18:34 /dev/net/tun

I am running it as a privileged LXC on Proxmox.

I will read about environment variables and how to use them in the docker.yaml also


Re: VPN Configuration not happening during install

Posted: Tue Oct 01, 2024 11:34 pm
by rogs

I've read about many issues with running YAMS in an LXC. I'm 90% sure your problems are related to that.

I would strongly suggest using a VM instead. However, if you prefer sticking with LXC, feel free to ask in the Discord. There are plenty of people there who have experience running YAMS in LXC, and they might be able to help you :D