bubuntux / nordlynx

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

Cannot access VPN channels in USTVGO #79

Closed joelstitch closed 2 years ago

joelstitch commented 2 years ago

I have this docker container running smoothly in a stack that starts other containers to run trhough its vpn. I have no issues downloading torrents or accesing the internet but I am having issues accessing the VPN required channels on USTVGO. On my desktop using the NordVPN app I am able to see the VPN channels but it does not work through this container. One of the containers using nordlynx vpn network is called Cabernet, this container accesses USTVGO and lets me vieew it on Plex but it's only showing the channels that dont require the VPN. When I run curl ifconfig.co I get a NordVPN IP so I know for a fact the container is running through NordVPN.

This is my docker compose:

---
version: "3"
services:
  nordlynx:
    image: ghcr.io/bubuntux/nordlynx:2022-03-01
    container_name: nordlynx
    restart: unless-stopped
    security_opt:
      - no-new-privileges:true
    cap_add:
      - NET_ADMIN
    sysctls:
      - net.ipv6.conf.all.disable_ipv6=1  # Recommended if using ipv4 only
    environment:
      - USER=USERNAME
      - PASS=PASS
      - CONNECT=United States
      - TECHNOLOGY=NordLynx
      - NETWORK=192.168.69.0/24
      - PRIVATE_KEY=PRIVATE_KEY
      - ALLOWED_IPS=0.0.0.0/1,128.0.0.0/1
      - NET_LOCAL=10.0.0.0/8,172.16.0.0/12,192.168.0.0/16
      - "POST_UP=ip -4 route add $$(wg | awk -F'[: ]' '/endpoint/ {print $$5}') via $$(ip route | awk '/default/ {print $$3}')"
      - "PRE_DOWN=ip -4 route del $$(route -n | awk '/255.255.255.255/ {print $$1}') via $$(ip route | awk '/default/ {print $$3}')" 
    ports:
      - 8088:8088
      - 8081:8081 # Sabnzbd
      - 9696:9696 # Prowlarr
      - 8989:8989 # Sonarr
      - 8310:7878 # Radarr
      - 8080:8080 # qbittorrent
      - 6077:6077 # cabernet
      - 5299:5299 # lazylibrarian
      - 6881:6881
      - 6881:6881/udp

  cabernet:
    image: ghcr.io/cabernetwork/cabernet:latest
    container_name: cabernet
    network_mode: service:nordlynx
    environment:
      - WEBUI_PORT=6077
      - PUID=1026
      - PGID=101
    volumes:
      - /volume1/docker/cabernet:/app
    depends_on:
      - nordlynx
    restart: always

This is the log from Cabernet:

