bernardko / mullvad-proxy

Mullvad VPN docker container providing a HTTP and SOCKS5 Proxy
45 stars 5 forks source link

No Such Container: mvpn #1

Open KeiranChristie opened 1 year ago

KeiranChristie commented 1 year ago

Hi as the subject headline says, git cloned the repo and input my mullvad account number into .env.example and saved it as .env

I Ran setup.sh as sudo and it ends with "Error: no such container: mvpn"

The whole output is here: https://pastebin.com/DpEFyKEM

Pannekoekjes commented 1 year ago

I have the same issue. Found out that this is the error:

/var/lib/dpkg/info/mullvad-vpn.postinst: line 6: systemctl: command not found

Both ubuntu and debian (in docker) seem not to use systemctl. Now trying to make it work.

ronny332 commented 1 year ago

I got it working, but moved to GlueTun, works perfect, for a huge amount of services.

Pannekoekjes commented 1 year ago

Found some post on forums about systemctl. Seems it needs dbus in a container

dbus is in the current Dockerfile, i will search further :)

Normally when you run a container you aren’t running an init system. systemctl is a process that communicates with systemd over dbus. If you aren’t running dbus or systemd, I would expect systemctl to fail.

https://forums.docker.com/t/systemctl-status-is-not-working-in-my-docker-container/9075

@ronny332 Thanks, will look into that. Looks great at first start.

Edit: Thanks, got GlueTun working !

caewok commented 6 months ago

@Pannekoekjes How did you get it to work? Do you have a Dockerfile you can share?

Pannekoekjes commented 6 months ago

@caewok I meant that i got GlueTun working. I could not get this proxy to work at the moment. Currently still using GlueTun and it's great.

au-ganymede commented 4 months ago

@Pannekoekjes Is GlueTun able to connect to Mullvad and then tunnel traffic through the SOCKS5 proxy so I can connect via Firefox (the aim is to browse the web in Firefox through Mullvad)? My main goal is to separate VPNs to specific browsers on the system. Unfortunately, I don't know much about Docker or networking at all (I'm a designer), so the GlueTun wiki isn't entirely clear to me.

Pannekoekjes commented 3 months ago

Yes thats possible but not out of the box. You should add this to a docker compose file together with the gluetun example of course. Add the port 1080 to the gluetun service to allow access to socks5

  socks5:
    image: serjs/go-socks5-proxy
    network_mode: "service:gluetun"
    restart: unless-stopped

Example compose:

version: "3"
services:
  gluetun:
    image: qmcgaw/gluetun:v3.38.0
    container_name: gluetun
    restart: unless-stopped
    cap_add:
      - NET_ADMIN
    devices:
      - /dev/net/tun:/dev/net/tun
    ports:
      - 8888:8888/tcp # HTTP proxy
      - 1080:1080     # Socks5 proxy
    volumes:
      - gluetun-data:/gluetun
    environment:
        xxx

  socks5:
    image: serjs/go-socks5-proxy
    network_mode: "service:gluetun"
    restart: unless-stopped

volumes:
  gluetun-data:
    name: gluetun-data