Nyr/openvpn-install

Can't connect after a clean install on AWS Ubuntu22

Offirmo opened this issue · 1 comments

Hi, thanks for this great tool!

I'm about to travel to a "restricted internet" country and I'm trying to self-host OpenVPN, using this great "openvpn-install" script

  • clean Ubuntu 22 on AWS (arm), updated (apt update/upgrade) ✅
  • the instance has ssh/http/https ports accessible ✅
  • 1st question: I properly gave the instance hostname
  • port = 443 as suggested here
  • for DNS, I selected "OpenDNS" and not "current system resolver" as suggested [here] (#629 (comment)) ✅
  • systemctl status openvpn-server@server.service shows "active (running)" ✅ (cf. here)
  • I can ping google.com from inside the instance ✅

However after moving the *.ovpn into the OpenVpn app on my iPhone and trying to connect, I get "connection timeout"

Any idea what I'm missing?

Head of the .ovpn file:

client
 dev tun
 proto udp
 remote xyz.compute.amazonaws.com 443
 resolv-retry infinite
 nobind
 persist-key
 persist-tun
 remote-cert-tls server
 auth SHA512
 ignore-unknown-option block-outside-dns
 verb 3

Thanks a lot!

It works once switching to protocol = TCP

I guess AWS instance default firewall is not allowing UDP by default.

Closing this.