2022-05-25 16:24:27,757-INFO:user_config Loading Configuration File: /app/data/config.ini,
2022-05-25 16:24:47,844-WARNING:main #########################################,
2022-05-25 16:24:47,846-WARNING:main MIT License, Copyright (C) 2021 ROCKY4546,
2022-05-25 16:24:47,847-NOTICE:main Cabernet v0.9.7.5,
2022-05-25 16:24:47,848-INFO:main Getting Plugins...,
2022-05-25 16:24:49,354-INFO:plugin No instances found, disabling plugin M3U,
2022-05-25 16:24:49,356-NOTICE:plugin Plugin created for M3U,
2022-05-25 16:24:52,726-NOTICE:plugin Plugin created for USTVGO,
2022-05-25 16:24:53,910-INFO:plugin No instances found, disabling plugin XUMO,
2022-05-25 16:24:53,910-NOTICE:plugin Plugin created for XUMO,
2022-05-25 16:24:53,912-INFO:plugin_handler Plugin M3U is disabled in config.ini,
2022-05-25 16:24:53,913-INFO:plugin_handler Plugin PlutoTV is disabled in config.ini,
2022-05-25 16:24:53,920-INFO:plugin_handler Plugin XUMO is disabled in config.ini,
2022-05-25 16:24:54,111-NOTICE:main Starting admin website on 172.21.0.2:6077,
2022-05-25 16:24:54,168-INFO:web_handler WebAdminHttpHandler Now listening for requests. Number of listeners=8,
2022-05-25 16:24:54,238-NOTICE:main Starting streaming tuner website on 172.21.0.2:5004,
2022-05-25 16:24:54,320-INFO:web_handler TunerHttpHandler Now listening for requests. Number of listeners=15,
2022-05-25 16:24:54,507-NOTICE:main Starting SSDP service on port 1900,
2022-05-25 16:24:54,615-NOTICE:main Starting HDHR service on port 65001,
2022-05-25 16:24:54,635-INFO:hdhr_server TCP: Starting HDHR TCP listener server,
2022-05-25 16:24:54,656-INFO:hdhr_server UDP: Starting HDHR multicast server,
2022-05-25 16:24:54,719-NOTICE:main Cabernet is now online.,
2022-05-25 16:24:54,985-NOTICE:scheduler Running inline task Channels:Refresh USTVGO Channels,
2022-05-25 16:24:55,584-NOTICE:scheduler Running threaded task Applications:Check for Updates,
2022-05-25 16:24:55,814-NOTICE:scheduler Running inline task Channels:Refresh PlutoTV Channels,
2022-05-25 16:24:56,795-NOTICE:scheduler Running threaded task EPG:Refresh USTVGO EPG,
2022-05-25 16:24:57,492-NOTICE:scheduler Running threaded task EPG:Refresh PlutoTV EPG,
2022-05-25 16:27:22,454-INFO:web_handler [172.21.0.1] "GET /html/index.html HTTP/1.1" 200 -,
2022-05-25 16:27:22,602-INFO:web_handler [172.21.0.1] "GET /modules/layout.css HTTP/1.1" 200 -,
2022-05-25 16:27:22,605-INFO:web_handler [172.21.0.1] "GET /modules/scrollstyles.css HTTP/1.1" 200 -,
2022-05-25 16:27:22,614-INFO:web_handler [172.21.0.1] "GET /modules/navdrawer/navdrawer.css HTTP/1.1" 200 -,
2022-05-25 16:27:22,665-INFO:web_handler [172.21.0.1] "GET /modules/flexstyles.css HTTP/1.1" 200 -,
2022-05-25 16:27:22,667-INFO:web_handler [172.21.0.1] "GET /modules/fonts/fonts.css HTTP/1.1" 200 -,
2022-05-25 16:27:22,671-INFO:web_handler [172.21.0.1] "GET /modules/backdrop/style.css HTTP/1.1" 200 -,
2022-05-25 16:27:22,673-INFO:web_handler [172.21.0.1] "GET /modules/emby-elements/emby-button/emby-button.css HTTP/1.1" 200 -,
2022-05-25 16:27:22,677-INFO:web_handler [172.21.0.1] "GET /modules/emby-elements/emby-collapse/emby-collapse.css HTTP/1.1" 200 -,
2022-05-25 16:27:22,679-INFO:web_handler [172.21.0.1] "GET /modules/fonts/material-icons/style.css HTTP/1.1" 200 -,
2022-05-25 16:27:22,680-INFO:web_handler [172.21.0.1] "GET /modules/navdrawer/navdrawer.js HTTP/1.1" 200 -,
2022-05-25 16:27:22,684-INFO:web_handler [172.21.0.1] "GET /api/index.js HTTP/1.1" 200 -,
2022-05-25 16:27:22,725-INFO:web_handler [172.21.0.1] "GET /modules/fonts/material-icons/LDItaoyNOAY6Uewc665JcIzCKsKc_M9flwmP_1.woff2 HTTP/1.1" 200 -,
2022-05-25 16:27:22,741-INFO:web_handler [172.21.0.1] "GET /modules/fonts/roboto/KFOlCnqEu92Fr1MmEU9fBBc4.woff2 HTTP/1.1" 200 -,
2022-05-25 16:27:22,766-INFO:web_handler [172.21.0.1] "GET /images/icon-32x32.png HTTP/1.1" 200 -,
2022-05-25 16:27:23,720-INFO:web_handler [172.21.0.1] "GET /modules/themes/spring/theme.js HTTP/1.1" 200 -,
2022-05-25 16:27:23,744-INFO:web_handler [172.21.0.1] "GET /modules/themes/spring/theme.css HTTP/1.1" 200 -,
2022-05-25 16:27:23,751-INFO:web_handler [172.21.0.1] "GET /modules/dashboard/dashboard.css HTTP/1.1" 200 -,
2022-05-25 16:27:23,751-INFO:web_handler [172.21.0.1] "GET /modules/dashboard/dashboard.js HTTP/1.1" 200 -,
2022-05-25 16:27:23,757-INFO:web_handler [172.21.0.1] "GET /modules/table/table.css HTTP/1.1" 200 -,
2022-05-25 16:27:23,787-INFO:web_handler [172.21.0.1] "GET /modules/themes/logowhite.png HTTP/1.1" 200 -,
2022-05-25 16:27:23,895-INFO:web_handler [172.21.0.1] "GET /background HTTP/1.1" 200 -,
2022-05-25 16:27:24,814-INFO:web_handler [127.0.0.1] "GET /tunerstatus HTTP/1.1" 200 -,
2022-05-25 16:27:24,829-INFO:web_handler [172.21.0.1] "GET /api/dashstatus.json HTTP/1.1" 200 -,
2022-05-25 16:27:25,729-INFO:web_handler [172.21.0.1] "GET /api/channels HTTP/1.1" 200 -,
2022-05-25 16:27:25,752-INFO:web_handler [172.21.0.1] "GET /modules/tabs/tabs.css HTTP/1.1" 200 -,
2022-05-25 16:27:25,755-INFO:web_handler [172.21.0.1] "GET /modules/tabs/tabs.js HTTP/1.1" 200 -,
2022-05-25 16:27:26,060-INFO:web_handler [172.21.0.1] "GET /modules/channels/channels.js HTTP/1.1" 200 -,
2022-05-25 16:27:27,633-INFO:web_handler [172.21.0.1] "GET /api/channels_form?name=USTVGO HTTP/1.1" 200 -,
2022-05-25 16:27:27,808-INFO:web_handler [172.21.0.1] "GET /modules/table/both_w.gif HTTP/1.1" 200 -,
2022-05-25 16:27:27,810-INFO:web_handler [172.21.0.1] "GET /modules/channels/channelsform.js HTTP/1.1" 200 -,
2022-05-25 16:27:27,812-INFO:web_handler [172.21.0.1] "GET /modules/table/asc_w.gif HTTP/1.1" 200 -,
2022-05-25 16:27:27,830-INFO:web_handler [172.21.0.1] "GET /modules/table/table.js HTTP/1.1" 200 -,
2022-05-25 16:27:28,093-INFO:web_handler [172.21.0.1] "GET /modules/channels/channelsform.css HTTP/1.1" 200 -,
2022-05-25 16:28:48,985-INFO:web_handler [172.21.0.1] "GET /api/configform?area=clients HTTP/1.1" 200 -,
2022-05-25 16:28:49,014-INFO:web_handler [172.21.0.1] "GET /modules/tabs/tabs.js HTTP/1.1" 200 -,
2022-05-25 16:28:49,054-INFO:web_handler [172.21.0.1] "GET /modules/pages/configform.js HTTP/1.1" 200 -,
2022-05-25 16:28:49,098-INFO:web_handler [172.21.0.1] "GET /config.json HTTP/1.1" 200 -,
2022-05-25 16:28:50,829-INFO:web_handler [172.21.0.1] "GET /api/configform?area=providers HTTP/1.1" 200 -,
2022-05-25 16:28:50,851-INFO:web_handler [172.21.0.1] "GET /modules/tabs/tabs.js HTTP/1.1" 200 -,
2022-05-25 16:28:50,871-INFO:web_handler [172.21.0.1] "GET /modules/pages/configform.js HTTP/1.1" 200 -,
2022-05-25 16:28:50,896-INFO:web_handler [172.21.0.1] "GET /config.json HTTP/1.1" 200 -,

