TheBestPessimist
Occasional Visitor
Hello,
I have a problem when i am trying to connect to my local devices when i am connected via openvpn, tun (note that tap works w/o problems).
Could someone please be so kind and help me sort this out? I would really like to be able to acces my computer's shares + router hdd from everywhere (including my phone).
What i did:
Enabled the openvpn server,
chosen that i want to use openvpn for internet and local,
disabled user and pass authentication (so that everyone with config can just use the connection),
generated the config and used on my laptop, which is connected via wireless to my phone's hotspot.
I have added screenshots with my settings, plus some logs and other data i thought important.
Client route when connected to openvpn:
Server log
Client log
I have a problem when i am trying to connect to my local devices when i am connected via openvpn, tun (note that tap works w/o problems).
Could someone please be so kind and help me sort this out? I would really like to be able to acces my computer's shares + router hdd from everywhere (including my phone).
What i did:
Enabled the openvpn server,
chosen that i want to use openvpn for internet and local,
disabled user and pass authentication (so that everyone with config can just use the connection),
generated the config and used on my laptop, which is connected via wireless to my phone's hotspot.
I have added screenshots with my settings, plus some logs and other data i thought important.
Client route when connected to openvpn:
Code:
PS C:\Windows\system32> route print
===========================================================================
Interface List
3...34 e6 d7 09 c3 ca ......Intel(R) Ethernet Connection I217-LM
5...80 00 0b 48 f8 ab ......Microsoft Wi-Fi Direct Virtual Adapter
4...00 ff 34 4d c8 5a ......TAP-Windows Adapter V9
7...80 00 0b 48 f8 aa ......Intel(R) Centrino(R) Advanced-N 6235
1...........................Software Loopback Interface 1
6...00 00 00 00 00 00 00 e0 Teredo Tunneling Pseudo-Interface
===========================================================================
IPv4 Route Table
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 192.168.43.1 192.168.43.83 55
0.0.0.0 128.0.0.0 10.8.0.1 10.8.0.2 35
10.8.0.0 255.255.255.0 On-link 10.8.0.2 291
10.8.0.2 255.255.255.255 On-link 10.8.0.2 291
10.8.0.255 255.255.255.255 On-link 10.8.0.2 291
79.114.56.29 255.255.255.255 192.168.43.1 192.168.43.83 55
127.0.0.0 255.0.0.0 On-link 127.0.0.1 331
127.0.0.1 255.255.255.255 On-link 127.0.0.1 331
127.255.255.255 255.255.255.255 On-link 127.0.0.1 331
128.0.0.0 128.0.0.0 10.8.0.1 10.8.0.2 35
192.168.43.0 255.255.255.0 On-link 192.168.43.83 311
192.168.43.83 255.255.255.255 On-link 192.168.43.83 311
192.168.43.255 255.255.255.255 On-link 192.168.43.83 311
192.168.87.0 255.255.255.0 10.8.0.1 10.8.0.2 500
224.0.0.0 240.0.0.0 On-link 127.0.0.1 331
224.0.0.0 240.0.0.0 On-link 192.168.43.83 311
224.0.0.0 240.0.0.0 On-link 10.8.0.2 291
255.255.255.255 255.255.255.255 On-link 127.0.0.1 331
255.255.255.255 255.255.255.255 On-link 192.168.43.83 311
255.255.255.255 255.255.255.255 On-link 10.8.0.2 291
===========================================================================
Persistent Routes:
None
IPv6 Route Table
===========================================================================
Active Routes:
If Metric Network Destination Gateway
1 331 ::1/128 On-link
7 311 fe80::/64 On-link
4 291 fe80::/64 On-link
4 291 fe80::202d:f7af:21f7:5082/128
On-link
7 311 fe80::896c:6f52:2f18:7104/128
On-link
1 331 ff00::/8 On-link
7 311 ff00::/8 On-link
4 291 ff00::/8 On-link
===========================================================================
Persistent Routes:
None
PS C:\Windows\system32>
Server log
Code:
Mar 15 09:56:25 ovpn-server1[16948]: 82.137.14.21 TLS: Initial packet from [AF_INET6]::ffff:82.137.14.21:16926, sid=040642e2 365d6704
Mar 15 09:56:25 ovpn-server1[16948]: 82.137.14.21 VERIFY OK: depth=1, C=TW, ST=TW, L=Taipei, O=ASUS, CN=RT-AC87U, emailAddress=me@myhost.mydomain
Mar 15 09:56:25 ovpn-server1[16948]: 82.137.14.21 VERIFY OK: depth=0, C=TW, ST=TW, L=Taipei, O=ASUS, CN=client, emailAddress=me@myhost.mydomain
Mar 15 09:56:25 ovpn-server1[16948]: 82.137.14.21 peer info: IV_VER=2.4.5
Mar 15 09:56:25 ovpn-server1[16948]: 82.137.14.21 peer info: IV_PLAT=win
Mar 15 09:56:25 ovpn-server1[16948]: 82.137.14.21 peer info: IV_PROTO=2
Mar 15 09:56:25 ovpn-server1[16948]: 82.137.14.21 peer info: IV_NCP=2
Mar 15 09:56:25 ovpn-server1[16948]: 82.137.14.21 peer info: IV_LZ4=1
Mar 15 09:56:25 ovpn-server1[16948]: 82.137.14.21 peer info: IV_LZ4v2=1
Mar 15 09:56:25 ovpn-server1[16948]: 82.137.14.21 peer info: IV_LZO=1
Mar 15 09:56:25 ovpn-server1[16948]: 82.137.14.21 peer info: IV_COMP_STUB=1
Mar 15 09:56:25 ovpn-server1[16948]: 82.137.14.21 peer info: IV_COMP_STUBv2=1
Mar 15 09:56:25 ovpn-server1[16948]: 82.137.14.21 peer info: IV_TCPNL=1
Mar 15 09:56:25 ovpn-server1[16948]: 82.137.14.21 peer info: IV_GUI_VER=OpenVPN_GUI_11
Mar 15 09:56:25 ovpn-server1[16948]: 82.137.14.21 Control Channel: TLSv1.2, cipher TLSv1/SSLv3 ECDHE-RSA-AES256-GCM-SHA384, 1024 bit RSA
Mar 15 09:56:25 ovpn-server1[16948]: 82.137.14.21 [client] Peer Connection Initiated with [AF_INET6]::ffff:82.137.14.21:16926
Mar 15 09:56:25 ovpn-server1[16948]: client/82.137.14.21 MULTI_sva: pool returned IPv4=10.8.0.2, IPv6=(Not enabled)
Mar 15 09:56:25 ovpn-server1[16948]: client/82.137.14.21 MULTI: Learn: 10.8.0.2 -> client/82.137.14.21
Mar 15 09:56:25 ovpn-server1[16948]: client/82.137.14.21 MULTI: primary virtual IP for client/82.137.14.21: 10.8.0.2
Mar 15 09:56:26 ovpn-server1[16948]: client/82.137.14.21 PUSH: Received control message: 'PUSH_REQUEST'
Mar 15 09:56:26 ovpn-server1[16948]: client/82.137.14.21 SENT CONTROL [client]: 'PUSH_REPLY,route 192.168.87.0 255.255.255.0 vpn_gateway 500,dhcp-option DNS 192.168.87.1,redirect-gateway def1,route-gateway 10.8.0.1,topology subnet,ping 15,ping-restart 60,ifconfig 10.8.0.2 255.255.255.0,peer-id 1,cipher AES-128-GCM' (status=1)
Mar 15 09:56:26 ovpn-server1[16948]: client/82.137.14.21 Data Channel: using negotiated cipher 'AES-128-GCM'
Mar 15 09:56:26 ovpn-server1[16948]: client/82.137.14.21 Outgoing Data Channel: Cipher 'AES-128-GCM' initialized with 128 bit key
Mar 15 09:56:26 ovpn-server1[16948]: client/82.137.14.21 Incoming Data Channel: Cipher 'AES-128-GCM' initialized with 128 bit key
Mar 15 09:57:04 ovpn-server1[16948]: client/82.137.14.21 [client] Inactivity timeout (--ping-restart), restarting
Mar 15 09:57:04 ovpn-server1[16948]: client/82.137.14.21 SIGUSR1[soft,ping-restart] received, client-instance restarting
Client log
Code:
Thu Mar 15 08:56:32 2018 OpenVPN 2.4.5 x86_64-w64-mingw32 [SSL (OpenSSL)] [LZO] [LZ4] [PKCS11] [AEAD] built on Mar 1 2018
Thu Mar 15 08:56:32 2018 Windows version 6.2 (Windows 8 or greater) 64bit
Thu Mar 15 08:56:32 2018 library versions: OpenSSL 1.1.0f 25 May 2017, LZO 2.10
Thu Mar 15 08:56:33 2018 TCP/UDP: Preserving recently used remote address: [AF_INET]79.114.56.29:1194
Thu Mar 15 08:56:33 2018 UDP link local: (not bound)
Thu Mar 15 08:56:33 2018 UDP link remote: [AF_INET]79.114.56.29:1194
Thu Mar 15 08:56:33 2018 [RT-AC87U] Peer Connection Initiated with [AF_INET]79.114.56.29:1194
Thu Mar 15 08:56:34 2018 open_tun
Thu Mar 15 08:56:34 2018 TAP-WIN32 device [Ethernet 2] opened: \\.\Global\{344DC85A-6764-4E4A-9F62-E9CA6F201F24}.tap
Thu Mar 15 08:56:34 2018 Set TAP-Windows TUN subnet mode network/local/netmask = 10.8.0.0/10.8.0.2/255.255.255.0 [SUCCEEDED]
Thu Mar 15 08:56:34 2018 Notified TAP-Windows driver to set a DHCP IP/netmask of 10.8.0.2/255.255.255.0 on interface {344DC85A-6764-4E4A-9F62-E9CA6F201F24} [DHCP-serv: 10.8.0.254, lease-time: 31536000]
Thu Mar 15 08:56:34 2018 Successful ARP Flush on interface [4] {344DC85A-6764-4E4A-9F62-E9CA6F201F24}
Thu Mar 15 08:56:34 2018 do_ifconfig, tt->did_ifconfig_ipv6_setup=0
Thu Mar 15 08:56:39 2018 WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this
Thu Mar 15 08:56:39 2018 Initialization Sequence Completed
Code:
PS C:\Windows\system32> ipconfig
Windows IP Configuration
Ethernet adapter Ethernet:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . : wamas.com
Wireless LAN adapter Local Area Connection* 1:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Ethernet adapter Ethernet 2:
Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : fe80::202d:f7af:21f7:5082%4
IPv4 Address. . . . . . . . . . . : 10.8.0.2
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :
Wireless LAN adapter Wi-Fi:
Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : fe80::896c:6f52:2f18:7104%7
IPv4 Address. . . . . . . . . . . : 192.168.43.83
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.43.1
Tunnel adapter Teredo Tunneling Pseudo-Interface:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
PS C:\Windows\system32>