Cannot ping other devices or access the web

Need help configuring your VPN? Just post here and you'll get that help.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
vajny
OpenVpn Newbie
Posts: 2
Joined: Tue Mar 31, 2020 10:52 pm

Cannot ping other devices or access the web

Post by vajny » Tue Mar 31, 2020 11:34 pm

Hi,
I have configured basic ovpn server on windows server 2019. It was working fine for one day and then it stopped. I can connect to the server I get an ip from server. But i dont get gateway and i cant ping to any other ip`s on the vpn. I also cannot connect to the internet.

From client side i get ip 10.8.0.2
On server i get 10.8.0.2

Ipforwarding is turned on in regedit

server config
local 46.36.37.1xx
port 1195
proto tcp
dev tun
ca ca.crt
cert server.crt
key server.key
dh dh.pem
auth SHA1
topology subnet
server 10.8.0.0 255.255.255.0
push "redirect-gateway def1"
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 1.1.1.1"
keepalive 10 120
cipher AES-256-CBC
persist-key
persist-tun
status openvpn-status.log
verb 3
crl-verify crl.pem
duplicate-cn



client config
client
dev tun
proto tcp
remote 46.36.37.1xx 1195
resolv-retry infinite
nobind
persist-key
persist-tun
auth SHA1
cipher AES-256-CBC
ignore-unknown-option block-outside-dns
block-outside-dns
verb 3
<ca>
-----BEGIN CERTIFICATE-----
MIIDQjCCAiqgAwIBAgIUXE1POxJyhlSM5rLP9asEgcQRCJ0wDQYJKoZIhvcNAQEL
BQAwEzERMA8GA1UEAwwIQ2hhbmdlTWUwHhcNMjAwMTE0MDkwNDA3WhcNMzAwMTEx

-----END CERTIFICATE-----
</ca>
<cert>
-----BEGIN CERTIFICATE-----
MIIDUjCCAjqgAwIBAgIRAM3q4sS1vBfkhUkvtBwDf4owDQYJKoZIhvcNAQELBQAw

-----END CERTIFICATE-----
</cert>
<key>
-----BEGIN PRIVATE KEY-----
MIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQC1AqzaVFxXb777

-----END PRIVATE KEY-----
</key>


300000
OpenVPN Expert
Posts: 685
Joined: Tue May 01, 2012 9:30 pm

Re: Cannot ping other devices or access the web

Post by 300000 » Wed Apr 01, 2020 2:05 am

windows server have trouble with routingandremote access sevice so basic you need restar your server everyday . nothing to do with openvpn at all . you need install ity on windows server 2016 , it run better than windows server 2019

vajny
OpenVpn Newbie
Posts: 2
Joined: Tue Mar 31, 2020 10:52 pm

Re: Cannot ping other devices or access the web

Post by vajny » Wed Apr 01, 2020 11:22 am

300000 wrote:
Wed Apr 01, 2020 2:05 am
windows server have trouble with routingandremote access sevice so basic you need restar your server everyday . nothing to do with openvpn at all . you need install ity on windows server 2016 , it run better than windows server 2019
Thanks for reply, but unfortunately it doesnt work on my other server in different place that runs on ws 2012 r2. So i expect problem somewhere else.
Is the config 100% correct?

So now I am able to ping te server, but cannot acces internet. Ping 8.8.8.8 not responding. Any ideas?

gattaca
OpenVpn Newbie
Posts: 5
Joined: Mon Apr 27, 2020 7:48 am

Re: Cannot ping other devices or access the web

Post by gattaca » Tue Jun 02, 2020 3:18 am

I met the same problem,I tried many times when I setup openvpn server on windows server 2012r2 or 2016 ,it didn't work, but when I turned to windows server 2019 and setup in the same way, it worked well.

So the issues must come from the differences between these windows versions!

I also captured the ip packet to find reason,the result told me that TAP-windows adapter is unable to communicate with Ethernet adapter!

but I don't know why and I don't know how to solve,could anyone help me(windows is too troublesome!)

Post Reply