Here is the log for NordLynx:


[s6-init] making user provided files available at /var/run/s6/etc...exited 0.

[s6-init] ensuring user provided files have correct perms...exited 0.

[fix-attrs.d] applying ownership & permissions fixes...

[fix-attrs.d] done.

[cont-init.d] executing container initialization scripts...

[cont-init.d] 00-firewall: executing... 

[2022-05-25T16:22:55+00:00] Firewall is up, everything has to go through the vpn

[cont-init.d] 00-firewall: exited 0.

[cont-init.d] 01-envfile: executing... 

[cont-init.d] 01-envfile: exited 0.

[cont-init.d] 01-migrations: executing... 

[migrations] started

[migrations] no migrations found

[cont-init.d] 01-migrations: exited 0.

[cont-init.d] 02-tamper-check: executing... 

[cont-init.d] 02-tamper-check: exited 0.

[cont-init.d] 10-adduser: executing... 

usermod: no changes

-------------------------------------

          _         ()

         | |  ___   _    __

         | | / __| | |  /  \

         | | \__ \ | | | () |

         |_| |___/ |_|  \__/

Brought to you by linuxserver.io

-------------------------------------

To support the app dev(s) visit:

Bubuntux: https://github.com/sponsors/bubuntux

WireGuard: https://www.wireguard.com/donations/

To support LSIO projects visit:

https://www.linuxserver.io/donate/

-------------------------------------

GID/UID

-------------------------------------

User uid:    911

User gid:    911

-------------------------------------

[cont-init.d] 10-adduser: exited 0.

[cont-init.d] 10-validate: executing... 

[cont-init.d] 10-validate: exited 0.

[cont-init.d] 20-inet: executing... 

[2022-05-25T16:22:56+00:00] Enabling connection to eth0 172.21.0.2/16

[2022-05-25T16:22:56+00:00] Enabling connection to secure interfaces

[cont-init.d] 20-inet: exited 0.

[cont-init.d] 20-inet6: executing... 

[2022-05-25T16:22:56+00:00] No interface network6 detected

