bubuntux / nordlynx

GNU General Public License v3.0
192 stars 43 forks source link

Not able to connect on docker swarm #99

Closed gbozzetti closed 1 year ago

gbozzetti commented 1 year ago

Hello,

this bug #58 still needs to be fixed, I have the same problem.

Thank you!

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

gbozzetti commented 1 year ago

please don't close this issue!

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

michaelkrieger commented 3 months ago

Got this working by adding INTERFACE=eth1 as a parameter. This is a working config in swarm. My swarm network is called crowd, so I add that network to the pot.

  nordlynx:
    container_name: nordlynx
    image: ghcr.io/bubuntux/nordlynx
    cap_add:
      - NET_ADMIN
      - SYS_MODULE
    environment:
      # docker run --rm --cap-add=NET_ADMIN -e USER=... -e PASS='...' bubuntux/nordvpn:get_private_key
      - PRIVATE_KEY=...
      - NET_LOCAL=192.168.0.0/24
      - INTERFACE=eth1
      - TZ=America/NewYork
      - "DNS=1.1.1.1,8.8.8.8" # Cloudflare with Google backup
      # QUERY NordVPN API Cheat Sheet: https://sleeplessbeastie.eu/2019/02/18/how-to-use-public-nordvpn-api/
      - QUERY=filters\[country_id\]=228&\[servers_groups\]\[identifier\]=legacy_p2p
    restart: unless-stopped
    sysctls:
      - net.ipv6.conf.all.disable_ipv6=1   # Recomended if using ipv4 only
      - net.ipv4.conf.all.src_valid_mark=1
    networks:
      - crowd
    ports:
      - 3128:3128     # squid