haugene / docker-transmission-openvpn

Docker container running Transmission torrent client with WebUI over an OpenVPN tunnel
GNU General Public License v3.0
4.11k stars 1.21k forks source link

FastestVpn doesn't work properly, have to restart every couple of days #1896

Closed fleyd-1 closed 3 years ago

fleyd-1 commented 3 years ago

Hi everyone,

I have a Synology DS 720 and i'm running through Portainer following Stack:

version: "3.3"
services:
  transmission-openvpn:
    image: haugene/transmission-openvpn:latest
    container_name: transmission-openvpn-syno-updated
    restart: always
    cap_add:
      - NET_ADMIN # This runs the container with raised privileges
    devices:
      - /dev/net/tun # This creates a tunnel for Transmission
    volumes:
      - /volume1/Media/Downloads/:/data # Change this to your Torrent path
      - /etc/localtime:/etc/localtime:ro
      - /volume1/Media/stacks/transmission_fastestvpn:/config   
    environment:
      - OPENVPN_PROVIDER=FASTESTVPN # Or other compatible OpenVPN provider
      - OPENVPN_CONFIG=Netherlands2-UDP #Spain-UDP # Or other region that supports port forwarding. Check with your VPN provider
      - OPENVPN_USERNAME=mesquita.luis@gmail.com # VPN provider username
      - OPENVPN_PASSWORD=**** # VPN provider password
      - LOCAL_NETWORK=192.168.1.1/24 # If your server's IP address is 192.168.1.x, then use this. If your server's IP address is 192.168.0.x, then change to 192.168.0.0/24
      - OPENVPN_OPTS=--inactive 3600 --ping 10 --ping-exit 60 # Leave this as is
      - PUID=1024 #Change to your PUID
      - PGID=100 #Change to your PGID
    ports:
      - 9091:9091 #GUI Port
      - 8888:8888 #Transmission Port
#    dns:
#      - 8.8.8.8 #Use whatever DNS provider you want. This is Google.
#      - 8.8.4.4 #Use whatever DNS provider you want. This is Google.

#Luxembourg-TCP.ovpn,
#Luxembourg-UDP.ovpn,
#Netherlands1-TCP.ovpn,
#Netherlands1-UDP.ovpn,
#Netherlands2-TCP.ovpn,
#Netherlands2-UDP.ovpn,
#Netherlands3-TCP.ovpn,
#Netherlands3-UDP.ovpn,
#Netherlands4-TCP.ovpn,
#Netherlands4-UDP.ovpn,
#Norway-TCP.ovpn,
#Norway-UDP.ovpn,
#Poland-TCP.ovpn,
#Poland-UDP.ovpn,
#Romania-TCP.ovpn,
#Romania-UDP.ovpn,
#Russia-TCP.ovpn,
#Russia-UDP.ovpn,
#Serbia-TCP.ovpn,
#Serbia-UDP.ovpn,
#Singapore-TCP.ovpn,
#Singapore-UDP.ovpn,
#South.Korea-TCP.ovpn,
#South.Korea-UDP.ovpn,
#Spain-TCP.ovpn,
#Spain-UDP.ovpn,
#Sweden-TCP.ovpn,
#Sweden-UDP.ovpn,
#Switzerland-TCP.ovpn,
#Switzerland-UDP.ovpn,

Every couple of days i get some errors, but if i change the country server, usually starts working again. However the most recent server i have setup is Netherlands2-UDP and i get below error:

2021-08-05 19:36:52 TCP/UDP: Preserving recently used remote address: [AF_INET]89.46.223.251:4443

2021-08-05 19:36:52 UDP link local: (not bound)

2021-08-05 19:36:52 UDP link remote: [AF_INET]89.46.223.251:4443

2021-08-05 19:36:52 WARNING: 'link-mtu' is used inconsistently, local='link-mtu 1602', remote='link-mtu 1570'

2021-08-05 19:36:52 WARNING: 'tun-mtu' is used inconsistently, local='tun-mtu 1532', remote='tun-mtu 1500'

2021-08-05 19:36:52 [FastestVPN] Peer Connection Initiated with [AF_INET]89.46.223.251:4443

2021-08-05 19:36:53 AUTH: Received control message: AUTH_FAILED

2021-08-05 19:36:53 SIGTERM[soft,auth-failure] received, process exiting

Starting container with revision: 73ec516cc246972289c7b96ffa88c81e037fe364

Creating TUN device /dev/net/tun

mknod: /dev/net/tun: File exists

Using OpenVPN provider: FASTESTVPN

Starting OpenVPN using config Netherlands2-UDP.ovpn

Setting OpenVPN credentials...

adding route to local network 192.168.1.1/24 via 172.25.0.1 dev eth0

RTNETLINK answers: Invalid argument