[cont-init.d] 20-inet6: exited 0.

[cont-init.d] 30-route: executing... 

[2022-05-25T16:22:56+00:00] Enabling connection to network 10.0.0.0/8

[2022-05-25T16:22:56+00:00] Enabling connection to network 172.16.0.0/12

[2022-05-25T16:22:56+00:00] Enabling connection to network 192.168.0.0/16

[cont-init.d] 30-route: exited 0.

[cont-init.d] 30-route6: executing... 

[cont-init.d] 30-route6: exited 0.

[cont-init.d] 40-allowlist: executing... 

[cont-init.d] 40-allowlist: exited 0.

[cont-init.d] 90-custom-folders: executing... 

[cont-init.d] 90-custom-folders: exited 0.

[cont-init.d] 99-custom-files: executing... 

[custom-init] no custom files found exiting...

[cont-init.d] 99-custom-files: exited 0.

[cont-init.d] done.

[services.d] starting services

[2022-05-25T16:22:56+00:00] Finding the best server...

[services.d] done.

[2022-05-25T16:22:57+00:00] Using server: {

  "id": 975815,

  "created_at": "2020-12-23 12:27:43",

  "updated_at": "2022-05-25 16:20:26",

  "name": "United States #8386",

  "station": "89.187.183.138",

  "ipv6_station": "",

  "hostname": "us8386.nordvpn.com",
      
  "load": 8,

  "status": "online",
      
  "cpt": 14,

  "locations": [

    {

      "id": 17,

      "created_at": "2017-06-15 14:06:47",

      "updated_at": "2017-06-15 14:06:47",

      "latitude": 41.85,

      "longitude": -87.65,

      "country": {

        "id": 228,

        "name": "United States",

        "code": "US",

        "city": {

          "id": 8815352,

          "name": "Chicago",

          "latitude": 41.85,

          "longitude": -87.65,

          "dns_name": "chicago",

          "hub_score": 0
      

}

      }

    }

  ],

  "groups": [

    {

      "id": 11,

      "created_at": "2017-06-13 13:43:00",

      "updated_at": "2017-06-13 13:43:00",

      "title": "Standard VPN servers",

      "identifier": "legacy_standard",

      "type": {

        "id": 3,

        "created_at": "2017-06-13 13:40:17",

        "updated_at": "2017-06-13 13:40:23",

        "title": "Legacy category",

        "identifier": "legacy_group_category"

      }

    },

    {

      "id": 15,

      "created_at": "2017-06-13 13:43:38",

      "updated_at": "2017-06-13 13:43:38",

      "title": "P2P",

      "identifier": "legacy_p2p",

      "type": {

        "id": 3,

        "created_at": "2017-06-13 13:40:17",

        "updated_at": "2017-06-13 13:40:23",

        "title": "Legacy category",

        "identifier": "legacy_group_category"

      }

    },

    {

      "id": 21,

      "created_at": "2017-10-27 14:23:03",

      "updated_at": "2017-10-30 08:09:48",

      "title": "The Americas",

      "identifier": "the_americas",

      "type": {

        "id": 5,

        "created_at": "2017-10-27 14:16:30",

        "updated_at": "2017-10-27 14:16:30",

        "title": "Regions",

        "identifier": "regions"

      }

    }

  ],

  "specifications": [

    {

      "id": 8,

      "title": "Version",

      "identifier": "version",

      "values": [
      

{

          "id": 257,

          "value": "2.1.0"
      

}

      ]

    }

  ],

  "ips": [

    {

      "id": 340609,

      "created_at": "2021-06-16 10:39:21",

      "updated_at": "2021-06-16 10:39:21",

      "server_id": 975815,

      "ip_id": 169808,

      "type": "entry",

      "ip": {

        "id": 169808,

        "ip": "89.187.183.138",

        "version": 4

      }

    }

  ]

}

[2022-05-25T16:22:58+00:00] Connecting...

[#] 

[#] ip link add wg0 type wireguard

[#] wg setconf wg0 /dev/fd/63

[#] ip -4 address add 10.5.0.2/32 dev wg0

[#] ip link set mtu 1420 up dev wg0

[#] resolvconf -a wg0 -m 0 -x

[#] ip -4 route add 128.0.0.0/1 dev wg0

[#] ip -4 route add 0.0.0.0/1 dev wg0

[#] ip -4 route add $(wg | awk -F'[: ]' '/endpoint/ {print $5}') via $(ip route | awk '/default/ {print $3}')

[2022-05-25T16:22:59+00:00] Connected! \(ᵔᵕᵔ)/

When I run curl ifconfig.com on the nordlynx container and the cabernet container they both have the same IP 89.187.183.139 which is a NordVPN server IP.