The reason for working on this is:

This server is obviously using IPv4 (D-GW: 192.168.0.254)
and yet Openvpn decided:
Could not determine IPv4/IPv6 protocol. Using AF_INET6

That looks like a *bug* to me.


On 28/02/2021 17:09, tincanteksup wrote:
Thanks Selva,

as it turns out, I think this could be a different problem.

 From the log:
```
OpenVPN 2.5.0 x86_64-w64-mingw32

2021-02-28 08:00:26 interactive service msg_channel=0
2021-02-28 08:00:26 ROUTE_GATEWAY 192.168.0.254/255.255.255.0 I=11 HWADDR=dc:f4:01:e4:f4:10
2021-02-28 08:00:26 open_tun
2021-02-28 08:00:26 tap-windows6 device [OpenVPN TAP-Windows6] opened
2021-02-28 08:00:26 TAP-Windows Driver Version 9.24
2021-02-28 08:00:26 Notified TAP-Windows driver to set a DHCP IP/netmask of 10.8.0.1/255.255.255.252 on interface {27C77640-C538-4BDA-A9ED-B7A480CAF22D} [DHCP-serv: 10.8.0.2, lease-time: 31536000]
2021-02-28 08:00:26 Sleeping for 10 seconds...
2021-02-28 08:00:36 Successful ARP Flush on interface [4] {27C77640-C538-4BDA-A9ED-B7A480CAF22D} 2021-02-28 08:00:36 IPv4 MTU set to 1500 on interface 4 using SetIpInterfaceEntry() 2021-02-28 08:00:36 C:\Windows\system32\route.exe ADD 10.8.0.0 MASK 255.255.255.0 10.8.0.2

2021-02-28 08:00:36 Warning: route gateway is not reachable on any active network adapters: 10.8.0.2

(DHCP Failed ?)

2021-02-28 08:00:36 Route addition via IPAPI failed [adaptive]
2021-02-28 08:00:36 Route addition fallback to route.exe
2021-02-28 08:00:36 env_block: add PATH=C:\Windows\System32;C:\Windows;C:\Windows\System32\Wbem

2021-02-28 08:00:36 Could not determine IPv4/IPv6 protocol. Using AF_INET6

(Selected IPv6 when IPv4 is required ?)

```

Confirmed later in the log:
```
2021-02-28 08:06:47 C:\Windows\system32\route.exe DELETE 10.8.0.0 MASK 255.255.255.0 10.8.0.2 2021-02-28 08:06:47 ROUTE: route deletion failed using DeleteIpForwardEntry: Impossibile trovare elemento.

```

Summary:
* Use interactive service
* Fail to set IP address
* Fail to set VPN route
* Fail to detect IPv4
* Fail to delete route

I have asked the OP for his server config.

Any other ideas Anyone ?

Thanks.
R

On 28/02/2021 16:18, Selva Nair wrote:
Hi,

On Sun, Feb 28, 2021 at 9:51 AM tincanteksup <tincantek...@gmail.com> wrote:

Hi,

Ref: https://forums.openvpn.net/viewtopic.php?f=6&t=31928

I recall that there is some `netsh` setting that can effect DHCP working
but I cannot remember what it is or where it was documented.

I believe it is something to do with a `persistent` setting ..


The global setting for dhcp media sense? It can be checked and set by

netsh interface ipv4 show global
and
netsh interface ipv4 set global dhcpmediasense=enabled

Also, --dhcp-renew could force dhcp renewal even if automatic media sense
is not working. I do not recall whether we made --dhcp-renew on by default.

Selva



_______________________________________________
Openvpn-users mailing list
Openvpn-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-users

Reply via email to