VPN doesn't work. Need help

This forum is for admins who are looking to build or expand their OpenVPN setup.

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.
Post Reply
User avatar
Silensio
OpenVpn Newbie
Posts: 6
Joined: Fri Feb 15, 2013 5:58 pm

VPN doesn't work. Need help

Post by Silensio » Fri Feb 15, 2013 6:13 pm

Hi buddies! I have tried to make the openvpn works about two days. I bought VPN server at vpntunnel . com . So I have no access to server settings, but these guys provide some guides for each OS. I use Ubuntu 12.04, so I made all as it described at the guide, I download certificates, put 'em at /etc/openvpn/keys and configration files for VPN, put 'em at /etc/openvpn .

Here is a openvpn-Swe.conf:

Code: Select all

float
client
dev tun
proto udp
nobind

; CERT
ca keys/ca1.crt
ns-cert-type server
cipher BF-CBC

; HOST
remote-random
remote jenny.vpntunnel.se 7001
remote jenny.vpntunnel.se 7002
remote jenny.vpntunnel.se 7003
remote jenny.vpntunnel.se 7004

resolv-retry infinite

; AUTH
auth-user-pass
auth-nocache
persist-key
persist-tun

comp-lzo
verb 1
And after trying to connect using openvpn:
openvpn --config openvpn-Swe.conf --verb 6

I have the following output:

Code: Select all

..cut something after authorization..
......
Fri Feb 15 21:56:02 2013 us=265029 SENT CONTROL [server]: 'PUSH_REQUEST' (status=1)
Fri Feb 15 21:56:02 2013 us=265157 UDPv4 WRITE [104] to [AF_INET]178.73.212.245:7004: P_CONTROL_V1 kid=0 [ ] pid=12 DATA len=90
Fri Feb 15 21:56:02 2013 us=281252 UDPv4 READ [22] from [AF_INET]178.73.212.245:7004: P_ACK_V1 kid=0 [ 12 ]
Fri Feb 15 21:56:02 2013 us=281384 UDPv4 READ [114] from [AF_INET]178.73.212.245:7004: P_CONTROL_V1 kid=0 [ ] pid=42 DATA len=100
Fri Feb 15 21:56:02 2013 us=281494 UDPv4 WRITE [22] to [AF_INET]178.73.212.245:7004: P_ACK_V1 kid=0 [ 42 ]
Fri Feb 15 21:56:02 2013 us=281584 UDPv4 READ [114] from [AF_INET]178.73.212.245:7004: P_CONTROL_V1 kid=0 [ ] pid=43 DATA len=100
Fri Feb 15 21:56:02 2013 us=281649 UDPv4 WRITE [22] to [AF_INET]178.73.212.245:7004: P_ACK_V1 kid=0 [ 43 ]
Fri Feb 15 21:56:02 2013 us=281718 UDPv4 READ [16] from [AF_INET]178.73.212.245:7004: P_CONTROL_V1 kid=0 [ ] pid=44 DATA len=2
Fri Feb 15 21:56:02 2013 us=281870 PUSH: Received control message: 'PUSH_REPLY,dhcp-option DNS 80.67.0.2,dhcp-option DNS 91.213.246.2,redirect-gateway def1,route-gateway 5.254.141.97,topology subnet,ping 10,ping-restart 160'
Fri Feb 15 21:56:02 2013 us=282017 OPTIONS IMPORT: timers and/or timeouts modified
Fri Feb 15 21:56:02 2013 us=282044 OPTIONS IMPORT: --ifconfig/up options modified
Fri Feb 15 21:56:02 2013 us=282067 OPTIONS IMPORT: route options modified
Fri Feb 15 21:56:02 2013 us=282089 OPTIONS IMPORT: route-related options modified
Fri Feb 15 21:56:02 2013 us=282111 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified
Fri Feb 15 21:56:02 2013 us=282376 ROUTE default_gateway=93.100.126.1
Fri Feb 15 21:56:02 2013 us=285892 TUN/TAP device tun0 opened
Fri Feb 15 21:56:02 2013 us=285976 TUN/TAP TX queue length set to 100
Fri Feb 15 21:56:02 2013 us=286120 /sbin/route add -net 178.73.212.245 netmask 255.255.255.255 gw 93.100.126.1
Fri Feb 15 21:56:02 2013 us=293833 /sbin/route add -net 0.0.0.0 netmask 128.0.0.0 gw 5.254.141.97
SIOCADDRT: No such process
Fri Feb 15 21:56:02 2013 us=295506 ERROR: Linux route add command failed: external program exited with error status: 7
Fri Feb 15 21:56:02 2013 us=295554 /sbin/route add -net 128.0.0.0 netmask 128.0.0.0 gw 5.254.141.97
SIOCADDRT: No such process
Fri Feb 15 21:56:02 2013 us=298285 ERROR: Linux route add command failed: external program exited with error status: 7
Fri Feb 15 21:56:02 2013 us=298462 Initialization Sequence Completed
Fri Feb 15 21:56:02 2013 us=298491 UDPv4 WRITE [22] to [AF_INET]178.73.212.245:7004: P_ACK_V1 kid=0 [ 44 ]
I'm not sure all the things go right, but I only point at the error:
ERROR: Linux route add command failed: external program exited with error status: 7

