Advertisement
Guest User

OpenVPN Tutorial for mullvad_linux

a guest
Mar 3rd, 2013
2,797
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.73 KB | None | 0 0
  1. ****** Nice little Tutorial for installing OPENVPN mullvad_linux on Linux Mint 14 OR Ubuntu equivilance ******
  2.  
  3. First off: Do NOT try even one time to connect to the vpn using the network manager. It will re-write files, you'll never be able to connect after that.
  4.  
  5. Do not google for workarounds, they are everywhere and do not work.
  6.  
  7. 1) Click on customer ID to get your unique customer ID number, write it down or c/p into .txt file. You will need this later on.
  8. https://mullvad.net/en/subscription_management.php
  9.  
  10. 2) Send mullvad.net Admins an email stating you would like a free trial and provide them your unique Customer ID#, they will graciously give you 7 days as a free trial to make sure you can connect :)
  11. email:admin@mullvad.net
  12.  
  13. 3) Once you enter your customer ID number on the instructions page it will generate .config files in .zip format that has your unique customer ID in it. You will see something like this:
  14. Your customer id is 385xxxxxxx
  15.  
  16. Days left: 7. Add more.
  17. (wait til it says you have days, if it says 0 they havent added the time as of yet. Be patient, they are quick at responses!)
  18.  
  19. You will now be able to get the .zip file for the config files in .zip format
  20. 385xxxxxxx.zip
  21.  
  22. To set up standard OpenVPN use these configuration files:
  23.  
  24.  
  25. 4) Install network-manager-openvpn (sudo apt-get install network-manager-openvpn)
  26.  
  27. 5) Download this from the mullvad.net homepage by clicking on "Linux free trial". Make sure to "save" and then open with "gdebi" and install
  28. mullvad_35_all.deb ( This installs a wrapper to OpenVPN and includes a very nice little GUI with a mullvad_linux VPN icon that sits in your tray )
  29.  
  30. 6) Go to your network manager, click on VPN.. configure VPN. Extract your .zip files that you downloaded just a bit ago (385xxxxxxx.zip) onto your desktop, or into downloads, does not matter.
  31. Do NOT extract in /ect/openvpn. You will see:
  32. "mullvad_linux.config" along with other keys and certs. On the VPN window that you brought up in network manager you will see: "import" Click on "import", navigate to your download location of mullvad_linux.config and it will import all of the necessary config files. Do NOT touch any other settings. It will break your install of the VPN. Do NOT use the network manager even once to try to connect to the VPN. It WILL break the connection to openvpn!! Do NOT extract anything at all into /ect/openvpn. Now save the changes in the network manager and close it. Do NOT try to connect with network manager I can not stress that enough! It will overwrite files. At this point the only thing that is even in /ect/openvpn is "resolv.config"
  33. Leave it be. Do not touch.
  34.  
  35. 7) Navigate through your system menu and look for "Mullvad". It should be under "internet" Pin it to your favorites, or place in your panel. Nice little icon. :)
  36.  
  37. 8) Now click on that icon "Mullvad" to launch. Click on settings. A window will come up. Place your unique customer ID number in there. Click "set customer id". You can now go back to the mullvad.net website, enter your unique customer ID click on "port" and it will generate a port for you so that you can open/forward ports! Place your unique port into settings "Mullvad" in your panel/tray by clicking on "manage" Then "save", that window will close. Go back to that same "Mullvad" icon and click on connect. It will start circling around getting an address and connect.
  38.  
  39. 9) You are now free to go into your router/firewall with the same port you just placed in the "mullvad" settings to do your port forwarding.
  40.  
  41. 10) If you have a router, look for a funky address. You will NOT see anything under dhcp addresses where you always see your wired and wireless connections.
  42. Example: my router IP: 192.168.1.1
  43. eth0 (wired) 192.168.1.104
  44. wlano (wireless)192.168.1.149
  45. vpn: 192.168.1.255
  46.  
  47. You may have to look in your network connections inside your router to determine the address like I did. Treat this connection as if it were another machine on the network.
  48. Navigate to "port forwarding" and enter:
  49. 192.168.1.255 (port you placed in settings) (both TCP & UDP) 192.168.1.255
  50. Click appy, save and close router. Do the same in your firewall.
  51.  
  52. Now enjoy your newly set up Mullvad OpenVPN connection. This took alot of trial and error on my part and 3 reformats because of overwritten files generated by trying to connect through the network manager and extracting files into /ect/openvpn. Do not make that mistake. There is a regressed bug in the gnome network-manger applet.
  53.  
  54. I'd like to also point out, it was impossible to even do the above using gnome desktop. This was ALL done under Mint 14 Cinnamon.
  55.  
  56. Have fun & good luck. Hope this helps!! :D
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement