Thanks for your continuous help.
I am still having problems setting everything up.
What I know did was creating an ovpn profile on my PI which I know use on my vServer.
I also installed openvpn directly on the vServer using the same script and created a profile for my mobile phone.
The idea is (when I understand correctly) to connect with openvpn from the vServer to my PI.
And use the profile from the vServer to connect through it into my network.
The good news is, my mobile phone successfully connects to the openvpn on my vServer.
But from there I cannot connect to any local IP address in my network. (do IPv4 addresses even work here
or do I have to use IPv6?).
Also when I launch "openvpn --config netcup.ovpn 2>&1 | tee openvpn.log" on the vSercer to connect to my PI I lose connection to my vServer and can only reboot it with my control panel.
This is the openvpn.log file.
Code: Select all
Tue Oct 29 19:24:33 2019 OpenVPN 2.4.4 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on May 14 2019
Tue Oct 29 19:24:33 2019 library versions: OpenSSL 1.1.1 11 Sep 2018, LZO 2.08
Tue Oct 29 19:24:33 2019 Outgoing Control Channel Encryption: Cipher 'AES-256-CTR' initialized with 256 bit key
Tue Oct 29 19:24:33 2019 Outgoing Control Channel Encryption: Using 256 bit message hash 'SHA256' for HMAC authentication
Tue Oct 29 19:24:33 2019 Incoming Control Channel Encryption: Cipher 'AES-256-CTR' initialized with 256 bit key
Tue Oct 29 19:24:33 2019 Incoming Control Channel Encryption: Using 256 bit message hash 'SHA256' for HMAC authentication
Tue Oct 29 19:24:33 2019 TCP/UDP: Preserving recently used remote address: [AF_INET6]xxxx:xxxx:x:xxx:xxxx:xxxx:xxxx:xxxx
Tue Oct 29 19:24:33 2019 Socket Buffers: R=[212992->212992] S=[212992->212992]
Tue Oct 29 19:24:33 2019 UDP link local: (not bound)
Tue Oct 29 19:24:33 2019 UDP link remote: [AF_INET6]xxxx:xxxx:x:xxx:xxxx:xxxx:xxxx:xxxx
Tue Oct 29 19:24:33 2019 TLS: Initial packet from [AF_INET6]xxxx:xxxx:x:xxx:xxxx:xxxx:xxxx:xxxx, sid=f23ac3c4 e76a87e1
Tue Oct 29 19:24:34 2019 VERIFY OK: depth=1, CN=ChangeMe
Tue Oct 29 19:24:34 2019 VERIFY KU OK
Tue Oct 29 19:24:34 2019 Validating certificate extended key usage
Tue Oct 29 19:24:34 2019 ++ Certificate has EKU (str) TLS Web Server Authentication, expects TLS Web Server Authentication
Tue Oct 29 19:24:34 2019 VERIFY EKU OK
Tue Oct 29 19:24:34 2019 VERIFY X509NAME OK: CN=OpenVPN_d11d0c2c-7520-457c-824d-c9c1fe8b9ebf
Tue Oct 29 19:24:34 2019 VERIFY OK: depth=0, CN=OpenVPN_d11d0c2c-7520-457c-824d-c9c1fe8b9ebf
Tue Oct 29 19:24:34 2019 Control Channel: TLSv1.3, cipher TLSv1.3 TLS_AES_256_GCM_SHA384, 256 bit EC, curve: prime256v1
Tue Oct 29 19:24:34 2019 [OpenVPN_d11d0c2c-7520-457c-824d-c9c1fe8b9ebf] Peer Connection Initiated with [AF_INET6]xxxx:xxxx:x:xxx:xxxx:xxxx:xxxx:xxxx
Tue Oct 29 19:24:35 2019 SENT CONTROL [OpenVPN_d11d0c2c-7520-457c-824d-c9c1fe8b9ebf]: 'PUSH_REQUEST' (status=1)
Tue Oct 29 19:24:35 2019 PUSH: Received control message: 'PUSH_REPLY,dhcp-option DNS 8.8.8.8,dhcp-option DNS 8.8.4.4,block-outside-dns,redirect-gateway def1,route-gateway 10.8.0.1,topology subnet,ping 1800,ping-restart 3600,ifconfig 10.8.0.2 255.255.255.0,peer-id 1,cipher AES-256-GCM'
Tue Oct 29 19:24:35 2019 Options error: Unrecognized option or missing or extra parameter(s) in [PUSH-OPTIONS]:3: block-outside-dns (2.4.4)
Tue Oct 29 19:24:35 2019 OPTIONS IMPORT: timers and/or timeouts modified
Tue Oct 29 19:24:35 2019 OPTIONS IMPORT: --ifconfig/up options modified
Tue Oct 29 19:24:35 2019 OPTIONS IMPORT: route options modified
Tue Oct 29 19:24:35 2019 OPTIONS IMPORT: route-related options modified
Tue Oct 29 19:24:35 2019 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified
Tue Oct 29 19:24:35 2019 OPTIONS IMPORT: peer-id set
Tue Oct 29 19:24:35 2019 OPTIONS IMPORT: adjusting link_mtu to 1624
Tue Oct 29 19:24:35 2019 OPTIONS IMPORT: data channel crypto options modified
Tue Oct 29 19:24:35 2019 Data Channel: using negotiated cipher 'AES-256-GCM'
Tue Oct 29 19:24:35 2019 Outgoing Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key
Tue Oct 29 19:24:35 2019 Incoming Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key
Tue Oct 29 19:24:35 2019 ROUTE_GATEWAY xx.xxx.xx.1/255.255.252.0 IFACE=eth0 HWADDR=e6:cc:34:6b:57:80
Tue Oct 29 19:24:35 2019 TUN/TAP device tun1 opened
Tue Oct 29 19:24:35 2019 TUN/TAP TX queue length set to 100
Tue Oct 29 19:24:35 2019 do_ifconfig, tt->did_ifconfig_ipv6_setup=0
Tue Oct 29 19:24:35 2019 /sbin/ip link set dev tun1 up mtu 1500
Tue Oct 29 19:24:35 2019 /sbin/ip addr add dev tun1 10.8.0.2/24 broadcast 10.8.0.255
Tue Oct 29 19:24:35 2019 ROUTE remote_host protocol differs from tunneled
Tue Oct 29 19:24:35 2019 /sbin/ip route add 0.0.0.0/1 via 10.8.0.1
Tue Oct 29 19:24:35 2019 /sbin/ip route add 128.0.0.0/1 via 10.8.0.1
Tue Oct 29 19:24:35 2019 Initialization Sequence Completed