2021-08-05 19:38:00 WARNING: Compression for receiving enabled. Compression has been used in the past to break encryption. Sent packets are not compressed unless "allow-compression yes" is also set.

2021-08-05 19:38:00 DEPRECATED OPTION: --cipher set to 'AES-256-CBC' but missing in --data-ciphers (AES-256-GCM:AES-128-GCM). Future OpenVPN version will ignore --cipher for cipher negotiations. Add 'AES-256-CBC' to --data-ciphers or change --cipher 'AES-256-CBC' to --data-ciphers-fallback 'AES-256-CBC' to silence this warning.

2021-08-05 19:38:00 OpenVPN 2.5.2 x86_64-alpine-linux-musl [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [MH/PKTINFO] [AEAD] built on May  4 2021

2021-08-05 19:38:00 library versions: OpenSSL 1.1.1k  25 Mar 2021, LZO 2.10

2021-08-05 19:38:00 WARNING: --ping should normally be used with --ping-restart or --ping-exit

2021-08-05 19:38:00 WARNING: No server certificate verification method has been enabled.  See http://openvpn.net/howto.html#mitm for more info.

2021-08-05 19:38:00 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts

2021-08-05 19:38:00 TCP/UDP: Preserving recently used remote address: [AF_INET]89.46.223.251:4443

2021-08-05 19:38:00 UDP link local: (not bound)

2021-08-05 19:38:00 UDP link remote: [AF_INET]89.46.223.251:4443

2021-08-05 19:38:01 WARNING: 'link-mtu' is used inconsistently, local='link-mtu 1602', remote='link-mtu 1570'

2021-08-05 19:38:01 WARNING: 'tun-mtu' is used inconsistently, local='tun-mtu 1532', remote='tun-mtu 1500'

2021-08-05 19:38:01 [FastestVPN] Peer Connection Initiated with [AF_INET]89.46.223.251:4443

2021-08-05 19:38:02 AUTH: Received control message: AUTH_FAILED

2021-08-05 19:38:02 SIGTERM[soft,auth-failure] received, process exiting

Starting container with revision: 73ec516cc246972289c7b96ffa88c81e037fe364

Creating TUN device /dev/net/tun

mknod: /dev/net/tun: File exists

Using OpenVPN provider: FASTESTVPN

Starting OpenVPN using config Netherlands2-UDP.ovpn

Setting OpenVPN credentials...

adding route to local network 192.168.1.1/24 via 172.25.0.1 dev eth0

RTNETLINK answers: Invalid argument

2021-08-05 19:39:09 WARNING: Compression for receiving enabled. Compression has been used in the past to break encryption. Sent packets are not compressed unless "allow-compression yes" is also set.

2021-08-05 19:39:09 DEPRECATED OPTION: --cipher set to 'AES-256-CBC' but missing in --data-ciphers (AES-256-GCM:AES-128-GCM). Future OpenVPN version will ignore --cipher for cipher negotiations. Add 'AES-256-CBC' to --data-ciphers or change --cipher 'AES-256-CBC' to --data-ciphers-fallback 'AES-256-CBC' to silence this warning.

2021-08-05 19:39:09 OpenVPN 2.5.2 x86_64-alpine-linux-musl [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [MH/PKTINFO] [AEAD] built on May  4 2021

2021-08-05 19:39:09 library versions: OpenSSL 1.1.1k  25 Mar 2021, LZO 2.10

2021-08-05 19:39:09 WARNING: --ping should normally be used with --ping-restart or --ping-exit

2021-08-05 19:39:09 WARNING: No server certificate verification method has been enabled.  See http://openvpn.net/howto.html#mitm for more info.

2021-08-05 19:39:09 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts

2021-08-05 19:39:09 TCP/UDP: Preserving recently used remote address: [AF_INET]89.46.223.251:4443

2021-08-05 19:39:09 UDP link local: (not bound)

2021-08-05 19:39:09 UDP link remote: [AF_INET]89.46.223.251:4443

2021-08-05 19:39:09 WARNING: 'link-mtu' is used inconsistently, local='link-mtu 1602', remote='link-mtu 1570'

2021-08-05 19:39:09 WARNING: 'tun-mtu' is used inconsistently, local='tun-mtu 1532', remote='tun-mtu 1500'

2021-08-05 19:39:09 [FastestVPN] Peer Connection Initiated with [AF_INET]89.46.223.251:4443

2021-08-05 19:39:10 AUTH: Received control message: AUTH_FAILED

I'm not a expert user, can someone help me understand what i'm doing wrong pls?

Thanks

github-actions[bot] commented 3 years ago

@fleyd-1: hello! :wave:

This issue is being automatically closed because it does not follow the issue template. If you edit and follow the template properly by filling it in completely the issue will be re-opened