Connected to VPN but no internet #950
Replies: 8 comments 5 replies
-
Ok so it was killing me so I tried on another one of my VPS which runs on CentOS7, instead of the Debian cited previously and it works out of the box. The non working beast:
|
Beta Was this translation helpful? Give feedback.
-
+1 i use Alma Linux |
Beta Was this translation helpful? Give feedback.
-
I have the same problem. I can connect the client to the VPN Server but no internet connection through the tunnel. I'm running Debian 10: If I reinstall a Debian 9 image, the VPN Server delivers a working internet connection to the client. |
Beta Was this translation helpful? Give feedback.
-
Have the exact same problem with Debian 10 and 11, despite it's working on debian 9. I have ufw along openvpn, but even after I disabled ufw and I ran a |
Beta Was this translation helpful? Give feedback.
-
I can confirm that I have the same issue on Debian 11. I am using default settings and allowed port 1194 using ufw but still no internet after connecting to the server. |
Beta Was this translation helpful? Give feedback.
-
Spent some hours on this... The problem is the fact that on Debian 10 & 11, the "iptables" command does not run iptables, it runs some compatibility version of nftables (aka nft). It this compatibility version refuses to run one of the firewall commands of this script. The solution is as follows:
Please note though, that it is not recommanded to have firewall rules both on iptables & nftables, but I did not find a way to make things work with nftables rules. |
Beta Was this translation helpful? Give feedback.
-
I have similar problem on Ubuntu 22.04, but there isn't any add-openvpn-rules.sh file |
Beta Was this translation helpful? Give feedback.
-
So... What should i do? Openvpn server is installed on centos 9 on remote vps. this is entered firewall commands:
networkmanager-openvpn package is ovpn client on my laptop. this is ovpn client logs without any criminal info:
this is ovpn server logs on remote vps with my connection and without any criminal info again:
Maybe problem is in iptables/nftables? I should set some forwarding? this is iptables rules
this is generated server.conf
|
Beta Was this translation helpful? Give feedback.
-
Checklist
Pease include as much details as possible in your issue:
Hello,
I installed an OpenVPN server using the script in the hope of having a full tunnel between my home computer and one of my servers.
I can successfully connect to the server using the VPN, but it's impossible to get anything from there.
Seems like an issue with the NAT, especially in the "server back to client" direction.
I cannot find what is wrong in the configuration for the life of me.
My iptables :
My sysctl:
My server.conf:
If you could point me in the right direction, I'd be glad.
Beta Was this translation helpful? Give feedback.
All reactions