Hi!
I can connect to my VPN (ip 192.168.0.19) just fine and get assigned the ip 10.8.0.2. However i cant use the internet while on it.
This is the log
Tue Nov 14 15:24:16 2017 OpenVPN 2.4.4 x86_64-w64-mingw32 [SSL (OpenSSL)] [LZO] [LZ4] [PKCS11] [AEAD] built on Sep 26 2017
Tue Nov 14 15:24:16 2017 Windows version 6.2 (Windows 8 or greater) 64bit
Tue Nov 14 15:24:16 2017 library versions: OpenSSL 1.0.2l 25 May 2017, LZO 2.10
Enter Management Password:
Tue Nov 14 15:24:16 2017 MANAGEMENT: TCP Socket listening on [AF_INET]127.0.0.1:25340
Tue Nov 14 15:24:16 2017 Need hold release from management interface, waiting...
Tue Nov 14 15:24:16 2017 MANAGEMENT: Client connected from [AF_INET]127.0.0.1:25340
Tue Nov 14 15:24:16 2017 MANAGEMENT: CMD 'state on'
Tue Nov 14 15:24:16 2017 MANAGEMENT: CMD 'log all on'
Tue Nov 14 15:24:16 2017 MANAGEMENT: CMD 'echo all on'
Tue Nov 14 15:24:16 2017 MANAGEMENT: CMD 'hold off'
Tue Nov 14 15:24:16 2017 MANAGEMENT: CMD 'hold release'
Tue Nov 14 15:24:16 2017 Outgoing Control Channel Authentication: Using 512 bit message hash 'SHA512' for HMAC authentication
Tue Nov 14 15:24:16 2017 Incoming Control Channel Authentication: Using 512 bit message hash 'SHA512' for HMAC authentication
Tue Nov 14 15:24:16 2017 TCP/UDP: Preserving recently used remote address: [AF_INET]83.255.54.193:1194
Tue Nov 14 15:24:16 2017 Socket Buffers: R=[65536->65536] S=[65536->65536]
Tue Nov 14 15:24:16 2017 UDP link local: (not bound)
Tue Nov 14 15:24:16 2017 UDP link remote: [AF_INET]83.255.54.193:1194
Tue Nov 14 15:24:16 2017 MANAGEMENT: >STATE:1510669456,WAIT,,,,,,
Tue Nov 14 15:24:16 2017 MANAGEMENT: >STATE:1510669456,AUTH,,,,,,
Tue Nov 14 15:24:16 2017 TLS: Initial packet from [AF_INET]83.255.54.193:1194, sid=9b43d294 84965839
Tue Nov 14 15:24:16 2017 VERIFY OK: depth=1, CN=ChangeMe
Tue Nov 14 15:24:16 2017 VERIFY KU OK
Tue Nov 14 15:24:16 2017 Validating certificate extended key usage
Tue Nov 14 15:24:16 2017 ++ Certificate has EKU (str) TLS Web Server Authentication, expects TLS Web Server Authentication
Tue Nov 14 15:24:16 2017 VERIFY EKU OK
Tue Nov 14 15:24:16 2017 VERIFY OK: depth=0, CN=server
Tue Nov 14 15:24:17 2017 Control Channel: TLSv1.2, cipher TLSv1/SSLv3 DHE-RSA-AES256-GCM-SHA384, 2048 bit RSA
Tue Nov 14 15:24:17 2017 [server] Peer Connection Initiated with [AF_INET]83.255.54.193:1194
Tue Nov 14 15:24:18 2017 MANAGEMENT: >STATE:1510669458,GET_CONFIG,,,,,,
Tue Nov 14 15:24:18 2017 SENT CONTROL [server]: 'PUSH_REQUEST' (status=1)
Tue Nov 14 15:24:18 2017 PUSH: Received control message: 'PUSH_REPLY,redirect-gateway def1 bypass-dhcp,dhcp-option DNS 8.8.8.8,dhcp-option DNS 8.8.4.4,route-gateway 10.8.0.1,topology subnet,ping 10,ping-restart 120,ifconfig 10.8.0.2 255.255.255.0'
Tue Nov 14 15:24:18 2017 OPTIONS IMPORT: timers and/or timeouts modified
Tue Nov 14 15:24:18 2017 OPTIONS IMPORT: --ifconfig/up options modified
Tue Nov 14 15:24:18 2017 OPTIONS IMPORT: route options modified
Tue Nov 14 15:24:18 2017 OPTIONS IMPORT: route-related options modified
Tue Nov 14 15:24:18 2017 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified
Tue Nov 14 15:24:18 2017 Outgoing Data Channel: Cipher 'AES-256-CBC' initialized with 256 bit key
Tue Nov 14 15:24:18 2017 Outgoing Data Channel: Using 512 bit message hash 'SHA512' for HMAC authentication
Tue Nov 14 15:24:18 2017 Incoming Data Channel: Cipher 'AES-256-CBC' initialized with 256 bit key
Tue Nov 14 15:24:18 2017 Incoming Data Channel: Using 512 bit message hash 'SHA512' for HMAC authentication
Tue Nov 14 15:24:18 2017 interactive service msg_channel=748
Tue Nov 14 15:24:18 2017 ROUTE_GATEWAY 192.168.0.1/255.255.255.0 I=3 HWADDR=e4:42:a6:9a:78:42
Tue Nov 14 15:24:18 2017 open_tun
Tue Nov 14 15:24:18 2017 TAP-WIN32 device [Ethernet 2] opened: \\.\Global\{3A5EA7EF-7E2A-44AE-A618-F81B49F86E99}.tap
Tue Nov 14 15:24:18 2017 TAP-Windows Driver Version 9.21
Tue Nov 14 15:24:18 2017 Set TAP-Windows TUN subnet mode network/local/netmask = 10.8.0.0/10.8.0.2/255.255.255.0 [SUCCEEDED]
Tue Nov 14 15:24:18 2017 Notified TAP-Windows driver to set a DHCP IP/
any ideas?
PS: sorry if i dont give enough information in this post. Im really new to this.
Cant connect to internet while on vpn.
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.
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
-
- OpenVpn Newbie
- Posts: 1
- Joined: Tue Nov 14, 2017 2:35 pm
-
- OpenVPN Protagonist
- Posts: 11137
- Joined: Fri Jun 03, 2016 1:17 pm
Re: Cant connect to internet while on vpn.
This is the normal required information: HOWTO: Request Help !
If your server is on 192.168.0.19 then you are on the same LAN as your server (more or less) and there is no need for a VPN.
Your log shows no errors and the correct settings.
Yes .. please read: HOWTO: Routing all client traffic (including web-traffic) through the VPN
Note: ipforwarding must me enabled and iptables requires masquerading (see the link)