Help with Digital Ocean and OpenVPN + PiHole

Need help configuring your VPN? Just post here and you'll get that help.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
Cake12356
OpenVpn Newbie
Posts: 4
Joined: Thu Sep 05, 2019 11:21 pm

Help with Digital Ocean and OpenVPN + PiHole

Post by Cake12356 » Fri Sep 06, 2019 12:01 am

Hello,

I am trying to setup OpenVPN and PiHole on a Digital Ocean droplet. I cannot connect to the VPN at all. I am using OpenVPN Community version 2.4.0 on Debian. Here is my config file.
Server Config
port 1194
proto udp
dev tun0
sndbuf 0
rcvbuf 0
ca ca.crt
cert server.crt
key server.key
dh dh.pem
auth SHA512
tls-auth ta.key 0
topology subnet
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 1.1.1.1"
#push "dhcp-option DNS 1.0.0.1"
keepalive 10 120
cipher AES-256-CBC
user nobody
group nogroup
persist-key
persist-tun
status openvpn-status.log
verb 3
crl-verify crl.pem


Here's my server Log
[olog]
● openvpn.service - OpenVPN service
Loaded: loaded (/lib/systemd/system/openvpn.service; enabled; vendor preset:
Active: active (exited) since Thu 2019-09-05 23:43:33 UTC; 9min ago
Process: 879 ExecStart=/bin/true (code=exited, status=0/SUCCESS)
Main PID: 879 (code=exited, status=0/SUCCESS)
Tasks: 0 (limit: 4915)
CGroup: /system.slice/openvpn.service
[/olog]

Here's my Client Log
[olog]
Thu Sep 05 17:57:46 2019 OpenVPN 2.4.7 x86_64-w64-mingw32 [SSL (OpenSSL)] [LZO] [LZ4] [PKCS11] [AEAD] built on Apr 25 2019
Thu Sep 05 17:57:46 2019 Windows version 6.2 (Windows 8 or greater) 64bit
Thu Sep 05 17:57:46 2019 library versions: OpenSSL 1.1.0j 20 Nov 2018, LZO 2.10
Thu Sep 05 17:57:46 2019 MANAGEMENT: TCP Socket listening on [AF_INET]127.0.0.1:25341
Thu Sep 05 17:57:46 2019 Need hold release from management interface, waiting...
Thu Sep 05 17:57:46 2019 MANAGEMENT: Client connected from [AF_INET]127.0.0.1:25341
Thu Sep 05 17:57:46 2019 MANAGEMENT: CMD 'state on'
Thu Sep 05 17:57:46 2019 MANAGEMENT: CMD 'log all on'
Thu Sep 05 17:57:46 2019 MANAGEMENT: CMD 'echo all on'
Thu Sep 05 17:57:46 2019 MANAGEMENT: CMD 'bytecount 5'
Thu Sep 05 17:57:46 2019 MANAGEMENT: CMD 'hold off'
Thu Sep 05 17:57:46 2019 MANAGEMENT: CMD 'hold release'
Thu Sep 05 17:57:46 2019 Outgoing Control Channel Authentication: Using 512 bit message hash 'SHA512' for HMAC authentication
Thu Sep 05 17:57:46 2019 Incoming Control Channel Authentication: Using 512 bit message hash 'SHA512' for HMAC authentication
Thu Sep 05 17:57:46 2019 TCP/UDP: Preserving recently used remote address: [AF_INET]<IP>
Thu Sep 05 17:57:46 2019 Socket Buffers: R=[65536->65536] S=[65536->65536]
Thu Sep 05 17:57:46 2019 UDP link local: (not bound)
Thu Sep 05 17:57:46 2019 UDP link remote: [AF_INET]<IP>
Thu Sep 05 17:57:46 2019 MANAGEMENT: >STATE:1567727866,WAIT,,,,,,
[/olog]

Client Config
Client Config

client
dev tun
proto udp
sndbuf 0
rcvbuf 0
remote <ip>
resolv-retry infinite
nobind
persist-key
persist-tun
remote-cert-tls server
auth SHA512
cipher AES-256-CBC
setenv opt block-outside-dns
key-direction 1
verb 3
[/olog]

Can I have some help please?

Thanks,
Cake12356

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: Help with Digital Ocean and OpenVPN + PiHole

Post by TinCanTech » Fri Sep 06, 2019 1:16 pm

Does that look like a server log to you ?

Post Reply