OpenVPN connects but no access to server.

Official client software for OpenVPN Access Server and OpenVPN Cloud.
Post Reply
Mike600
OpenVpn Newbie
Posts: 2
Joined: Mon Nov 07, 2022 7:15 am

OpenVPN connects but no access to server.

Post by Mike600 » Mon Nov 07, 2022 7:18 am

Hello friends!

I happen to have this issue, I have multiple devices which are using the same .ovpn key and this happens: when I try to connect to my tablet, it connects and if I try to access 192.168.100.124 ( server's ip on local network ), everything works fine, I can work on it.
Now if I try to do the same thing on my Windows 11 machine, I start OpenVPN Connect, Insert ovpn key, it connects, but if I try to access 192.168.100.124 nothing happens, it does not work!

I have tried to do the same steps in an Windows Sandbox VM and it works! Now, how can I figure out what is keeping me behind and blocks OpenVPN to work ?

Thank you, have a great day!

User avatar
Pippin
Forum Team
Posts: 1201
Joined: Wed Jul 01, 2015 8:03 am
Location: irc://irc.libera.chat:6697/openvpn

Re: OpenVPN connects but no access to server.

Post by Pippin » Mon Nov 07, 2022 9:47 pm

Hi,

Please post the client and server config file at --verb 4:
viewtopic.php?t=22603#p68963

You could start a packet capture on the target while pinging it to see if packets arrive.
Same for server, packet capture (on tun) to confirm if both requests and replies are seen.
I gloomily came to the ironic conclusion that if you take a highly intelligent person and give them the best possible, elite education, then you will most likely wind up with an academic who is completely impervious to reality.
Halton Arp

Mike600
OpenVpn Newbie
Posts: 2
Joined: Mon Nov 07, 2022 7:15 am

Re: OpenVPN connects but no access to server.

Post by Mike600 » Tue Nov 08, 2022 7:10 pm

Here is the Client config:
client

client
dev tun
proto udp
remote <remote ip> <port>
resolv-retry infinite
nobind
persist-key
persist-tun
remote-cert-tls server
auth SHA512
route-nopull
route 192.168.100.124 255.255.255.255
cipher AES-256-CBC
ignore-unknown-option block-outside-dns
block-outside-dns
verb 3
<ca>
-----BEGIN CERTIFICATE-----
-----END CERTIFICATE-----
</ca>
<cert>
-----BEGIN CERTIFICATE-----
-----END CERTIFICATE-----
</cert>
<key>
-----BEGIN PRIVATE KEY-----
-----END PRIVATE KEY-----
</key>
<tls-crypt>
-----BEGIN OpenVPN Static key V1-----
-----END OpenVPN Static key V1-----
</tls-crypt>
[oconf]


Now, regarding packet capture, I've downloaded WireShark, but I dont really know what to look for....

BenEllis
OpenVpn Newbie
Posts: 1
Joined: Tue Nov 22, 2022 6:25 pm

Re: OpenVPN connects but no access to server.

Post by BenEllis » Tue Nov 22, 2022 6:32 pm

I had a similar issue on windows 11 that I resolved by doing the following,

1. Hit windows key and open `View Network Connections`
2. Right click and open Properties on the OpenVPN connection (Described as TAP-Windows Adapter V9 for...)
3. Select Internet Protocol Version 4 (IPv4) and click "Properties"
4. If you have the same issue as me, you'll see "specific IP" and "specific DNS" are selected but there are no IP addresses specified.

If you have the same issue, then you can populate these values by,

1. In OpenVPN (after connected) click the log icon in the top right, scroll down/up until you find the following information,

netsh interface ip set interface XX static 1.2.3.4 255.255.255.123 gateway=4.3.2.1

and

dnsservers = [1.1.1.1, 2.2.2.2]

This gives you your IP, NetMask and gateway IP and the two DNS servers (from my example, these would be 1.2.3.4, 255.255.255.123, 4.3.2.1, 1.1.1.1 and 2.2.2.2 respectively.)

So you can put these values in the Properties window for IPv4, click OK.

I then flushed my DNS by opening a command prompt window and running,

`ipconfig /flushdns`

Hope this helps.

Post Reply