manauser
I've setup my openvpn server ok. My profile is ok. Installed the client on windows 8.1, works good. IP is my openvpn server.
Then I restart my computer and connect again, shows I connected. But now traffic is not being tunneled through the openvpn server.
Without restarting, I reinstall the openvpn gui client. Reconnect to the same profile (as it's still there). It works...
Except I have to do this every time now... Reinstall openvpn Gui client when I want to use it...
manauser
WINDOWS 8.1 CLIENT LOG -->
Wed May 20 13:44:29 2015 OpenVPN 2.3.6 x86_64-w64-mingw32 [SSL (OpenSSL)] [LZO] [PKCS11] [IPv6] built on Mar 19 2015
Wed May 20 13:44:29 2015 library versions: OpenSSL 1.0.1m 19 Mar 2015, LZO 2.08
Enter Management Password:
Wed May 20 13:44:29 2015 MANAGEMENT: TCP Socket listening on [AF_INET]127.0.0.1:25340
Wed May 20 13:44:29 2015 Need hold release from management interface, waiting...
Wed May 20 13:44:30 2015 MANAGEMENT: Client connected from [AF_INET]127.0.0.1:25340
Wed May 20 13:44:30 2015 MANAGEMENT: CMD 'state on'
Wed May 20 13:44:30 2015 MANAGEMENT: CMD 'log all on'
Wed May 20 13:44:30 2015 MANAGEMENT: CMD 'hold off'
Wed May 20 13:44:30 2015 MANAGEMENT: CMD 'hold release'
Wed May 20 13:44:30 2015 Socket Buffers: R=[65536->65536] S=[65536->65536]
Wed May 20 13:44:30 2015 MANAGEMENT: >STATE:1432143870,RESOLVE,,,
Wed May 20 13:44:30 2015 UDPv4 link local: [undef]
Wed May 20 13:44:30 2015 UDPv4 link remote: [AF_INET]===edited (server ip) ===:1194
Wed May 20 13:44:30 2015 MANAGEMENT: >STATE:1432143870,WAIT,,,
Wed May 20 13:44:30 2015 MANAGEMENT: >STATE:1432143870,AUTH,,,
Wed May 20 13:44:30 2015 TLS: Initial packet from [AF_INET]===edited (server ip) ===:1194, sid=05737c4a ce6e3766
Wed May 20 13:44:30 2015 VERIFY OK: depth=1, ===edited cert info ===
Wed May 20 13:44:30 2015 VERIFY OK: nsCertType=SERVER
Wed May 20 13:44:30 2015 VERIFY OK: depth=0, ===edited cert info===
Wed May 20 13:44:31 2015 Data Channel Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
Wed May 20 13:44:31 2015 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Wed May 20 13:44:31 2015 Data Channel Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
Wed May 20 13:44:31 2015 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Wed May 20 13:44:31 2015 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 2048 bit RSA
Wed May 20 13:44:31 2015 [server] Peer Connection Initiated with [AF_INET]===edited (server ip) ===:1194
Wed May 20 13:44:32 2015 MANAGEMENT: >STATE:1432143872,GET_CONFIG,,,
Wed May 20 13:44:33 2015 SENT CONTROL [server]: 'PUSH_REQUEST' (status=1)
Wed May 20 13:44:33 2015 PUSH: Received control message: 'PUSH_REPLY,redirect-gateway def1 bypass-dhcp,dhcp-option DNS 208.67.222.222,dhcp-option DNS 208.67.220.220,route 10.8.0.1,topology net30,ping 10,ping-restart 120,ifconfig 10.8.0.14 10.8.0.13'
Wed May 20 13:44:33 2015 OPTIONS IMPORT: timers and/or timeouts modified
Wed May 20 13:44:33 2015 OPTIONS IMPORT: --ifconfig/up options modified
Wed May 20 13:44:33 2015 OPTIONS IMPORT: route options modified
Wed May 20 13:44:33 2015 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified
Wed May 20 13:44:33 2015 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Wed May 20 13:44:33 2015 MANAGEMENT: >STATE:1432143873,ASSIGN_IP,,10.8.0.14,
Wed May 20 13:44:33 2015 open_tun, tt->ipv6=0
Wed May 20 13:44:33 2015 TAP-WIN32 device [Ethernet 2] opened: \\.\Global\{68B88EAA-7345-432B-BA39-65316ED1D60C}.tap
Wed May 20 13:44:33 2015 TAP-Windows Driver Version 9.21
Wed May 20 13:44:33 2015 Notified TAP-Windows driver to set a DHCP IP/netmask of 10.8.0.14/255.255.255.252 on interface {68B88EAA-7345-432B-BA39-65316ED1D60C} [DHCP-serv: 10.8.0.13, lease-time: 31536000]
Wed May 20 13:44:33 2015 Successful ARP Flush on interface [10] {68B88EAA-7345-432B-BA39-65316ED1D60C}
Wed May 20 13:44:38 2015 TEST ROUTES: 2/2 succeeded len=1 ret=1 a=0 u/d=up
Wed May 20 13:44:38 2015 C:\Windows\system32\route.exe ADD ===edited (server ip) === MASK 255.255.255.255 192.168.1.1
Wed May 20 13:44:38 2015 ROUTE: route addition failed using CreateIpForwardEntry: The object already exists. [status=5010 if_index=4]
Wed May 20 13:44:38 2015 Route addition via IPAPI failed [adaptive]
Wed May 20 13:44:38 2015 Route addition fallback to route.exe
Wed May 20 13:44:38 2015 env_block: add PATH=C:\Windows\System32;C:\WINDOWS;C:\WINDOWS\System32\Wbem
Wed May 20 13:44:39 2015 C:\Windows\system32\route.exe ADD 192.168.1.1 MASK 255.255.255.255 192.168.1.1 IF 4
Wed May 20 13:44:39 2015 ROUTE: route addition failed using CreateIpForwardEntry: The object already exists. [status=5010 if_index=4]
Wed May 20 13:44:39 2015 Route addition via IPAPI failed [adaptive]
Wed May 20 13:44:39 2015 Route addition fallback to route.exe
Wed May 20 13:44:39 2015 env_block: add PATH=C:\Windows\System32;C:\WINDOWS;C:\WINDOWS\System32\Wbem
Wed May 20 13:44:39 2015 C:\Windows\system32\route.exe ADD 0.0.0.0 MASK 128.0.0.0 10.8.0.13
Wed May 20 13:44:39 2015 ROUTE: CreateIpForwardEntry succeeded with dwForwardMetric1=20 and dwForwardType=4
Wed May 20 13:44:39 2015 Route addition via IPAPI succeeded [adaptive]
Wed May 20 13:44:39 2015 C:\Windows\system32\route.exe ADD 128.0.0.0 MASK 128.0.0.0 10.8.0.13
Wed May 20 13:44:39 2015 ROUTE: CreateIpForwardEntry succeeded with dwForwardMetric1=20 and dwForwardType=4
Wed May 20 13:44:39 2015 Route addition via IPAPI succeeded [adaptive]
Wed May 20 13:44:39 2015 MANAGEMENT: >STATE:1432143879,ADD_ROUTES,,,
Wed May 20 13:44:39 2015 C:\Windows\system32\route.exe ADD 10.8.0.1 MASK 255.255.255.255 10.8.0.13
Wed May 20 13:44:39 2015 ROUTE: CreateIpForwardEntry succeeded with dwForwardMetric1=20 and dwForwardType=4
Wed May 20 13:44:39 2015 Route addition via IPAPI succeeded [adaptive]
Wed May 20 13:44:39 2015 Initialization Sequence Completed
Wed May 20 13:44:39 2015 MANAGEMENT: >STATE:1432143879,CONNECTED,SUCCESS,10.8.0.14,===edited (server ip) ===
manauser
SERVER LOG ubuntu 14.04 ->
Jun 2 00:44:40 localhost ovpn-server[710]: === my client ip ===:52916 TLS: Initial packet from [AF_INET]=== my client ip ===:52916, sid=2a570378 0bcdb671
Jun 2 00:44:41 localhost ovpn-server[710]: === my client ip ===:52916 VERIFY OK: depth=1, === cert info ===
Jun 2 00:44:41 localhost ovpn-server[710]: === my client ip ===:52916 VERIFY OK: depth=0, === cert info ===
Jun 2 00:44:41 localhost ovpn-server[710]: === my client ip ===:52916 Data Channel Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
Jun 2 00:44:41 localhost ovpn-server[710]: === my client ip ===:52916 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Jun 2 00:44:41 localhost ovpn-server[710]: === my client ip ===:52916 Data Channel Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
Jun 2 00:44:41 localhost ovpn-server[710]: === my client ip ===:52916 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Jun 2 00:44:41 localhost ovpn-server[710]: === my client ip ===:52916 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 2048 bit RSA
Jun 2 00:44:41 localhost ovpn-server[710]: === my client ip ===:52916 [pc] Peer Connection Initiated with [AF_INET]=== my client ip ===:52916
Jun 2 00:44:41 localhost ovpn-server[710]: pc/=== my client ip ===:52916 MULTI_sva: pool returned IPv4=10.8.0.14, IPv6=(Not enabled)
Jun 2 00:44:41 localhost ovpn-server[710]: pc/=== my client ip ===:52916 MULTI: Learn: 10.8.0.14 -> pc/=== my client ip ===:52916
Jun 2 00:44:41 localhost ovpn-server[710]: pc/=== my client ip ===:52916 MULTI: primary virtual IP for pc/=== my client ip ===:52916: 10.8.0.14
Jun 2 00:44:43 localhost ovpn-server[710]: pc/=== my client ip ===:52916 PUSH: Received control message: 'PUSH_REQUEST'
Jun 2 00:44:43 localhost ovpn-server[710]: pc/=== my client ip ===:52916 send_push_reply(): safe_cap=940
Jun 2 00:44:43 localhost ovpn-server[710]: pc/=== my client ip ===:52916 SENT CONTROL [pc]: 'PUSH_REPLY,redirect-gateway def1 bypass-dhcp,dhcp-option DNS 208.67.222.222,dhcp-option DNS 208.67.220.220,route 10.8.0.1,topology net30,ping 10,ping-restart 120,ifconfig 10.8.0.14 10.8.0.13' (status=1)
manauser
OOOOOOOOOOOOOOOOOOH ok, I see it now, need to run the client with admin privileges. Weird that after installing on the first run it'll work without admin privileges though.
Should probably make the client prompt for windows admin privileges?