Skip to content

[BUG] browser log reports wireguard module is not active but lsmod shows it is active #9

@chinarut

Description

@chinarut

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

I have Ubuntu Server 22.04.4 LTS with CasaOS v0.4.8. Container version 13.0.13-ls59

root@orbit:/# docker inspect -f '{{ index .Config.Labels "build_version" }}' linuxserver-mullvad-browser-app-1
Linuxserver.io version:- 13.0.13-ls59 Build-date:- 2024-04-14T23:33:33+00:00

not clear why “image” version differs (13.0.14-ls60) (putting it here for completeness):

root@***:/# docker inspect -f '{{ index .Config.Labels "build_version" }}' lscr.io/linuxserver/mullvad-browser:latest
Linuxserver.io version:- 13.0.14-ls60 Build-date:- 2024-04-16T16:36:40+00:00

browser works fine without VPN enabled.

I downloaded the following file from my VPN and saved it as config/wg0.conf (sanitized for privacy):

PrivateKey = ***
Address = *.*.*.*
DNS = 8.8.8.8

[Peer]
PublicKey = ***
AllowedIps = 0.0.0.0/0
Endpoint = ***:993
PersistentKeepalive = 21

now this shows up in my log:

app-1  | RTNETLINK answers: Operation not permitted
app-1  | **** The wireguard module is not active or you do not have the correct Capabilities set. If you believe that your kernel should have wireguard support already, make sure that it is activated via modprobe! ****

I checked to see if my wireguard module is loaded and it is:

root@***:/# lsmod | grep wireguard
wireguard              94208  0
curve25519_x86_64      36864  1 wireguard
libchacha20poly1305    16384  1 wireguard
libcurve25519_generic    49152  2 curve25519_x86_64,wireguard
ip6_udp_tunnel         16384  1 wireguard
udp_tunnel             20480  1 wireguard

what other steps can we take to troubleshoot?

Expected Behavior

Mullvad Browser establishes VPN tunnel using provided Wireguard config file from VPN provider.

http://ifconfig.io reports an IP in Australia instead of my ISP IP.

Steps To Reproduce

  1. install Ubuntu 22.04.04 LTS
  2. install CasaOS (latest: 0.4.8)
  3. install LinuxServer.io AppStore
  4. install Mullvad Browser
  5. open browser at http://localhost:3000
  6. open http://ifconfig.io and confirm it reports your public ISP IP
  7. copy Wireguard config to /config/wg0.conf (in container)
  8. open browser at http://localhost:3000
  9. observe host browser just hangs and eventually [Safari] reports “Safari couldn’t open the page because the server stopped responding.”
  10. open container log file
  11. observe Wireguard module is not loaded

Environment

  • hardware: early 2015 Retina MacBook Pro.
  • OS: Ubuntu Server 22.04.4 LTS
  • How docker service was installed: sudo apt install docker.io

(1)
just FYI, I have WG Easy installed and can successfully tunnel into my server from an external cellular network using the official Wireguard app on a Pixel 6a:

https://github.com/WisdomSky/CasaOS-Coolstore/blob/main/Apps/wg-easy/docker-compose.yml

(2)
to help isolate that is not my VPN provider, I tested a 2nd Wireguard config assigned to my Pixel & able to create a tunnel in the Wireguard app no problem.

CPU architecture

x86-64

Docker creation

from LinuxServer.io AppStore - so I assume this one:

https://github.com/WisdomSky/CasaOS-LinuxServer-AppStore/blob/main/Apps/Mullvad-browser/docker-compose.yml

Container logs

root@***:/# docker logs linuxserver-mullvad-browser-app-1������������������[migrations] started
[migrations] no migrations found
───────────────────────────────────────

      ██╗     ███████╗██╗ ██████╗
      ██║     ██╔════╝██║██╔═══██╗
      ██║     ███████╗██║██║   ██║
      ██║     ╚════██║██║██║   ██║
      ███████╗███████║██║╚██████╔╝
      ╚══════╝╚══════╝╚═╝ ╚═════╝

   Brought to you by linuxserver.io
───────────────────────────────────────

To support LSIO projects visit:
https://www.linuxserver.io/donate/

───────────────────────────────────────
GID/UID
───────────────────────────────────────

User UID:    1000
User GID:    1000
───────────────────────────────────────

Uname info: Linux da0cedda58e2 5.15.0-102-generic #112-Ubuntu SMP Tue Mar 5 16:50:32 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
RTNETLINK answers: Operation not permitted
**** The wireguard module is not active or you do not have the correct Capabilities set. If you believe that your kernel should have wireguard support already, make sure that it is activated via modprobe! ****
[migrations] started
[migrations] no migrations found
usermod: no changes
───────────────────────────────────────

      ██╗     ███████╗██╗ ██████╗
      ██║     ██╔════╝██║██╔═══██╗
      ██║     ███████╗██║██║   ██║
      ██║     ╚════██║██║██║   ██║
      ███████╗███████║██║╚██████╔╝
      ╚══════╝╚══════╝╚═╝ ╚═════╝

   Brought to you by linuxserver.io
───────────────────────────────────────

To support LSIO projects visit:
https://www.linuxserver.io/donate/

───────────────────────────────────────
GID/UID
───────────────────────────────────────

User UID:    1000
User GID:    1000
───────────────────────────────────────

Uname info: Linux da0cedda58e2 5.15.0-102-generic #112-Ubuntu SMP Tue Mar 5 16:50:32 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
RTNETLINK answers: Operation not permitted
**** The wireguard module is not active or you do not have the correct Capabilities set. If you believe that your kernel should have wireguard support already, make sure that it is activated via modprobe! ****

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions