Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
764 views
in Technique[技术] by (71.8m points)

routes - Using OpenDNS to control traffic in my VPN ( WindowsServer 2019 )

I have setup a VPN server on windows server 2019 using RRAS, the server is running in Azure.

On that server I've setup OpenDNS on the Ethernetconnection ( the only available connection on that server ).

This is the IPCONFIG -all for the VPN server

===========================================

C:UsersSCC_ADMIN>ipconfig -all


Windows IP Configuration


   Host Name . . . . . . . . . . . . : CloudConnector

   Primary Dns Suffix  . . . . . . . :

   Node Type . . . . . . . . . . . . : Hybrid

   IP Routing Enabled. . . . . . . . : Yes

   WINS Proxy Enabled. . . . . . . . : No

   DNS Suffix Search List. . . . . . : p3n3zyqwstqefmz33jdavemcwa.ax.internal.cloudapp.net


Ethernet adapter Ethernet:

   Connection-specific DNS Suffix  . : p3n3zyqwstqefmz33jdavemcwa.ax.internal.cloudapp.net

   Description . . . . . . . . . . . : Microsoft Hyper-V Network Adapter

   Physical Address. . . . . . . . . : 00-0D-3A-47-E9-E4

   DHCP Enabled. . . . . . . . . . . : Yes

   Autoconfiguration Enabled . . . . : Yes

   Link-local IPv6 Address . . . . . : fe80::2115:bffe:b66d:660a%10(Preferred)

   IPv4 Address. . . . . . . . . . . : 10.0.4.4(Preferred)

   Subnet Mask . . . . . . . . . . . : 255.255.255.0

   Lease Obtained. . . . . . . . . . : Tuesday, January 26, 2021 3:45:47 PM

   Lease Expires . . . . . . . . . . : Saturday, March 5, 2157 8:08:23 PM

   Default Gateway . . . . . . . . . : 10.0.4.1

   DHCP Server . . . . . . . . . . . : 168.63.129.16

   DHCPv6 IAID . . . . . . . . . . . : 100666682

   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-27-74-76-EC-00-0D-3A-47-E9-E4

   DNS Servers . . . . . . . . . . . : 208.67.222.222

                                       208.67.220.220

   NetBIOS over Tcpip. . . . . . . . : Enabled



PPP adapter RAS (Dial In) Interface:


   Connection-specific DNS Suffix  . :

   Description . . . . . . . . . . . : RAS (Dial In) Interface

   Physical Address. . . . . . . . . :

   DHCP Enabled. . . . . . . . . . . : No

   Autoconfiguration Enabled . . . . : Yes

   IPv4 Address. . . . . . . . . . . : 100.100.0.0(Preferred)

   Subnet Mask . . . . . . . . . . . : 255.255.255.255

   Default Gateway . . . . . . . . . :

   NetBIOS over Tcpip. . . . . . . . : Enabled

========================================

If I open https://welcome.opendns.com/ on the server, I get a notification that OpenODS is being used.

The External IP for that server is 20.71.206.175.

I can successfully connect to the VPN form my client. When I do I see that my external IP is 20.71.206.175. This is the IPCONFIG -ALL for my client when connected to the VPN

===============================

C:Usersdanie>ipconfig /all



Windows IP Configuration


   Host Name . . . . . . . . . . . . : SURFACE-DANIEL

   Primary Dns Suffix  . . . . . . . :

   Node Type . . . . . . . . . . . . : Hybrid

   IP Routing Enabled. . . . . . . . : No

   WINS Proxy Enabled. . . . . . . . : No



Ethernet adapter Ethernet 8:



   Connection-specific DNS Suffix  . :

   Description . . . . . . . . . . . : Surface Ethernet Adapter

   Physical Address. . . . . . . . . : 28-16-A8-08-AB-B7

   DHCP Enabled. . . . . . . . . . . : Yes

   Autoconfiguration Enabled . . . . : Yes

   Link-local IPv6 Address . . . . . : fe80::381c:5172:807a:b8cc%11(Preferred)

   IPv4 Address. . . . . . . . . . . : 10.0.0.24(Preferred)

   Subnet Mask . . . . . . . . . . . : 255.255.255.0

   Lease Obtained. . . . . . . . . . : woensdag 27 januari 2021 10:03:33

   Lease Expires . . . . . . . . . . : donderdag 28 januari 2021 12:18:14

   Default Gateway . . . . . . . . . : 10.0.0.1

   DHCP Server . . . . . . . . . . . : 10.0.0.1

   DHCPv6 IAID . . . . . . . . . . . : 791156392

   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-25-24-E5-9D-B8-31-B5-8B-64-E9

   DNS Servers . . . . . . . . . . . : 10.0.0.1

   NetBIOS over Tcpip. . . . . . . . : Enabled



PPP adapter Plainwater VPN:

   Connection-specific DNS Suffix  . :

   Description . . . . . . . . . . . : Plainwater VPN

   Physical Address. . . . . . . . . :

   DHCP Enabled. . . . . . . . . . . : No

   Autoconfiguration Enabled . . . . : Yes

   IPv4 Address. . . . . . . . . . . : 100.100.0.2(Preferred)

   Subnet Mask . . . . . . . . . . . : 255.255.255.255

   Default Gateway . . . . . . . . . : 0.0.0.0

   DNS Servers . . . . . . . . . . . : 208.67.222.222

                                       208.67.220.220

   NetBIOS over Tcpip. . . . . . . . : Enabled

===============================

However, when I visit https://welcome.opendns.com/ it shows that the OpenDNS is not used.

I've restarted all servers and services. I also manually flushed my DNS, but the problem remains.

Am I expecting something that cannot work?

Hope you can help,

Daniel

question from:https://stackoverflow.com/questions/65920088/using-opendns-to-control-traffic-in-my-vpn-windowsserver-2019

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...