Jump to content
Not connected, Your IP: 34.238.143.70
xyus

openvpn client in openvz

Recommended Posts

i got some problem when running openvpn client in openvz ( yes i use vps from vps provider )

 

here's the log

 

Thu Feb  4 02:32:03 2016 OpenVPN 2.3.4 x86_64-pc-linux-gnu [sSL (OpenSSL)] [LZO] [EPOLL] [PKCS11] [MH] [iPv6] built on Dec  1 2014
Thu Feb  4 02:32:03 2016 library versions: OpenSSL 1.0.1k 8 Jan 2015, LZO 2.08
Thu Feb  4 02:32:03 2016 Control Channel Authentication: tls-auth using INLINE static key file
Thu Feb  4 02:32:03 2016 Outgoing Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu Feb  4 02:32:03 2016 Incoming Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu Feb  4 02:32:03 2016 Socket Buffers: R=[133120->131072] S=[133120->131072]
Thu Feb  4 02:32:03 2016 UDPv4 link local: [undef]
Thu Feb  4 02:32:03 2016 UDPv4 link remote: [AF_INET]103.254.153.68:443
Thu Feb  4 02:32:03 2016 TLS: Initial packet from [AF_INET]103.254.153.68:443, sid=f873aa7a 9298d072
Thu Feb  4 02:32:05 2016 VERIFY OK: depth=1, C=IT, ST=IT, L=Perugia, O=airvpn.org, CN=airvpn.org CA, emailAddress=info@airvpn.org
Thu Feb  4 02:32:05 2016 Validating certificate key usage
Thu Feb  4 02:32:05 2016 ++ Certificate has key usage  00a0, expects 00a0
Thu Feb  4 02:32:05 2016 VERIFY KU OK
Thu Feb  4 02:32:05 2016 Validating certificate extended key usage
Thu Feb  4 02:32:05 2016 ++ Certificate has EKU (str) TLS Web Server Authentication, expects TLS Web Server Authentication
Thu Feb  4 02:32:05 2016 VERIFY EKU OK
Thu Feb  4 02:32:05 2016 VERIFY OK: depth=0, C=IT, ST=IT, L=Perugia, O=airvpn.org, CN=server, emailAddress=info@airvpn.org
Thu Feb  4 02:32:09 2016 Data Channel Encrypt: Cipher 'AES-256-CBC' initialized with 256 bit key
Thu Feb  4 02:32:09 2016 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu Feb  4 02:32:09 2016 Data Channel Decrypt: Cipher 'AES-256-CBC' initialized with 256 bit key
Thu Feb  4 02:32:09 2016 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu Feb  4 02:32:09 2016 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 4096 bit RSA
Thu Feb  4 02:32:09 2016 [server] Peer Connection Initiated with [AF_INET]103.254.153.68:443
Thu Feb  4 02:32:11 2016 SENT CONTROL [server]: 'PUSH_REQUEST' (status=1)
Thu Feb  4 02:32:11 2016 PUSH: Received control message: 'PUSH_REPLY,redirect-gateway def1 bypass-dhcp,dhcp-option DNS 10.4.0.1,comp-lzo no,route-gateway 10.4.0.1,topology subnet,ping 10,ping-restart 60,ifconfig 10.4.18.231 255.255.0.0'
Thu Feb  4 02:32:11 2016 OPTIONS IMPORT: timers and/or timeouts modified
Thu Feb  4 02:32:11 2016 OPTIONS IMPORT: LZO parms modified
Thu Feb  4 02:32:11 2016 OPTIONS IMPORT: --ifconfig/up options modified
Thu Feb  4 02:32:11 2016 OPTIONS IMPORT: route options modified
Thu Feb  4 02:32:11 2016 OPTIONS IMPORT: route-related options modified
Thu Feb  4 02:32:11 2016 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified
Thu Feb  4 02:32:11 2016 ROUTE_GATEWAY ON_LINK IFACE=venet0 HWADDR=00:00:00:00:00:00
Thu Feb  4 02:32:11 2016 TUN/TAP device tun0 opened
Thu Feb  4 02:32:11 2016 TUN/TAP TX queue length set to 100
Thu Feb  4 02:32:11 2016 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Thu Feb  4 02:32:11 2016 /sbin/ip link set dev tun0 up mtu 1500
Thu Feb  4 02:32:11 2016 /sbin/ip addr add dev tun0 10.4.18.231/16 broadcast 10.4.255.255
Thu Feb  4 02:32:17 2016 /sbin/ip route add 103.254.153.68/32 via 0.0.0.0
RTNETLINK answers: No such device
Thu Feb  4 02:32:17 2016 ERROR: Linux route add command failed: external program exited with error status: 2
Thu Feb  4 02:32:17 2016 /sbin/ip route add 0.0.0.0/1 via 10.4.0.1
Thu Feb  4 02:32:17 2016 /sbin/ip route add 128.0.0.0/1 via 10.4.0.1
Thu Feb  4 02:32:17 2016 Initialization Sequence Completed
Thu Feb  4 02:33:11 2016 [server] Inactivity timeout (--ping-restart), restarting
Thu Feb  4 02:33:11 2016 SIGUSR1[soft,ping-restart] received, process restarting

 

 

and result for if config and route -e

 

 

ifconfig
 

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:3478743 errors:0 dropped:0 overruns:0 frame:0
TX packets:3478743 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:27925379432 (26.0 GiB) TX bytes:27925379432 (26.0 GiB)
 
tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:10.4.18.231 P-t-P:10.4.18.231 Mask:255.255.0.0
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:1593242 errors:0 dropped:1591364 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 TX bytes:2388504630 (2.2 GiB)
 
venet0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:127.0.0.2 P-t-P:127.0.0.2 Bcast:0.0.0.0 Mask:255.255.255.255
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
RX packets:566926339 errors:0 dropped:0 overruns:0 frame:0
TX packets:745983612 errors:0 dropped:535 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:418499861274 (389.7 GiB) TX bytes:875112015177 (815.0 GiB)
 
venet0:0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:185.69.xx.xxx P-t-P:185.69.xx.xxx Bcast:185.69.xx.xxx Mask:255.255.255.255
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
 

Destination Gateway Genmask Flags MSS Window irtt Iface
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface                                                        
10.4.0.0        *                           255.255.0.0     U         0              0          0 tun0                                                         
default         10.4.0.1                128.0.0.0         UG      0              0          0 tun0                                                         
128.0.0.0       10.4.0.1             128.0.0.0          UG     0              0          0 tun0                                                         
default         *                             0.0.0.0              U        0              0          0 venet0                                                     

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Security Check
    Play CAPTCHA Audio
    Refresh Image

×
×
  • Create New...