Skip to content

Instantly share code, notes, and snippets.

@skandix
Last active March 22, 2024 14:04
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save skandix/8ebdb825490f451aa4969cefcadfd3b7 to your computer and use it in GitHub Desktop.
Save skandix/8ebdb825490f451aa4969cefcadfd3b7 to your computer and use it in GitHub Desktop.

Url shown in screenshot is the old url for eduvpm this is the new on https://uia.eduvpn.no/vpn-user-portal/home

Start off by going to

https://uia.eduvpn.no/vpn-user-portal/home And click on "Continue."

Now create a VPN Profile you will be using, give it a descriptive name

And click "Create and Download."

With Networkmanager (Recommended way)

  • Packages needed
    • Arch Linux
      • network-manager-applet
      • networkmanager
      • networkmanager-openvpn

Just save the file. It should appear where Downloads usually appear

Then right-click on your network manager and select Edit connections

Mine is in the top bar to the right.

Click on the plus sign, and a box should appear to decide what connection type you want.

Pick "Import a saved VPN config," then press Create

Then locate your .ovpn file and press enter, then it should appear like this, and every field should be filled out for you.

change the connection name to something recognizable.

I'll Call mine "UiAWorkLaptop", then click "Save"

Now, when you Left click on your Network manager and select the VPN connection you created, and then you should be connected to UiA VPN

Without NetworkManager (Lazy way)

  • Packages needed
    • Arch Linux
      • screen
      • openvpn

Locate your .ovpn file

I also know where mine is stored, but it's to demonstrate if you don't know where it's found.

Run the ovpn file in a screen with OpenVPN

If you are more familiar with tmux, use that or just use whatever you are most comfortable with

screen -dmS uiaVPN sudo openvpn ./Downloads/eduvpn.uia.no_internet_20201020_UiALaptop.ovpn
  • locate that your screen is running
screen -ls
  • Attach your screen so you can enter your sudo PW
screen -x
  • To de-attach a screen
Ctrl + a d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment