ahen
Member
Posts: 57
Likes: 40
|
Post by ahen on Aug 8, 2021 2:29:38 GMT
I wanted the option of adding openVPN connections to Network Manager, rather than running scripts or installing 3rd party VPN clients.
In Bodhi 6, there are some items that need to be installed to allow this (including openVPN itself).
I did sudo apt install openvpn network-manager-openvpn network-manager-openvpn-gnome
Both Network Manager plugins are needed.
After that, the option of importing a saved .ovpn configuration file was available, with a working save function.
The connection works as expected. A padlock is displayed in the nm tray icon when the VPN is connected, which is nice.
Note that there is no kill switch functionality with this configuration, so if the VPN connection is lost, traffic will revert to your normal network connection.
However, there are many tutorials out there showing how to configure iptables to prevent leaks in that situation.
|
|
|
Post by oblio on Aug 8, 2021 13:32:11 GMT
Sweet! That's pretty nifty; I wonder if this tutorial would make a good wiki or additional information on an existing one? Regardless, thank you for sharing
|
|
nettop
Member
Posts: 1
Likes: 1
|
Post by nettop on Aug 8, 2021 14:02:30 GMT
Thank youu, I was just looking for this and will try now in my old mini pc server using bodhi.
using : nettop i1000 intel atom (very slow using other OS) Bodhi really put a new live for old mini PC
my setup plan for very light home server : 1. openssh for SFTP 2. samba for quick file sharing currently isolated for "home/xxx/Public" folder 3. OpenVPN to connect to free service OpenVPN cloud to access server outside home
I've connected my external HDD (ntfs) and set mount automatically using /etc/fstab to a folder in user folder as some kind of simple NAS
really appreciate for any suggestion and will update for the openvpn client installation
|
|
enigma9o7
Crew Member
 
Posts: 1,210
Likes: 1,213
|
Post by enigma9o7 on Aug 8, 2021 21:31:39 GMT
I use openvpn too, which I setup from network manager, and although I dont remember the details of how I set it up (I probably google searched and followed directions) I checked and indeed have those three packages you suggested installed.
I have it set to connect to VPN automatically, but sometimes (once very month or two) it does sometimes disconnect and use my regular connection; I can tell cuz the little lock icon disappears in system tray. If there was a way to always reconnect (and popup error if it cant or something) that would be nice, but I havent tried iptable tutorials whatever.
The problem I have, which is minor, is that my computer doesnt connect to network on boot, and this didnt start happening til I setup vpn. It will eventually connect like 5 or ten minutes later, or if I manually select it nm-applet then it connects immediately. Is this also the case for you after you setup vpn?
|
|
ahen
Member
Posts: 57
Likes: 40
|
Post by ahen on Aug 9, 2021 20:53:26 GMT
It is not, but I'm not using (or want) autoconnect to any VPN, so perhaps (?) it could be related to that ...
|
|