Difference between revisions of "VPN"
Computer1up (talk | contribs) (→add OpenVPN connection) |
m (made inline image smaller) |
||
(One intermediate revision by the same user not shown) | |||
Line 20: | Line 20: | ||
* select ''Import a saved VPN configuration...'' and click ''Create...'' | * select ''Import a saved VPN configuration...'' and click ''Create...'' | ||
* select the downloaded ackspace.ovpn file | * select the downloaded ackspace.ovpn file | ||
− | * type in your ''User name'' and given ''Password'' and click ''Save'' | + | * type in your ''User name'' (without <code>@ackspace.nl</code>) and given ''Password'' and click ''Save'' |
* close all remaining network dialogs | * close all remaining network dialogs | ||
Line 27: | Line 27: | ||
* go to ''VPN connections'' and click ''ackspace'' | * go to ''VPN connections'' and click ''ackspace'' | ||
− | now, go to [[LDAP#Reset_password]] to update your credentials | + | now, go to [[LDAP#Reset_password]] to update your credentials if you haven't done yet |
+ | |||
+ | === autoconnect === | ||
+ | If you're using [[spacenet]] on a remote (untrusted) location, it's a good idea to use this VPN on top of it. | ||
+ | You can do this automatically by: | ||
+ | * click on the network icon | ||
+ | * click ''Edit Connections...'' | ||
+ | * doubleclick '''spacenet''' | ||
+ | * go to tab ''General'' | ||
+ | * check ''Automatically connect to VPN'' | ||
+ | * select '''ackspace''' | ||
+ | * click ''Save'' | ||
+ | |||
+ | [[Image:auto_vpn.png|400px]] | ||
+ | |||
+ | === troubleshooting === | ||
+ | If you can't connect to the VPN ("blinking" padlock), run <code>openvpn --config ackspace.ovpn</code> from the command line, fill in the username and password when asked, and check the following: | ||
+ | |||
+ | ==== Auth failed ==== | ||
+ | us=317651 AUTH: Received control message: AUTH_FAILED | ||
+ | us=318004 TCP/UDP: Closing socket | ||
+ | us=318137 SIGTERM[soft,auth-failure] received, process exiting | ||
+ | Check your username (don't add <code>@ackspace.nl</code>) and (provided) password | ||
+ | |||
+ | ==== Sequence Completed ==== | ||
+ | us=840388 /sbin/ip route add .... | ||
+ | us=848238 /sbin/ip route add 192.168.1.0/24 via 10.8.0.1 | ||
+ | us=851289 Initialization Sequence Completed | ||
+ | (still running) | ||
+ | Your VPN connection now works, check if the network manager works (try and logout and in again) | ||
+ | |||
+ | ==== Operation not permitted ==== | ||
+ | us=407214 ERROR: Cannot ioctl TUNSETIFF tun: Operation not permitted (errno=1) | ||
+ | us=407251 Exiting due to fatal error | ||
+ | run the same command with <code>sudo</code> | ||
Line 47: | Line 81: | ||
* right click the OpenVPN GUI tray icon | * right click the OpenVPN GUI tray icon | ||
* click on ''Connect'' | * click on ''Connect'' | ||
− | * type in your ''User name'' and given ''Password'' and click ''Ok'' | + | * type in your ''User name'' (without <code>@ackspace.nl</code>) and given ''Password'' and click ''Ok'' |
− | now, go to [[LDAP#Reset_password]] to update your credentials | + | now, go to [[LDAP#Reset_password]] to update your credentials if you haven't done yet |
Latest revision as of 16:46, 6 February 2021
Contents
Debian / Ubuntu / Ubuntu Mate
Information stolen from here
install OpenVPN
sudo apt-get update sudo apt-get install network-manager-openvpn network-manager network-manager-gnome network-manager-openvpn-gnome
enable Network Manager
gksudo pluma /etc/NetworkManager/NetworkManager.conf
(Mate edition) orgksudo gedit /etc/NetworkManager/NetworkManager.conf
(GNOME version)- Make sure that
managed=true
- logout and log in again
add OpenVPN connection
- download and extract ackspace.ovpn.7z
- click the network icon
- click on Edit Connections...
- click on Add
- select Import a saved VPN configuration... and click Create...
- select the downloaded ackspace.ovpn file
- type in your User name (without
@ackspace.nl
) and given Password and click Save - close all remaining network dialogs
connect to OpenVPN
- click the network icon
- go to VPN connections and click ackspace
now, go to LDAP#Reset_password to update your credentials if you haven't done yet
autoconnect
If you're using spacenet on a remote (untrusted) location, it's a good idea to use this VPN on top of it. You can do this automatically by:
- click on the network icon
- click Edit Connections...
- doubleclick spacenet
- go to tab General
- check Automatically connect to VPN
- select ackspace
- click Save
troubleshooting
If you can't connect to the VPN ("blinking" padlock), run openvpn --config ackspace.ovpn
from the command line, fill in the username and password when asked, and check the following:
Auth failed
us=317651 AUTH: Received control message: AUTH_FAILED us=318004 TCP/UDP: Closing socket us=318137 SIGTERM[soft,auth-failure] received, process exiting
Check your username (don't add @ackspace.nl
) and (provided) password
Sequence Completed
us=840388 /sbin/ip route add .... us=848238 /sbin/ip route add 192.168.1.0/24 via 10.8.0.1 us=851289 Initialization Sequence Completed (still running)
Your VPN connection now works, check if the network manager works (try and logout and in again)
Operation not permitted
us=407214 ERROR: Cannot ioctl TUNSETIFF tun: Operation not permitted (errno=1) us=407251 Exiting due to fatal error
run the same command with sudo
windows
Tested on Windows 10
install OpenVPN
- download the latest OpenVPN installer
- run the installer
add OpenVPN connection
- run OpenVPN GUI
- download media:ackspace.ovpn.7z
- right click the OpenVPN GUI tray icon
- click on Import file...
- open the downloaded ackspace.ovpn file, click Ok
connect to OpenVPN
- right click the OpenVPN GUI tray icon
- click on Connect
- type in your User name (without
@ackspace.nl
) and given Password and click Ok
now, go to LDAP#Reset_password to update your credentials if you haven't done yet