I am running an OpenVPN server on Google Cloud. I've run servers before, on everything from a W7 PC to a Linux craptop to AWS and now GCloud. The problem I'm running into this time is that I cannot route all traffic through the VPN without partially losing connection to the Internet. What do I mean by partially? Well, when I connect to the VPN (client is a W10 PC FYI), I can't connect to any webpages or ping 8.8.8.8. Twitch chat still works, however. I assume the reason for this is that DNS is not working properly. I'll post my client and server configs, along with my results of tracert -d 8.8.8.8 when I am connected to the VPN. Feel free to ask for more info or clarification; I'm pretty sure I forgot something here.
Just before submitting this, I remember that I did forget to add something. On the server, I have enabled the NAT hack.
client
dev tun
proto tcp
remote my-server-ip 443
resolv-retry infinite
nobind
persist-key
persist-tun
remote-cert-tls server
;redirect-gateway def1
;dhcp-option DNS 8.8.8.8
auth SHA512
cipher AES-256-CBC
comp-lzo
key-direction 1
verb 3
<ca>
-----BEGIN CERTIFICATE-----
...
-----END CERTIFICATE-----
</ca>
<cert>
...
...
</cert>
<key>
-----BEGIN PRIVATE KEY-----
...
-----END PRIVATE KEY-----
</key>
<tls-auth>
#
# 2048 bit OpenVPN static key
#
-----BEGIN OpenVPN Static key V1-----
...
-----END OpenVPN Static key V1-----
</tls-auth>
port 443
proto tcp
dev tun
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 8.8.4.4"
push "dhcp-option DNS 8.8.8.8"
;push "remote-gateway 10.8.0.1"
keepalive 10 120
cipher AES-256-CBC
comp-lzo
user nobody
group nogroup
persist-key
persist-tun
status openvpn-status.log
verb 3
crl-verify crl.pem
C:\Users\Lukus>tracert -d 8.8.8.8
Tracing route to 8.8.8.8 over a maximum of 30 hops
1 27 ms 25 ms 25 ms 10.8.0.1
2 * * * Request timed out.
3 * * * Request timed out.
4 * * * Request timed out.
5 * * * Request timed out.
6 * * * Request timed out.
7 ^C
-Lukus