Hey,
I hope all are doing well. I have a quick question regarding OpenVPN setup. So, I followed this script to install and setup OpenVPN 2.5.1 for Ubuntu 21.04.
https://github.com/Nyr/openvpn-install
The install ran smoothly and even created a client file. Here are the config files for the server and said client.
local 10.36.1.216
port 1194
proto udp
dev tun
ca ca.crt
cert server.crt
key server.key
dh dh.pem
auth SHA512
tls-crypt tc.key
topology subnet
server 10.8.0.0 255.255.255.0
server-ipv6 (ipv6 address)/64
push "redirect-gateway def1 ipv6 bypass-dhcp"
ifconfig-pool-persist ipp.txt
push "dhcp-option DNS 10.36.1.1"
keepalive 10 120
cipher AES-256-CBC
user nobody
group nogroup
persist-key
persist-tun
verb 3
crl-verify crl.pem
explicit-exit-notify
client
dev tun
proto udp
remote (router's public IP address) 1194
resolv-retry infinite
nobind
persist-key
persist-tun
remote-cert-tls server
auth SHA512
cipher AES-256-CBC
ignore-unknown-option block-outside-dns
block-outside-dns
verb 3
When I try connecting to the OpenVPN server from my phone, it gives me a "Server poll timeout". Some info that might help regarding my network is that there's two routers. One is the provider's, which basically serves just as a bridge for an OpenWRT router I have set up behind it. I have
port forwarding enabled on the OpenWRT router for 10.36.1.216, which is the OpenVPN server. Here's some additional output regarding OpenVPN.
#sudo systemctl status openvpn
● openvpn.service - OpenVPN service
Loaded: loaded (/lib/systemd/system/openvpn.service; enabled; vendor preset: enabled)
Active: active (exited) since Mon 2021-08-16 14:55:59 EDT; 6s ago
Process: 70595 ExecStart=/bin/true (code=exited, status=0/SUCCESS)
Main PID: 70595 (code=exited, status=0/SUCCESS)
Aug 16 14:55:59 jarjarbinks systemd[1]: Starting OpenVPN service...
Aug 16 14:55:59 jarjarbinks systemd[1]: Finished OpenVPN service.
#netstat -anp | grep 1194
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 61194/sshd: /usr/sb
tcp6 0 0 :::22 :::* LISTEN 61194/sshd: /usr/sb
udp 0 0 0.0.0.0:1194 0.0.0.0:* 58404/openvpn
unix 3 [ ] STREAM CONNECTED 2028940 61194/sshd: /usr/sb
Regarding the last output, I do not understand why the IP addresses are zeroed out nor that it says 61194 instead of 1194.
To finish off, are there any mistakes regarding the config I should change? Any insight helps. Also, if more files are needed or command outputs, feel free to ask. Thanks all and I hope you guys have a great day.