OpenVPN / as-docker

Docker images for openvpn-as
Apache License 2.0
34 stars 7 forks source link

Connected but no internet #14

Closed shoaib039 closed 1 month ago

shoaib039 commented 1 month ago

I have configured everything very well and also changed Server IP Address. Create user and download .ovpn profile to my phone. VPN also connected successfully, just no internet. Help me what to do and what to fix.

My Docker IP Address: 172.21.0.2 Server IP Address: 140.238.225.44

image

image

image

Image_20241014202435

uddr commented 1 month ago

@shoaib039 assuming this is Oracle cloud you may check if you have proper IG/NAT configuration and open ports in the cloud and OS firewalls.

Can you connect from your host to the internet?

novaflash commented 1 month ago

A common problem is that by default Access Server pushes its DNS servers to the VPN client, and if these are DNS servers that either don't respond to VPN clients or are unroutable, you seemingly lose Internet access. So go to VPN Settings and try turning off pushing of DNS server, or push actually valid DNS servers.

shoaib039 commented 1 month ago

@shoaib039 assuming this is Oracle cloud, you may check if you have proper IG/NAT configuration and open ports in the cloud and OS firewalls.

Can you connect from your host to the internet?

I have already added port to Oracle firewall and open ports are already opened. I can use Wireguard, ShadowSock, and even OpenVPN without Docker. Just with Docker, there is no internet.

shoaib039 commented 1 month ago

A common problem is that by default Access Server pushes its DNS servers to the VPN client, and if these are DNS servers that either don't respond to VPN clients or are unroutable, you seemingly lose Internet access. So go to VPN Settings and try turning off pushing of DNS servers or pushing actually valid DNS servers.

Thank you so much. Actually, before, I had forgotten to add DNS. Now I have added Google DNS. Now I have internet; its working well now.

image

image