Hello,
I've installed Ubuntu 20.04 on my home PC and installed/configured OpenVPN on it. Installation went successfully, and I can connect from my pc or laptop to my OpenVPN, but there is no internet connection. I see that traffic is going through, and I can ping my Ubuntu server (192.168.1.236), but I can't use internet for some reason...
Installation process:
I followed this installation guide -
https://losst.ru/nastrojka-openvpn-v-ubuntu. It's written in Russian, but you may see which commands I used... So, if everything sum up, I've installed OpenVPN from this page -
https://openvpn.net/community-downloads/ (version - 2.5.5). Next, I've installed easy-rsa and configured server/client sides by getting required certificates and keys. Next, I enabled ip_forwarding parameter with this command:
sysctl -w net.ipv4.ip_forward=1
After I configured firewall with these 3 commands:
sudo iptables -I FORWARD -i tun0 -o ens33 -j ACCEPT
sudo iptables -I FORWARD -i ens33 -o tun0 -j ACCEPT
sudo iptables -t nat -A POSTROUTING -o ens33 -j MASQUERADE
Then I added two services - openvpn.service and openvpn@.service
https://unix.stackexchange.com/questions/406520/self-compiled-openvpn-wont-start-from-systemd. The reason I did this is that there was any service that I could start, so I had to make it manually. 🙁 After all this, I could transfer user .ovpn file to my PC or laptop and join the server from it:

But as I already said, I can't access internet.
This is my server.conf and user.conf files:
port 1194
proto udp
dev tun
ca ca.crt
cert server.crt
key server.key # This file should be kept secret
dh dh.pem
topology subnet
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist /var/log/openvpn/ipp.txt
push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
keepalive 10 120
tls-auth ta.key 0 # This file is secret
cipher AES-256-CBC
persist-key
persist-tun
status /var/log/openvpn/openvpn-status.log
verb 3
explicit-exit-notify 1
client
dev tun
proto udp
remote 1.1.1.1 1194
resolv-retry infinite
nobind
persist-key
persist-tun
remote-cert-tls server
key-direction 1
cipher AES-256-CBC
verb 3
<ca>
</ca>
<cert>
</cert>
<key>
</key>
<tls-auth>
</tls-auth>