I installed Ubuntu Server 24.04 to support an OpenVPN server for my users, I connect to the server, I can even ping internal and external IPs on the network, but accessing resources like SSH, or even intranet sites doesn’t work.
I had to downgrade Ubuntu Server to version 22.04.4 and it worked without having to do anything different.
Does anyone have any idea what has changed in this new version that could have impacted this? And how to solve it?
I tried to create rules in iptables to release traffic to my tun0 interface so that it would be completely transparent for the client connecting to the VPN to access websites or internal IPs, as it was in version 22.04:
sudo iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o ens18 -j MASQUERADE sudo iptables -A FORWARD -i tun0 -o ens18 -j ACCEPT sudo iptables -A FORWARD -i ens18 -o tun0 -m state --state RELATED,ESTABLISHED -j ACCEPT
I added this configuration to the server.conf of my openvpn server:
push "redirect-gateway def1 bypass-dhcp" push "dhcp-option DNS 8.8.8.8" push "dhcp-option DNS 1.1.1.1"
But none of that worked