Hello,
I have a windows 2008 R2 64bit server that i pay monthly hosting for and i installed openvpn at the server and client machine windows7 64bit also.
Using the client gui, i am able to connect to the server. However, the IP that it provides me is the servers local ip and not my static IP that was issued. I hope i am stating this clearly?
Instead of my Local client IP changing to the servers ip, it only shows the servers internal network ip and so when i check my ip, it still shows my non-vpn'd Ip address.
Should show for example
162.222.x.x but instead it shows in the gui log as: 10.8.0.6
Sun Nov 30 16:19:24 2014 Initialization Sequence Completed
Sun Nov 30 16:19:24 2014 MANAGEMENT: >STATE:1417335564,CONNECTED,SUCCESS,10.8.0.6,162.222.x.x
I am not sure how to change the server.ovpn settings so it points to my servers static ip address of 162.222.x.x for example.
Thank you for your help
Oh this machine is This is a KVM based windows2008 VPS
here is the server setting
------paste-----
port 1194
proto udp
dev tun
ca "C:\\Program Files\\OpenVPN\\config\\ca.crt"
cert "C:\\Program Files\\OpenVPN\\config\\server.crt"
key "C:\\Program Files\\OpenVPN\\config\\server.key" # This file should be kept secret
dh "C:\\Program Files\\OpenVPN\\config\\dh1024.pem"
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
keepalive 10 120
comp-lzo
max-clients 2
persist-key
persist-tun
status openvpn-status.log
log openvpn.log
verb 3
and the client log after it connects
---paste----
Sun Nov 30 16:19:10 2014 OpenVPN 2.3.5 x86_64-w64-mingw32 [SSL (OpenSSL)] [LZO] [PKCS11] [IPv6] built on Oct 28 2014
Sun Nov 30 16:19:10 2014 library versions: OpenSSL 1.0.1j 15 Oct 2014, LZO 2.05
Sun Nov 30 16:19:10 2014 MANAGEMENT: TCP Socket listening on [AF_INET]127.0.0.1:25340
Sun Nov 30 16:19:10 2014 Need hold release from management interface, waiting...
Sun Nov 30 16:19:10 2014 MANAGEMENT: Client connected from [AF_INET]127.0.0.1:25340
Sun Nov 30 16:19:10 2014 MANAGEMENT: CMD 'state on'
Sun Nov 30 16:19:10 2014 MANAGEMENT: CMD 'log all on'
Sun Nov 30 16:19:10 2014 MANAGEMENT: CMD 'hold off'
Sun Nov 30 16:19:10 2014 MANAGEMENT: CMD 'hold release'
Sun Nov 30 16:19:10 2014 MANAGEMENT: CMD 'proxy NONE '
Sun Nov 30 16:19:12 2014 Socket Buffers: R=[8192->8192] S=[8192->8192]
Sun Nov 30 16:19:12 2014 UDPv4 link local: [undef]
Sun Nov 30 16:19:12 2014 UDPv4 link remote: [AF_INET]162.244.15.107:1194
Sun Nov 30 16:19:12 2014 MANAGEMENT: >STATE:1417335552,WAIT,,,
Sun Nov 30 16:19:12 2014 MANAGEMENT: >STATE:1417335552,AUTH,,,
Sun Nov 30 16:19:12 2014 TLS: Initial packet from [AF_INET]162.244.15.107:1194, sid=39aed912 50c8de4e
Sun Nov 30 16:19:14 2014 VERIFY OK: depth=1, C=US, ST=CA, L=SanFrancisco, O=OpenVPN, OU=none, CN=OpenVPN-CA, name=OpenVPN, emailAddress=
mail@host.domain
Sun Nov 30 16:19:14 2014 VERIFY OK: nsCertType=SERVER
Sun Nov 30 16:19:14 2014 VERIFY OK: depth=0, C=US, ST=CA, L=SanFrancisco, O=OpenVPN, OU=none, CN=server, name=OpenVPN, emailAddress=
mail@host.domain
Sun Nov 30 16:19:16 2014 Data Channel Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
Sun Nov 30 16:19:16 2014 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Sun Nov 30 16:19:16 2014 Data Channel Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
Sun Nov 30 16:19:16 2014 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Sun Nov 30 16:19:16 2014 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 1024 bit RSA
Sun Nov 30 16:19:16 2014 [server] Peer Connection Initiated with [AF_INET]162.244.15.107:1194
Sun Nov 30 16:19:17 2014 MANAGEMENT: >STATE:1417335557,GET_CONFIG,,,
Sun Nov 30 16:19:18 2014 SENT CONTROL [server]: 'PUSH_REQUEST' (status=1)
Sun Nov 30 16:19:19 2014 PUSH: Received control message: 'PUSH_REPLY,route 10.8.0.1,topology net30,ping 10,ping-restart 120,ifconfig 10.8.0.6 10.8.0.5'
Sun Nov 30 16:19:19 2014 OPTIONS IMPORT: timers and/or timeouts modified
Sun Nov 30 16:19:19 2014 OPTIONS IMPORT: --ifconfig/up options modified
Sun Nov 30 16:19:19 2014 OPTIONS IMPORT: route options modified
Sun Nov 30 16:19:19 2014 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Sun Nov 30 16:19:19 2014 MANAGEMENT: >STATE:1417335559,ASSIGN_IP,,10.8.0.6,
Sun Nov 30 16:19:19 2014 open_tun, tt->ipv6=0
Sun Nov 30 16:19:19 2014 TAP-WIN32 device [Local Area Connection 4] opened: \\.\Global\{738B8458-D7F8-4C10-AFDA-90474732F7E0}.tap
Sun Nov 30 16:19:19 2014 TAP-Windows Driver Version 9.9
Sun Nov 30 16:19:19 2014 Notified TAP-Windows driver to set a DHCP IP/netmask of 10.8.0.6/255.255.255.252 on interface {738B8458-D7F8-4C10-AFDA-90474732F7E0} [DHCP-serv: 10.8.0.5, lease-time: 31536000]
Sun Nov 30 16:19:19 2014 Successful ARP Flush on interface [38] {738B8458-D7F8-4C10-AFDA-90474732F7E0}
Sun Nov 30 16:19:24 2014 TEST ROUTES: 1/1 succeeded len=1 ret=1 a=0 u/d=up
Sun Nov 30 16:19:24 2014 MANAGEMENT: >STATE:1417335564,ADD_ROUTES,,,
Sun Nov 30 16:19:24 2014 C:\Windows\system32\route.exe ADD 10.8.0.1 MASK 255.255.255.255 10.8.0.5
Sun Nov 30 16:19:24 2014 ROUTE: route addition failed using CreateIpForwardEntry: One or more arguments are not correct. [status=160 if_index=38]
Sun Nov 30 16:19:24 2014 Route addition via IPAPI failed [adaptive]
Sun Nov 30 16:19:24 2014 Route addition fallback to route.exe
Sun Nov 30 16:19:24 2014 env_block: add PATH=C:\Windows\System32;C:\WINDOWS;C:\WINDOWS\System32\Wbem
Sun Nov 30 16:19:24 2014 Initialization Sequence Completed
Sun Nov 30 16:19:24 2014 MANAGEMENT: >STATE:1417335564,CONNECTED,SUCCESS,10.8.0.6,162.222.x.x