Page 1 of 1

Blank IP V4 DNS settings

Posted: Wed Sep 16, 2020 3:14 pm
by jbrines
Not sure if is the right place for the question.

I am using OpenVPN Connect to connect to a Watchguard firewall. It connects and gets an IP address fine but it doesn't get IP V4 dns server details.

Re: Blank IP V4 DNS settings

Posted: Wed Sep 16, 2020 4:51 pm
by TinCanTech
Check your log files.

Re: Blank IP V4 DNS settings

Posted: Thu Sep 17, 2020 2:45 pm
by jbrines
Looked the logs and this is what I get

Windows IP Configuration

Successfully flushed the DNS Resolver Cache.
Thu Sep 17 15:29:00 2020 connection from C:\Program Files\OpenVPN Connect\OpenVPNConnect.exe
Thu Sep 17 15:29:00 2020 HTTP request received from NAMED_PIPE
HTTP Request
method=POST
uri=/add-bypass-route
version=1/1
[0] Host=\\.\pipe\agent_ovpnconnect
[1] Content-Type=application/json
[2] Content-Length=47
[3] Accept=*/*

Thu Sep 17 15:29:02 2020 netsh interface ip add route 31.121.74.154/32 10 192.168.0.1 store=active
Ok.


Thu Sep 17 15:29:05 2020 connection from C:\Program Files\OpenVPN Connect\OpenVPNConnect.exe
Thu Sep 17 15:29:05 2020 HTTP request received from NAMED_PIPE
HTTP Request
method=POST
uri=/tun-setup
version=1/1
[0] Host=\\.\pipe\agent_ovpnconnect
[1] Content-Type=application/json
[2] Content-Length=1523
[3] Accept=*/*

Thu Sep 17 15:29:05 2020 proxy_auto_config_url
Thu Sep 17 15:29:25 2020 TUN SETUP
TAP ADAPTERS:
guid='{9BA83CB3-B29D-42E4-9FE8-88B10F8FF5CA}' index=7 name='Local Area Connection'
Open TAP device "Local Area Connection" PATH="\\.\Global\{9BA83CB3-B29D-42E4-9FE8-88B10F8FF5CA}.tap" SUCCEEDED
TAP-Windows Driver Version 9.24
ActionDeleteAllRoutesOnInterface iface_index=7
netsh interface ip set interface 7 metric=1
Ok.
netsh interface ip set address 7 static 10.0.200.11 255.255.255.0 gateway=10.0.200.1 store=active
netsh interface ipv6 add route 2000::/4 interface=1 store=active
Ok.
netsh interface ipv6 add route 3000::/4 interface=1 store=active
Ok.
netsh interface ipv6 add route fc00::/7 interface=1 store=active
Ok.
netsh interface ip add route 10.0.0.0/22 7 10.0.200.1 store=active
Ok.
netsh interface ip add route 10.0.100.0/24 7 10.0.200.1 store=active
Ok.
netsh interface ip add route 172.16.0.0/30 7 10.0.200.1 store=active
Ok.
netsh interface ip add route 192.168.10.0/24 7 10.0.200.1 store=active
Ok.
NRPT::ActionCreate names=[.clarkcontracts.local] dns_servers=[10.0.0.61,10.0.0.65]
ipconfig /flushdns
Windows IP Configuration
Successfully flushed the DNS Resolver Cache.
Thu Sep 17 15:29:26 2020 TUN CONFIRM

Re: Blank IP V4 DNS settings

Posted: Thu Sep 17, 2020 2:49 pm
by TinCanTech
This is OpenVPN connect, which is closed source.

Re: Blank IP V4 DNS settings

Posted: Fri Sep 18, 2020 8:52 am
by jbrines
TinCanTech wrote:
Thu Sep 17, 2020 2:49 pm
This is OpenVPN connect, which is closed source.
Is there another forum for support on that?

Re: Blank IP V4 DNS settings

Posted: Tue May 18, 2021 6:54 pm
by fh29
This issue may be related to the one in this topic: viewtopic.php?f=5&t=30124
I don't get why OpenVPN Connect uses "NRPT::ActionCreate" (which is not a valid cmdlet on my Windows machine) instead of "netsh" (which works fine) in order to set the DNS.

Re: Blank IP V4 DNS settings

Posted: Tue May 18, 2021 7:05 pm
by TinCanTech
Openvpn-connect does not belong on this board.

Now that the corporate stooges have their own board can we please start using it.
viewforum.php?f=37

Re: Blank IP V4 DNS settings

Posted: Tue May 18, 2021 7:14 pm
by fh29
Sorry about that TinCanTech.

Thread in the correct forum:
viewtopic.php?f=37&t=32325

Re: Blank IP V4 DNS settings

Posted: Tue May 18, 2021 7:18 pm
by TinCanTech
@ fh29 - No problem - Your new question is in the right place.

Thanks 8-)