Jump to content

danofun

Members
  • Posts

    37
  • Joined

  • Last visited

Posts posted by danofun

  1. I've had some success with allowing local access to Wireguard and it's attached containers. Im running this via docker-compose but it should work in unRAID's GUI as well. Here's what I've added.

    Wireguard Container:

    - Add environmental variable LAN_NETWORK and populate with your LAN (i.e. 192.168.1.0/24)

    - in the wg0.conf config file, add the following to the PostUp and PostDown lines

    PostUp=ip route add $LAN_NETWORK via $(ip route |awk '/default/ {print $3}') dev eth0
    PostDown=ip route del $LAN_NETWORK via $(ip route |awk '/default/ {print $3}') dev eth0

    You can then designate specific containers to utilize the Wireguard connection. In the container we want to use with Wireguard:

    - remove all ports as we will now be connecting to this container via the Wireguard container.

    - In docker-compose we'll add a network_mode: service:wireguard line. As for unRAID's GUI, there are a couple of discussions here and here regarding the container network.

    - your attached container needs to start after Wireguard so add the following

      depends_on:

        - wireguard

     

    Here is a sample docker-compose.yml showing NZBget routing through Wireguard:

    version: '3.6'
    services:
    # Wireguad
      wireguard:
        image: linuxserver/wireguard
        container_name: wireguard
        restart: always
        ports:
          - 51820:51820/udp
          # nzbget
          - 6789:6789
        volumes:
          - /mnt/user/appdata/wireguard:/config
          - /lib/modules:/lib/modules
        environment:
          LAN_NETWORK: 192.168.1.0/24
          PGID: 100
          PUID: 99
          TZ: America/New_York
        cap_add:
          - NET_ADMIN
          - SYS_MODULE
        sysctls:
          - net.ipv4.conf.all.src_valid_mark=1
          - net.ipv6.conf.all.disable_ipv6=0
    
    # NzbGET  Usenet (NZB) Downloader
      nzbget:
        image: linuxserver/nzbget
        container_name: nzbget
        restart: always
        network_mode: service:wireguard
        volumes:
          - /mnt/user/appdata/nzbget:/config
          - /mnt/user/media:/media
        environment:
          PGID: ${PGID}
          PUID: ${PUID}
          TZ: ${TZ}
        depends_on:
          - wireguard

    One item of note, I was unable the make the kill switch work. Any help would be greatly appreciated.

    root@8de63d4b329d:/# iptables -I OUTPUT ! -o %i -m mark ! --mark $(wg show %i fwmark) -m addrtype ! --dst-type LOCAL -j REJECT && ip6tables -I OUTPUT ! -o %i -m mark ! --mark $(wg show %i fwmark) -m addrtype ! --dst-type LOCAL -j REJECT
    Unable to access interface: No such device
    iptables v1.6.1: mark: bad mark value for option "--mark", or out of range.
    
    Try `iptables -h' or 'iptables --help' for more information.
    root@8de63d4b329d:/# 

     

  2. On 12/3/2018 at 7:14 AM, live4ever said:

     

    Any updates to this? Still getting:

    
    docker exec -it -u abc tvheadend /usr/bin/tv_grab_zz_sdjson_sqlite --configure
    Can't locate LWP/UserAgent/Determined.pm in @INC (you may need to install the LWP::UserAgent::Determined module) (@INC contains: /usr/local/lib/perl5/site_perl /usr/local/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl) at /usr/bin/tv_grab_zz_sdjson_sqlite line 4927.
    BEGIN failed--compilation aborted at /usr/bin/tv_grab_zz_sdjson_sqlite line 4927.

    Using the newest update from the weekend (4.2.7-34~g036b9cbab).

    Thanks again.

     

    On 12/4/2018 at 5:20 AM, saarg said:

     

    Yes it's missing the perl module. I'll add it when I get some time. Not sure when though. 

    tv_grab_zz_sdjson_sqlite is still failing and can be fixed by including perl-lwp-useragent-determined in the build.  I've submitted pull request #117 to solve this issue.

  3. Linuxserver.io team, thank you for so diligently maintaining and improving your docker containers!  Great stuff!

     

    I've written a nzb post-processing script to trigger your beets container after a successful music download.  With beets configured to notify Plex I finally have fully automated music downloads!  The script triggers a beets import via ssh command which is sent to a beets docker container's host system. The ssh command can be authenticated via password or ssh key with an optional paraphrase.  Any chance of adding openssh-client to your nzbget container?

     

    https://github.com/danofun/beets-nzbget-script

     

  4. Just ran into this same problem... looks like unrar isn't installed in this latest build.  Temporary fix is to install it yourself.

     

    sudo docker exec -i -t 665b4a1e17b6 /bin/bash   #replace 665b4a1e17b6 with your own docker ID for NZBGet
    sudo apt-get update
    sudo apt-get install unrar

    I am getting the following error on all downloads after update,

     

    Unrar: Could not start unrar: No such file or directory

     

     

    Ideas?

    Same error here since today's nzbget docker container update.

     

    EDIT:  It appears unrar and 7za are in the /app directory. An alternate temporary solution is to change Settings -> unpack -> UnrarCmd to /app/unrar and SevenZipCmd to /app/7za

×
×
  • Create New...