binhex / arch-qbittorrentvpn

Docker build script for Arch Linux base with qBittorrent, Privoxy and OpenVPN
GNU General Public License v3.0
397 stars 46 forks source link

Wireguard Failed to come up #207

Open rickeames opened 7 months ago

rickeames commented 7 months ago

I have installed the blackvoid pkg for wireguard and it's running on the Synology 720+. When I changed my container from running PIA via OpenVPN to wireguard, I get the dreaded:

2023-11-15 01:55:47,625 DEBG 'start-script' stderr output: iptables-restore v1.8.9 (legacy): iptables-restore: unable to initialize table 'raw' Error occurred at line: 1 Try `iptables-restore -h' or 'iptables-restore --help' for more information.

2023-11-15 01:55:47,629 DEBG 'start-script' stderr output: [#] ip -4 rule delete table 51820

2023-11-15 01:55:47,634 DEBG 'start-script' stderr output: [#] ip -4 rule delete table main suppress_prefixlength 0

2023-11-15 01:55:47,640 DEBG 'start-script' stderr output: [#] ip link delete dev wg0

2023-11-15 01:55:47,675 DEBG 'start-script' stdout output: [warn] WireGuard interface failed to come 'up', exit code is '1'

I am not sure where to go from here on this. I thought installing wireguard would be the missing link, but it doesn't seem to have helped. My wg0.conf:

[Interface] Address = 10.10.249.149 PrivateKey = [long key] PostUp = '/root/wireguardup.sh' PostDown = '/root/wireguarddown.sh'

[Peer] PublicKey = [long key] AllowedIPs = 0.0.0.0/0 Endpoint = nl-amsterdam.privacy.network:1337

My Compose file:

version: '3.3'
services:
    arch-qbittorrentvpn:
        privileged: true
        ports:
            - '54436:54436'
            - '54436:54436/udp'
            - '6790:6790'
            - '8118:8118'
        container_name: qbitwireguard
        network_mode: bridge
        volumes:
            - '/volume1/media/qbit:/volume1/media/qbit'
            - '/volume2/docker/configs/qbit-wireguard:/config'
            - '/etc/localtime:/etc/localtime:ro'
            - '/volume2/data/incomplete:/volume2/data/incomplete'
        environment:
            - VPN_ENABLED=yes
            - VPN_PROV=pia
            - VPN_USER=[username]
            - VPN_PASS=[password]
            - VPN_CLIENT=wireguard
            - STRICT_PORT_FORWARD=yes
            - ENABLE_PRIVOXY=no
            - LAN_NETWORK=192.168.1.0/24 
            - NAME_SERVERS=94.140.15.15 
            - DEBUG=true
            - WEBUI_PORT=6790
            - UMASK=001
            - PUID=1026
            - PGID=65537
            - TZ=Americas/Los_Angeles
        sysctls:
            - net.ipv4.conf.all.src_valid_mark=1
            - net.ipv6.conf.all.disable_ipv6=1
        restart: "unless-stopped"
        image: binhex/arch-qbittorrentvpn  
RichBrew commented 7 months ago

same issue on QNAP QUTS Hero 5.1.2

binhex commented 7 months ago

you are missing iptables 'raw' table from your kernel.

zjpleau commented 5 months ago

you are missing iptables 'raw' table from your kernel.

Running into this too on my QNAP QUTS Hero 5.1.4.