VPN Configuration not happening during install

Having any issues installing YAMS? This is the place to ask!
Post Reply
1000_Sparrows
Posts: 7
Joined: Thu Sep 26, 2024 10:00 pm
United States of America

VPN Configuration not happening during install

Post 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.

1000_Sparrows
Posts: 7
Joined: Thu Sep 26, 2024 10:00 pm
United States of America

Re: VPN Configuration not happening during install

Post 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

User avatar
rogs
Site Admin
Posts: 154
Joined: Mon Oct 23, 2023 12:53 pm
Location: Montevideo, Uruguay
Gender:
Contact:
Uruguay

Re: VPN Configuration not happening during install

Post 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.

YAMS Creator

E: roger (at) rogs.me. Fuck you, email bots.
W: https://rogs.me
gpg: curl -sL https://rogs.me/rogs.txt | gpg --import
fingerprint: ADDF BCB7 8B86 8D93 FC4E 3224 C7EC E9C6 C36E C2E6


Also, I love cats :mrgreen:

Pirate jet, pirate jet
1000_Sparrows
Posts: 7
Joined: Thu Sep 26, 2024 10:00 pm
United States of America

Re: VPN Configuration not happening during install

Post 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

User avatar
rogs
Site Admin
Posts: 154
Joined: Mon Oct 23, 2023 12:53 pm
Location: Montevideo, Uruguay
Gender:
Contact:
Uruguay

Re: VPN Configuration not happening during install

Post 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.

YAMS Creator

E: roger (at) rogs.me. Fuck you, email bots.
W: https://rogs.me
gpg: curl -sL https://rogs.me/rogs.txt | gpg --import
fingerprint: ADDF BCB7 8B86 8D93 FC4E 3224 C7EC E9C6 C36E C2E6


Also, I love cats :mrgreen:

Pirate jet, pirate jet
1000_Sparrows
Posts: 7
Joined: Thu Sep 26, 2024 10:00 pm
United States of America

Re: VPN Configuration not happening during install

Post 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

User avatar
rogs
Site Admin
Posts: 154
Joined: Mon Oct 23, 2023 12:53 pm
Location: Montevideo, Uruguay
Gender:
Contact:
Uruguay

Re: VPN Configuration not happening during install

Post 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

YAMS Creator

E: roger (at) rogs.me. Fuck you, email bots.
W: https://rogs.me
gpg: curl -sL https://rogs.me/rogs.txt | gpg --import
fingerprint: ADDF BCB7 8B86 8D93 FC4E 3224 C7EC E9C6 C36E C2E6


Also, I love cats :mrgreen:

Pirate jet, pirate jet
Post Reply