[SOLVED] Linux ifconfig failed: external program exited
Posted: Fri Apr 26, 2013 7:34 pm
Hi everyone
To start, I'll say that I'm a bit new in this VPN thing, and my problem is probably a stupid question, and easy to solve, but anyway, I'm here to learn, so I'll go on.
My university offers a VPN service to access de local net, and I'd like to use this service to create what I read is called 'tunnel' and thus gain access, via ssh, to the computer in my office, so I can work from home (or really from anywhere).
Thing is, from my university web, they give certain instructions in order to connect via VPN. The instructions may be a bit simple, and there are no solutions for possible problems, buuut...
The first thing they're saying is that I need to download two files: one config file, and one certificate.
And then, once the VPN is installed in my laptop, I have to enter the following command (I'm using Ubuntu 12.04):
'openvpn --config <config_file> --ca <certificate_file>'
Obviously, where it says 'config file' and 'certificate file' I substitute the path and the name of the files (although, just to make things easier, I go inside the directory where this files are, and I simply write the files' names).
Well, once I enter the previous command, I get the following output:
Fri Apr 26 21:10:47 2013 WARNING: Make sure you understand the semantics of --tls-remote before using it (see the man page).
Fri Apr 26 21:10:47 2013 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Fri Apr 26 21:10:47 2013 LZO compression initialized
Fri Apr 26 21:10:47 2013 Control Channel MTU parms [ L:1542 D:138 EF:38 EB:0 ET:0 EL:0 ]
Fri Apr 26 21:10:47 2013 Socket Buffers: R=[229376->131072] S=[229376->131072]
Fri Apr 26 21:10:47 2013 Data Channel MTU parms [ L:1542 D:1450 EF:42 EB:135 ET:0 EL:0 AF:3/1 ]
Fri Apr 26 21:10:47 2013 Local Options hash (VER=V4): '41690919'
Fri Apr 26 21:10:47 2013 Expected Remote Options hash (VER=V4): '530fdded'
Fri Apr 26 21:10:47 2013 UDPv4 link local: [undef]
Fri Apr 26 21:10:47 2013 UDPv4 link remote: [AF_INET]130.206.31.230:1194
Fri Apr 26 21:10:47 2013 TLS: Initial packet from [AF_INET]130.206.31.230:1194, sid=a0bbf5f9 e6845359
Fri Apr 26 21:10:48 2013 VERIFY OK: depth=2, /CN=UIB_CA/ST=IB/C=ES/emailAddress=xcti@uib.es/O=Universitat_de_les_Illes_Balears/OU=CTI_Centre_de_Tecnologies_de_la_Informaci_xC3_xB3
Fri Apr 26 21:10:48 2013 VERIFY OK: depth=1, /CN=UIB_Network_CA/ST=IB/C=ES/emailAddress=xcti@uib.es/O=UIB/OU=CTI_Area_de_Xarxes_i_Comunicacions
Fri Apr 26 21:10:48 2013 Validating certificate key usage
Fri Apr 26 21:10:48 2013 ++ Certificate has key usage 00a0, expects 00a0
Fri Apr 26 21:10:48 2013 VERIFY KU OK
Fri Apr 26 21:10:48 2013 Validating certificate extended key usage
Fri Apr 26 21:10:48 2013 ++ Certificate has EKU (str) TLS Web Server Authentication, expects TLS Web Server Authentication
Fri Apr 26 21:10:48 2013 VERIFY EKU OK
Fri Apr 26 21:10:48 2013 VERIFY X509NAME OK: /CN=sonvich.uib.es/O=UIB/C=ES
Fri Apr 26 21:10:48 2013 VERIFY OK: depth=0, /CN=sonvich.uib.es/O=UIB/C=ES
Fri Apr 26 21:10:48 2013 Data Channel Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
Fri Apr 26 21:10:48 2013 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Fri Apr 26 21:10:48 2013 Data Channel Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
Fri Apr 26 21:10:48 2013 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Fri Apr 26 21:10:48 2013 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 2048 bit RSA
Fri Apr 26 21:10:48 2013 [sonvich.uib.es] Peer Connection Initiated with [AF_INET]130.206.31.230:1194
Fri Apr 26 21:10:50 2013 SENT CONTROL [sonvich.uib.es]: 'PUSH_REQUEST' (status=1)
Fri Apr 26 21:10:50 2013 PUSH: Received control message: 'PUSH_REPLY,route-gateway 10.150.0.13,redirect-gateway def1 bypass-dhcp,dhcp-option DNS 130.206.33.1,ping 10,ping-restart 60,ifconfig 10.150.98.6 255.255.0.0'
Fri Apr 26 21:10:50 2013 OPTIONS IMPORT: timers and/or timeouts modified
Fri Apr 26 21:10:50 2013 OPTIONS IMPORT: --ifconfig/up options modified
Fri Apr 26 21:10:50 2013 OPTIONS IMPORT: route options modified
Fri Apr 26 21:10:50 2013 OPTIONS IMPORT: route-related options modified
Fri Apr 26 21:10:50 2013 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified
Fri Apr 26 21:10:50 2013 ROUTE default_gateway=192.168.1.1
Fri Apr 26 21:10:50 2013 Note: Cannot ioctl TUNSETIFF tun: Operation not permitted (errno=1)
Fri Apr 26 21:10:50 2013 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Fri Apr 26 21:10:50 2013 /sbin/ifconfig 10.150.98.6 netmask 255.255.0.0 mtu 1500 broadcast 10.150.255.255
SIOCSIFADDR: Permission denied
: ERROR while getting interface flags: No such device
SIOCSIFNETMASK: Permission denied
SIOCSIFMTU: Operation not permitted
SIOCSIFBRDADDR: Permission denied
: ERROR while getting interface flags: No such device
Fri Apr 26 21:10:50 2013 Linux ifconfig failed: external program exited with error status: 255
Fri Apr 26 21:10:50 2013 Exiting
And it goes back to the prompt.
And, to say truth, I'm as lost as an octopus in a garage (as we say in Spain), because I don't have any idea about where the problem could be...
EDIT: Sorry I wrote it in Spanish! I dont know why but my head messed up and made me think this was a Spanish forum!!! xD
To start, I'll say that I'm a bit new in this VPN thing, and my problem is probably a stupid question, and easy to solve, but anyway, I'm here to learn, so I'll go on.
My university offers a VPN service to access de local net, and I'd like to use this service to create what I read is called 'tunnel' and thus gain access, via ssh, to the computer in my office, so I can work from home (or really from anywhere).
Thing is, from my university web, they give certain instructions in order to connect via VPN. The instructions may be a bit simple, and there are no solutions for possible problems, buuut...
The first thing they're saying is that I need to download two files: one config file, and one certificate.
And then, once the VPN is installed in my laptop, I have to enter the following command (I'm using Ubuntu 12.04):
'openvpn --config <config_file> --ca <certificate_file>'
Obviously, where it says 'config file' and 'certificate file' I substitute the path and the name of the files (although, just to make things easier, I go inside the directory where this files are, and I simply write the files' names).
Well, once I enter the previous command, I get the following output:
Fri Apr 26 21:10:47 2013 WARNING: Make sure you understand the semantics of --tls-remote before using it (see the man page).
Fri Apr 26 21:10:47 2013 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Fri Apr 26 21:10:47 2013 LZO compression initialized
Fri Apr 26 21:10:47 2013 Control Channel MTU parms [ L:1542 D:138 EF:38 EB:0 ET:0 EL:0 ]
Fri Apr 26 21:10:47 2013 Socket Buffers: R=[229376->131072] S=[229376->131072]
Fri Apr 26 21:10:47 2013 Data Channel MTU parms [ L:1542 D:1450 EF:42 EB:135 ET:0 EL:0 AF:3/1 ]
Fri Apr 26 21:10:47 2013 Local Options hash (VER=V4): '41690919'
Fri Apr 26 21:10:47 2013 Expected Remote Options hash (VER=V4): '530fdded'
Fri Apr 26 21:10:47 2013 UDPv4 link local: [undef]
Fri Apr 26 21:10:47 2013 UDPv4 link remote: [AF_INET]130.206.31.230:1194
Fri Apr 26 21:10:47 2013 TLS: Initial packet from [AF_INET]130.206.31.230:1194, sid=a0bbf5f9 e6845359
Fri Apr 26 21:10:48 2013 VERIFY OK: depth=2, /CN=UIB_CA/ST=IB/C=ES/emailAddress=xcti@uib.es/O=Universitat_de_les_Illes_Balears/OU=CTI_Centre_de_Tecnologies_de_la_Informaci_xC3_xB3
Fri Apr 26 21:10:48 2013 VERIFY OK: depth=1, /CN=UIB_Network_CA/ST=IB/C=ES/emailAddress=xcti@uib.es/O=UIB/OU=CTI_Area_de_Xarxes_i_Comunicacions
Fri Apr 26 21:10:48 2013 Validating certificate key usage
Fri Apr 26 21:10:48 2013 ++ Certificate has key usage 00a0, expects 00a0
Fri Apr 26 21:10:48 2013 VERIFY KU OK
Fri Apr 26 21:10:48 2013 Validating certificate extended key usage
Fri Apr 26 21:10:48 2013 ++ Certificate has EKU (str) TLS Web Server Authentication, expects TLS Web Server Authentication
Fri Apr 26 21:10:48 2013 VERIFY EKU OK
Fri Apr 26 21:10:48 2013 VERIFY X509NAME OK: /CN=sonvich.uib.es/O=UIB/C=ES
Fri Apr 26 21:10:48 2013 VERIFY OK: depth=0, /CN=sonvich.uib.es/O=UIB/C=ES
Fri Apr 26 21:10:48 2013 Data Channel Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
Fri Apr 26 21:10:48 2013 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Fri Apr 26 21:10:48 2013 Data Channel Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
Fri Apr 26 21:10:48 2013 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Fri Apr 26 21:10:48 2013 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 2048 bit RSA
Fri Apr 26 21:10:48 2013 [sonvich.uib.es] Peer Connection Initiated with [AF_INET]130.206.31.230:1194
Fri Apr 26 21:10:50 2013 SENT CONTROL [sonvich.uib.es]: 'PUSH_REQUEST' (status=1)
Fri Apr 26 21:10:50 2013 PUSH: Received control message: 'PUSH_REPLY,route-gateway 10.150.0.13,redirect-gateway def1 bypass-dhcp,dhcp-option DNS 130.206.33.1,ping 10,ping-restart 60,ifconfig 10.150.98.6 255.255.0.0'
Fri Apr 26 21:10:50 2013 OPTIONS IMPORT: timers and/or timeouts modified
Fri Apr 26 21:10:50 2013 OPTIONS IMPORT: --ifconfig/up options modified
Fri Apr 26 21:10:50 2013 OPTIONS IMPORT: route options modified
Fri Apr 26 21:10:50 2013 OPTIONS IMPORT: route-related options modified
Fri Apr 26 21:10:50 2013 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified
Fri Apr 26 21:10:50 2013 ROUTE default_gateway=192.168.1.1
Fri Apr 26 21:10:50 2013 Note: Cannot ioctl TUNSETIFF tun: Operation not permitted (errno=1)
Fri Apr 26 21:10:50 2013 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Fri Apr 26 21:10:50 2013 /sbin/ifconfig 10.150.98.6 netmask 255.255.0.0 mtu 1500 broadcast 10.150.255.255
SIOCSIFADDR: Permission denied
: ERROR while getting interface flags: No such device
SIOCSIFNETMASK: Permission denied
SIOCSIFMTU: Operation not permitted
SIOCSIFBRDADDR: Permission denied
: ERROR while getting interface flags: No such device
Fri Apr 26 21:10:50 2013 Linux ifconfig failed: external program exited with error status: 255
Fri Apr 26 21:10:50 2013 Exiting
And it goes back to the prompt.
And, to say truth, I'm as lost as an octopus in a garage (as we say in Spain), because I don't have any idea about where the problem could be...
EDIT: Sorry I wrote it in Spanish! I dont know why but my head messed up and made me think this was a Spanish forum!!! xD