But at the end, I have a success message: Initialization Sequence Completed

but I have no http connection working . After Ctrl + C all works as before, so something went wrong :(

Do you have any ideas, please?

User avatar
maikcat
Forum Team
Posts: 4200
Joined: Wed Jan 12, 2011 9:23 am
Location: Athens,Greece
Contact:

Re: VPN doesn't work. Need help

Post by maikcat » Sat Feb 16, 2013 9:21 am

are you trying to start openvpn as root?

Michael.
Amiga 500 , Zx +2 owner
Long live Dino Dini (Kick off 2 Creator)

Inflammable means flammable? (Dr Nick Riviera,Simsons Season13)

"objects in mirror are losing"

User avatar
Silensio
OpenVpn Newbie
Posts: 6
Joined: Fri Feb 15, 2013 5:58 pm

Re: VPN doesn't work. Need help

Post by Silensio » Sat Feb 16, 2013 9:43 am

maikcat wrote:are you trying to start openvpn as root?

Michael.
Yes, sure. I doing all stuff as root.

User avatar
maikcat
Forum Team
Posts: 4200
Joined: Wed Jan 12, 2011 9:23 am
Location: Athens,Greece
Contact:

Re: VPN doesn't work. Need help

Post by maikcat » Sat Feb 16, 2013 11:20 am

please post complete log file (verb 3)

what ip your tun interface after comes up?

Michael.
Amiga 500 , Zx +2 owner
Long live Dino Dini (Kick off 2 Creator)

Inflammable means flammable? (Dr Nick Riviera,Simsons Season13)

"objects in mirror are losing"

User avatar
Silensio
OpenVpn Newbie
Posts: 6
Joined: Fri Feb 15, 2013 5:58 pm

Re: VPN doesn't work. Need help

Post by Silensio » Sat Feb 16, 2013 12:57 pm

maikcat wrote:please post complete log file (verb 3)

Code: Select all

root@root:/etc/openvpn# openvpn --config openvpn-Swe.conf --verb 3
Sat Feb 16 16:50:13 2013 OpenVPN 2.2.1 i686-linux-gnu [SSL] [LZO2] [EPOLL] [PKCS11] [eurephia] [MH] [PF_INET6] [IPv6 payload 20110424-2 (2.2RC2)] built on Mar 30 2012
Enter Auth Username:mylogin
Enter Auth Password:
Sat Feb 16 16:50:18 2013 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Sat Feb 16 16:50:18 2013 LZO compression initialized
Sat Feb 16 16:50:18 2013 Control Channel MTU parms [ L:1542 D:138 EF:38 EB:0 ET:0 EL:0 ]
Sat Feb 16 16:50:18 2013 Socket Buffers: R=[163840->131072] S=[163840->131072]
Sat Feb 16 16:50:18 2013 RESOLVE: NOTE: jenny.vpntunnel.se resolves to 5 addresses
Sat Feb 16 16:50:18 2013 Data Channel MTU parms [ L:1542 D:1450 EF:42 EB:135 ET:0 EL:0 AF:3/1 ]
Sat Feb 16 16:50:18 2013 Local Options hash (VER=V4): '41690919'
Sat Feb 16 16:50:18 2013 Expected Remote Options hash (VER=V4): '530fdded'
Sat Feb 16 16:50:18 2013 UDPv4 link local: [undef]
Sat Feb 16 16:50:18 2013 UDPv4 link remote: [AF_INET]178.73.212.245:7001
Sat Feb 16 16:50:18 2013 TLS: Initial packet from [AF_INET]178.73.212.245:7001, sid=620f377b a8d6b116
Sat Feb 16 16:50:18 2013 VERIFY OK: depth=1, /C=SE/ST=Stockholm/L=Stockholm/O=Vpntunnel.se/OU=changeme/CN=changeme/name=changeme/emailAddress=info@vpntunnel.se
Sat Feb 16 16:50:18 2013 VERIFY OK: nsCertType=SERVER
Sat Feb 16 16:50:18 2013 VERIFY OK: depth=0, /C=SE/ST=Stockholm/L=Stockholm/O=vpntunnel.se/OU=changeme/CN=server/name=changeme/emailAddress=info@vpntunnel.se
Sat Feb 16 16:50:18 2013 Data Channel Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
Sat Feb 16 16:50:18 2013 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Sat Feb 16 16:50:18 2013 Data Channel Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
Sat Feb 16 16:50:18 2013 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Sat Feb 16 16:50:18 2013 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 2048 bit RSA
Sat Feb 16 16:50:18 2013 [server] Peer Connection Initiated with [AF_INET]178.73.212.245:7001
Sat Feb 16 16:50:20 2013 SENT CONTROL [server]: 'PUSH_REQUEST' (status=1)
Sat Feb 16 16:50:20 2013 PUSH: Received control message: 'PUSH_REPLY,dhcp-option DNS 80.67.0.2,dhcp-option DNS 91.213.246.2,redirect-gateway def1,route-gateway 5.254.141.1,topology subnet,ping 10,ping-restart 160,ifconfig 5.254.141.17 255.255.255.224'
Sat Feb 16 16:50:20 2013 OPTIONS IMPORT: timers and/or timeouts modified
Sat Feb 16 16:50:20 2013 OPTIONS IMPORT: --ifconfig/up options modified
Sat Feb 16 16:50:20 2013 OPTIONS IMPORT: route options modified
Sat Feb 16 16:50:20 2013 OPTIONS IMPORT: route-related options modified
Sat Feb 16 16:50:20 2013 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified
Sat Feb 16 16:50:20 2013 ROUTE default_gateway=93.100.126.1
Sat Feb 16 16:50:20 2013 TUN/TAP device tun0 opened
Sat Feb 16 16:50:20 2013 TUN/TAP TX queue length set to 100
Sat Feb 16 16:50:20 2013 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Sat Feb 16 16:50:20 2013 /sbin/ifconfig tun0 5.254.141.17 netmask 255.255.255.224 mtu 1500 broadcast 5.254.141.31
Sat Feb 16 16:50:20 2013 /sbin/route add -net 178.73.212.245 netmask 255.255.255.255 gw 93.100.126.1
Sat Feb 16 16:50:20 2013 /sbin/route add -net 0.0.0.0 netmask 128.0.0.0 gw 5.254.141.1
Sat Feb 16 16:50:20 2013 /sbin/route add -net 128.0.0.0 netmask 128.0.0.0 gw 5.254.141.1
Sat Feb 16 16:50:20 2013 Initialization Sequence Completed

...Ctrl + C here....

Sat Feb 16 16:50:27 2013 event_wait : Interrupted system call (code=4)
Sat Feb 16 16:50:27 2013 TCP/UDP: Closing socket
Sat Feb 16 16:50:27 2013 /sbin/route del -net 178.73.212.245 netmask 255.255.255.255
Sat Feb 16 16:50:27 2013 /sbin/route del -net 0.0.0.0 netmask 128.0.0.0
Sat Feb 16 16:50:27 2013 /sbin/route del -net 128.0.0.0 netmask 128.0.0.0
Sat Feb 16 16:50:27 2013 Closing TUN/TAP interface
Sat Feb 16 16:50:27 2013 /sbin/ifconfig tun0 0.0.0.0
Sat Feb 16 16:50:28 2013 SIGINT[hard,] received, process exiting
maikcat wrote: what ip your tun interface after comes up?

Michael.
Sorry I don't know how to check. If you mean ifconfig tun0 , it returns:

Code: Select all

tun0: error fetching interface information: Device not found

User avatar
maikcat
Forum Team
Posts: 4200
Joined: Wed Jan 12, 2011 9:23 am
Location: Athens,Greece
Contact:

Re: VPN doesn't work. Need help

Post by maikcat » Sat Feb 16, 2013 1:15 pm

Sat Feb 16 16:50:20 2013 TUN/TAP device tun0 opened
Sat Feb 16 16:50:20 2013 TUN/TAP TX queue length set to 100
Sat Feb 16 16:50:20 2013 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Sat Feb 16 16:50:20 2013 /sbin/ifconfig tun0 5.254.141.17 netmask 255.255.255.224 mtu 1500 broadcast 5.254.141.31
Sat Feb 16 16:50:20 2013 /sbin/route add -net 178.73.212.245 netmask 255.255.255.255 gw 93.100.126.1
Sat Feb 16 16:50:20 2013 /sbin/route add -net 0.0.0.0 netmask 128.0.0.0 gw 5.254.141.1
Sat Feb 16 16:50:20 2013 /sbin/route add -net 128.0.0.0 netmask 128.0.0.0 gw 5.254.141.1
Sat Feb 16 16:50:20 2013 Initialization Sequence Completed
in the above log there arent any errors....

are you sure that is not working?
Sorry I don't know how to check. If you mean ifconfig tun0 , it returns:
try starting openvpn as a service and run ifconfig tun0 again..


Michael.
Amiga 500 , Zx +2 owner
Long live Dino Dini (Kick off 2 Creator)

Inflammable means flammable? (Dr Nick Riviera,Simsons Season13)

"objects in mirror are losing"

User avatar
Silensio
OpenVpn Newbie
Posts: 6
Joined: Fri Feb 15, 2013 5:58 pm

Re: VPN doesn't work. Need help

Post by Silensio » Sat Feb 16, 2013 1:45 pm

It's doesn't work either. Though I have no 404 errors, but my ip address didn't changed :(

Code: Select all

root@root:/etc/openvpn# ifconfig tun0
tun0      Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  
          POINTOPOINT NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

User avatar
maikcat
Forum Team
Posts: 4200
Joined: Wed Jan 12, 2011 9:23 am
Location: Athens,Greece
Contact:

Re: VPN doesn't work. Need help

Post by maikcat » Mon Feb 18, 2013 1:15 pm

logs show that tun interfaces should come up with ip
Sat Feb 16 16:50:20 2013 /sbin/ifconfig tun0 5.254.141.17 netmask 255.255.255.224 mtu 1500 broadcast 5.254.141.31

but your ifconfig output shows no ip for tun interface... :?

cant imagine what goes wrong...

because i am not ubuntu expert,is selinux part of ubuntu?

Michael.
Amiga 500 , Zx +2 owner
Long live Dino Dini (Kick off 2 Creator)

Inflammable means flammable? (Dr Nick Riviera,Simsons Season13)

"objects in mirror are losing"

Douglas
Forum Team
Posts: 285
Joined: Wed Aug 27, 2008 2:41 am

Re: VPN doesn't work. Need help

Post by Douglas » Mon Feb 18, 2013 2:37 pm

Go a bit higher on verb for the logs like verb 5. Obviously something is interfering.

Onthe client, Check around /var/log like messages and syslog to see if there are any errors.

User avatar
Silensio
OpenVpn Newbie
Posts: 6
Joined: Fri Feb 15, 2013 5:58 pm

Re: VPN doesn't work. Need help

Post by Silensio » Mon Feb 18, 2013 4:23 pm

maikcat wrote:logs show that tun interfaces should come up with ip
is selinux part of ubuntu?
Seems yes, both Debian and Ubuntu.
Douglas wrote:Go a bit higher on verb for the logs like verb 5. Obviously something is interfering.

Onthe client, Check around /var/log like messages and syslog to see if there are any errors.
I see nothing special here:

Code: Select all

Enter Auth Password:
Mon Feb 18 20:07:45 2013 us=987080 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Mon Feb 18 20:07:45 2013 us=988667 LZO compression initialized
Mon Feb 18 20:07:45 2013 us=988853 Control Channel MTU parms [ L:1542 D:138 EF:38 EB:0 ET:0 EL:0 ]
Mon Feb 18 20:07:45 2013 us=988952 Socket Buffers: R=[163840->131072] S=[163840->131072]
Mon Feb 18 20:07:45 2013 us=992367 RESOLVE: NOTE: jenny.vpntunnel.se resolves to 5 addresses
Mon Feb 18 20:07:45 2013 us=994108 Data Channel MTU parms [ L:1542 D:1450 EF:42 EB:135 ET:0 EL:0 AF:3/1 ]
Mon Feb 18 20:07:45 2013 us=994229 Local Options String: 'V4,dev-type tun,link-mtu 1542,tun-mtu 1500,proto UDPv4,comp-lzo,cipher BF-CBC,auth SHA1,keysize 128,key-method 2,tls-client'
Mon Feb 18 20:07:45 2013 us=994370 Expected Remote Options String: 'V4,dev-type tun,link-mtu 1542,tun-mtu 1500,proto UDPv4,comp-lzo,cipher BF-CBC,auth SHA1,keysize 128,key-method 2,tls-server'
Mon Feb 18 20:07:45 2013 us=994452 Local Options hash (VER=V4): '41690919'
Mon Feb 18 20:07:45 2013 us=994630 Expected Remote Options hash (VER=V4): '530fdded'
Mon Feb 18 20:07:45 2013 us=994703 UDPv4 link local: [undef]
Mon Feb 18 20:07:45 2013 us=994758 UDPv4 link remote: [AF_INET]178.73.212.242:7003
WRMon Feb 18 20:07:46 2013 us=11003 TLS: Initial packet from [AF_INET]178.73.212.242:7003, sid=4c3e9e13 2591ee57
WWWWRRRWRWRWRWRWRWRWRWRWRWRWRWRWRWRWRWRWRWRWRWRWRWRWRWRWRWRMon Feb 18 20:07:46 2013 us=129365 VERIFY OK: depth=1, /C=SE/ST=Stockholm/L=Stockholm/O=Vpntunnel.se/OU=changeme/CN=changeme/name=changeme/emailAddress=info@vpntunnel.se
Mon Feb 18 20:07:46 2013 us=130764 VERIFY OK: nsCertType=SERVER
Mon Feb 18 20:07:46 2013 us=130797 VERIFY OK: depth=0, /C=SE/ST=Stockholm/L=Stockholm/O=vpntunnel.se/OU=changeme/CN=server/name=changeme/emailAddress=info@vpntunnel.se
WRWRWRWRWRWRWRWRWWWWRRRRWRWRWWWWRRRRWRWRMon Feb 18 20:07:46 2013 us=318699 Data Channel Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
Mon Feb 18 20:07:46 2013 us=318729 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Mon Feb 18 20:07:46 2013 us=318769 Data Channel Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
Mon Feb 18 20:07:46 2013 us=318778 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
WMon Feb 18 20:07:46 2013 us=318800 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 2048 bit RSA
Mon Feb 18 20:07:46 2013 us=318822 [server] Peer Connection Initiated with [AF_INET]178.73.212.242:7003
Mon Feb 18 20:07:48 2013 us=721454 SENT CONTROL [server]: 'PUSH_REQUEST' (status=1)
WRRWRWRMon Feb 18 20:07:48 2013 us=735454 PUSH: Received control message: 'PUSH_REPLY,dhcp-option DNS 80.67.0.2,dhcp-option DNS 91.213.246.2,redirect-gateway def1,route-gateway 5.254.138.65,topology subnet,ping 10,ping-restart 160'
Mon Feb 18 20:07:48 2013 us=735527 OPTIONS IMPORT: timers and/or timeouts modified
Mon Feb 18 20:07:48 2013 us=735536 OPTIONS IMPORT: --ifconfig/up options modified
Mon Feb 18 20:07:48 2013 us=735543 OPTIONS IMPORT: route options modified
Mon Feb 18 20:07:48 2013 us=735549 OPTIONS IMPORT: route-related options modified
Mon Feb 18 20:07:48 2013 us=735555 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified
Mon Feb 18 20:07:48 2013 us=735645 ROUTE default_gateway=93.100.126.1
Mon Feb 18 20:07:48 2013 us=736052 TUN/TAP device tun0 opened
Mon Feb 18 20:07:48 2013 us=736068 TUN/TAP TX queue length set to 100
Mon Feb 18 20:07:48 2013 us=736102 /sbin/route add -net 178.73.212.242 netmask 255.255.255.255 gw 93.100.126.1
Mon Feb 18 20:07:48 2013 us=740711 /sbin/route add -net 0.0.0.0 netmask 128.0.0.0 gw 5.254.138.65
SIOCADDRT: No such process
Mon Feb 18 20:07:48 2013 us=742389 ERROR: Linux route add command failed: external program exited with error status: 7
Mon Feb 18 20:07:48 2013 us=742512 /sbin/route add -net 128.0.0.0 netmask 128.0.0.0 gw 5.254.138.65
SIOCADDRT: No such process
Mon Feb 18 20:07:48 2013 us=744674 ERROR: Linux route add command failed: external program exited with error status: 7
Mon Feb 18 20:07:48 2013 us=744780 Initialization Sequence Completed
WWRWRWRRWRWRWRWRWWRWRRWRWRWRWWRRWWRRWWRWRRW^CMon Feb 18 20:11:26 2013 us=262270 event_wait : Interrupted system call (code=4)
Mon Feb 18 20:11:26 2013 us=263062 TCP/UDP: Closing socket
Mon Feb 18 20:11:26 2013 us=263161 /sbin/route del -net 178.73.212.242 netmask 255.255.255.255
Mon Feb 18 20:11:26 2013 us=266101 /sbin/route del -net 0.0.0.0 netmask 128.0.0.0
SIOCDELRT: No such process
Mon Feb 18 20:11:26 2013 us=269012 ERROR: Linux route delete command failed: external program exited with error status: 7
Mon Feb 18 20:11:26 2013 us=269151 /sbin/route del -net 128.0.0.0 netmask 128.0.0.0
SIOCDELRT: No such process
Mon Feb 18 20:11:26 2013 us=271493 ERROR: Linux route delete command failed: external program exited with error status: 7
Mon Feb 18 20:11:26 2013 us=271603 Closing TUN/TAP interface
Mon Feb 18 20:11:26 2013 us=290987 SIGINT[hard,] received, process exiting
But that's snippet from /var/log/syslog exactly after I entered the password:

Code: Select all

Feb 18 20:07:48 manny NetworkManager[1000]:    SCPlugin-Ifupdown: devices added (path: /sys/devices/virtual/net/tun0, iface: tun0)
Feb 18 20:07:48 manny NetworkManager[1000]:    SCPlugin-Ifupdown: device added (path: /sys/devices/virtual/net/tun0, iface: tun0): no ifupdown configuration found.
I can't figure out what's it means. All I googled about this error is tying with Cisco.

User avatar
maikcat
Forum Team
Posts: 4200
Joined: Wed Jan 12, 2011 9:23 am
Location: Athens,Greece
Contact:

Re: VPN doesn't work. Need help

Post by maikcat » Mon Feb 18, 2013 4:32 pm

for testing,

can you remove network manager?

Michael.
Amiga 500 , Zx +2 owner
Long live Dino Dini (Kick off 2 Creator)

Inflammable means flammable? (Dr Nick Riviera,Simsons Season13)

"objects in mirror are losing"

User avatar
Silensio
OpenVpn Newbie
Posts: 6
Joined: Fri Feb 15, 2013 5:58 pm

Re: VPN doesn't work. Need help

Post by Silensio » Mon Feb 18, 2013 4:56 pm

maikcat wrote:for testing,

can you remove network manager?

Michael.
I just removed :P After /etc/init.d/networking restart all worked as before. Openvpn returns the same:

Code: Select all

Mon Feb 18 20:48:36 2013 us=651822 VERIFY OK: nsCertType=SERVER
Mon Feb 18 20:48:36 2013 us=651855 VERIFY OK: depth=0, /C=SE/ST=Stockholm/L=Stockholm/O=vpntunnel.se/OU=changeme/CN=server/name=changeme/emailAddress=info@vpntunnel.se
WRWRWRWRWRWRWRWRWWWWRRRRWRWRWWWWRRRRWRWRMon Feb 18 20:48:36 2013 us=803771 Data Channel Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
Mon Feb 18 20:48:36 2013 us=803809 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Mon Feb 18 20:48:36 2013 us=803876 Data Channel Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
Mon Feb 18 20:48:36 2013 us=803890 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
WMon Feb 18 20:48:36 2013 us=803924 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 2048 bit RSA
Mon Feb 18 20:48:36 2013 us=803958 [server] Peer Connection Initiated with [AF_INET]178.73.212.245:7002
RRMon Feb 18 20:48:38 2013 us=874651 SENT CONTROL [server]: 'PUSH_REQUEST' (status=1)
WRRWRWRMon Feb 18 20:48:38 2013 us=888414 PUSH: Received control message: 'PUSH_REPLY,dhcp-option DNS 80.67.0.2,dhcp-option DNS 91.213.246.2,redirect-gateway def1,route-gateway 5.254.141.33,topology subnet,ping 10,ping-restart 160,ifconfig 5.254.141.34 255.255.255.224'
Mon Feb 18 20:48:38 2013 us=888511 OPTIONS IMPORT: timers and/or timeouts modified
Mon Feb 18 20:48:38 2013 us=888522 OPTIONS IMPORT: --ifconfig/up options modified
Mon Feb 18 20:48:38 2013 us=888531 OPTIONS IMPORT: route options modified
Mon Feb 18 20:48:38 2013 us=888538 OPTIONS IMPORT: route-related options modified
Mon Feb 18 20:48:38 2013 us=888546 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified
Mon Feb 18 20:48:38 2013 us=888699 ROUTE default_gateway=93.100.126.1
Mon Feb 18 20:48:38 2013 us=889202 TUN/TAP device tun0 opened
Mon Feb 18 20:48:38 2013 us=889220 TUN/TAP TX queue length set to 100
Mon Feb 18 20:48:38 2013 us=889235 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Mon Feb 18 20:48:38 2013 us=889264 /sbin/ifconfig tun0 5.254.141.34 netmask 255.255.255.224 mtu 1500 broadcast 5.254.141.63
Mon Feb 18 20:48:38 2013 us=891633 /sbin/route add -net 178.73.212.245 netmask 255.255.255.255 gw 93.100.126.1
Mon Feb 18 20:48:38 2013 us=893704 /sbin/route add -net 0.0.0.0 netmask 128.0.0.0 gw 5.254.141.33
Mon Feb 18 20:48:38 2013 us=903889 /sbin/route add -net 128.0.0.0 netmask 128.0.0.0 gw 5.254.141.33
Mon Feb 18 20:48:38 2013 us=904684 Initialization Sequence Completed
WrWrWRwrWRwrWRwrWRwrWRwrWRwrWrWRwrWRwrWRwrWRwrWRwrWRwrWRwrWRwrWRwrWRwrWrWRwrWRwrWRwrWRwrWRwrWRwRwrWRwrWrWRwrWRwrWR
Now the error dissappeared from /var/log/syslog:

Code: Select all

Feb 18 20:42:17 manny avahi-daemon[814]: Withdrawing workstation service for tun0.
Feb 18 20:42:28 manny ntpdate[7067]: adjust time server 91.189.94.4 offset -0.063991 sec
Feb 18 20:43:00 manny avahi-daemon[814]: Withdrawing workstation service for tun0.
Feb 18 20:43:57 manny avahi-daemon[814]: Withdrawing workstation service for tun0.
Feb 18 20:46:21 manny avahi-daemon[814]: Withdrawing workstation service for tun0.
but openvpn still doesn't work, my ip is the same... :(

Post Reply