Set up a VPN for Linux in 2024 - Surfshark (2024)

Home

/ Download

Recommended by:

  • Ubuntu app with a graphical user interface
  • 10Gbit ports on every server
  • Easy setup guide
  • 30-day money-back guarantee

Get Surfshark Install now

Set up a VPN for Linux in 2024 - Surfshark (1)

Get Surfshark for all devices

Click the logos to be taken to the platform’s dedicated page!

Chrome

Firefox

iOS

macOS

Android

Windows

Linux

FireTV

Edge

Apple TV

Show more

Show less

Download a VPN for all devices, including smart TV (e.g., Apple TV, Android TV, Samsung TV), Xbox or PlayStation, Oculus Quest 2, or even Raspberry Pi. Want to protect your whole home network at once? Set up a VPN on your router to do just that.

How to install a VPN on Linux

  1. Subscribe to Surfshark. Linux is free, but good VPNs aren’t.

  2. Open the terminal (CTRL+ALT+T in Ubuntu). As a Linux user, you already know more about this step than I ever will.
  3. Type in the following command:

    curl -f https://downloads.surfshark.com/linux/debian-install.sh --output surfshark-install.sh #gets the installation scriptcat surfshark-install.sh #shows script's contentsh surfshark-install.sh #installs surfshark
  4. Log in to the Surfshark app. Finally, all that effort in subscribing will pay off!

  5. Connect to a VPN server. Quick-connect will choose the fastest server, though you can manually choose to connect to any server you want.

  6. That’s it!

Using a commercial VPN isn’t exactly “hacking the Gibson” in terms of complexity.

After installing Surfshark, you can control it via the shiny new GUI. Still have questions? Check our other guides:

Set up a VPN for Linux in 2024 - Surfshark (12)

Setting up Surfshark VPN on Linux

https://support.surfshark.com/hc/en-us/articles/5067279648146-How-to-set-up-Surfshark-on-Linux

Set up a VPN for Linux in 2024 - Surfshark (13)

Setting up a manual Surfshark VPN connection on Linux

https://support.surfshark.com/hc/en-us/articles/360011051133-How-to-set-up-manual-OpenVPN-connection-using-Linux-Terminal

Set up a VPN for Linux in 2024 - Surfshark (14)

Setting up legacy version of Surfshark VPN on Linux

https://support.surfshark.com/hc/en-us/articles/360017418334-How-to-set-up-Surfshark-VPN-on-Linux-Legacy-version

System requirements for Linux VPN

Supported distrosSupported desktop environmentsSupport init systemSupported architecture
Debian 11 or later
Ubuntu 20.04 or later
MINT 20 or later
GNOME
KDE
XFCE
systemdAMD64

Give your Linux distro some VPN love

With a GUI for everyone

Get Surfshark VPN

Set up a VPN for Linux in 2024 - Surfshark (15)

Set up a VPN for Linux in 2024 - Surfshark (16) Try Surfshark

Feel free with the 30-day money-back guarantee

A VPN is an investment, but it’s a risk-free investment thanks to our generous money-back policy. Just subscribe to whichever plan you want. If your first month doesn’t convince you that Surfshark VPN is the best VPN for Linux, you can request a refund within those 30 days.

Try Surfshark

Benefits of a VPN on Linux

Give terminal some rest with a GUI

The new Surfshark Linux app comes with a genuine graphical user interface. Connect to the fastest or nearest server, browse the server list, mark favorite servers, and more without entering a single line into the terminal.

What’s more, you can seamlessly switch between OpenVPN (TCP or UDP) and WireGuard without the need to fiddle with any settings.

Set up a VPN for Linux in 2024 - Surfshark (17)

Set up a VPN for Linux in 2024 - Surfshark (18)

Stay in charge of your traffic

Linux keeps you in control of the processes on your device. This control ends where online begins.

To achieve internet privacy and security, you need to encrypt your traffic and route it via a trustworthy VPN server to obfuscate your IP address. With Surfshark as your VPN service, Linux becomes nearly as secure online as it is offline.

Stay private when streaming your favorite shows

Do cyberthreats concern you at all times? Using Surfshark, you’ll remain protected even when watching your favorite shows and movies.

Keep your VPN connection on to hide your traffic from the prying eyes of your internet service provider and ad brokers when streaming. Our 10Gbit servers around the world will ensure a throttle- and buffer-free experience.

Get Surfshark

Set up a VPN for Linux in 2024 - Surfshark (19) Get Surfshark

Protect yourself online with Surfshark VPN for Linux

Set up a VPN for Linux in 2024 - Surfshark (20)

No-activity-logs policy

It doesn't make sense to get a VPN for privacy just to be tracked by the provider. That's why Surfshark VPN is dedicated to keeping no activity logs. Even better, our 100% RAM-only servers provide an additional security layer if someone tries to seize them.

Set up a VPN for Linux in 2024 - Surfshark (21)

Serious encryption

VPN encryption is key to making your internet traffic unreadable to spies. On that note, Surfshark uses the AES-256 encryption — the industry standard. It’s not only practically unbreakable but also really fast in execution.

Set up a VPN for Linux in 2024 - Surfshark (22)

Kill Switch for Linux

No more unexpected info leaks. Our Kill Switch for Linux ensures that no info leaves your computer if you accidentally disconnect from the app. By turning off the internet connection until you reconnect to a VPN server, Kill Switch will protect your data.

Set up a VPN for Linux in 2024 - Surfshark (23)

Unlimited devices

How many devices do you want to protect with a VPN? With Surfshark, that question is moot, as one account is enough to run the app simultaneously on multiple devices. Protect everything you can reach!

Set up a VPN for Linux in 2024 - Surfshark (24)

10Gbit VPN servers worldwide

Our servers are not only secure but also fast. To keep up with the growing bandwidth requirements and 5G, all of our 3200+ servers have 10Gbit ports and their own DNS.

Set up a VPN for Linux in 2024 - Surfshark (25)

Supporting WireGuard on Linux

The Surfshark app on Linux not only brings the convenience of a GUI but also the speed and security of WireGuard protocol.

Set up a VPN for Linux in 2024 - Surfshark (26)

Protect unlimited devices with Surfshark

When you subscribe to Surfshark VPN, you’re not getting a VPN for your single Linux computer. No, you’re getting a license allowing unlimited simultaneous connections — definitely enough to cover every device you own.

So, starting with your Linux machine, you can install a VPN app on your Android phone (after purging all the Google telemetry, naturally), your router, and your other Linux computers — the works.

Should I use a free VPN for Linux?

It’s best to avoid free VPNs for your PC. Unlike Linux, which is developed for free and doesn’t rely on physical infrastructure to operate, a VPN is reliant on servers and other infrastructure to operate. That takes money to set up and run — a lot of money considering that servers need to be spread around the world.

Premium VPNs fund that via subscriptions. A free Linux VPN may limit speed, data usage, and the number of servers and device connections to make you subscribe. They may also skimp out on security or even be purposefully made to harvest your data.

Set up a VPN for Linux in 2024 - Surfshark (27)

Audited and certified security

At Surfshark, we're committed to your online security and privacy. And while Surfshark VPN isn’t open-source like Linux, it has undergone numerous independent audits.

Set up a VPN for Linux in 2024 - Surfshark (28)

Warrant canary

We value transparency and privacy — here’s a canary to show that we've never had a data breach or shared users' private information. Read more on our warrant canary.

Set up a VPN for Linux in 2024 - Surfshark (29)

Deloitte audit

Deloitte has verified our server configuration, deployment process, VPN server configuration, API, SDN, and employees. You can check the report for yourself.

Set up a VPN for Linux in 2024 - Surfshark (30)

Privacy policy

Our aim is to give you privacy. And we’re open and honest about our privacy policy.

Experts recognize us

Set up a VPN for Linux in 2024 - Surfshark (31)

Tech Advisor Editors’ Choice 2024

Set up a VPN for Linux in 2024 - Surfshark (32)

Independent Advisor Best Value VPN 2023

Set up a VPN for Linux in 2024 - Surfshark (33)

Forbes Advisor Best VPN for Unlimited Connections 2023

Set up a VPN for Linux in 2024 - Surfshark (34)

VPN Solution of the Year at CyberSecurity Breakthrough Awards 2022

FAQ

Do I need a VPN with Linux?

Yes, a Virtual Private Network is an online security staple for all devices and operating systems, Linux included. Sure, the danger of being hacked may be a bit lower than for your average Windows user. But areas where a Linux VPN can help you are still massive:

  • A VPN obscures your traffic from your ISP or anyone else who’d like to spy on it. Instead of knowing what websites you’re visiting or that you’re streaming/gaming/sharing files, they’ll only see VPN traffic;
  • Censorship and firewalls don’t care about your operating system and can affect even something as simple as your access to news or social media sites.

In fact, most of the points outlined here apply to Linux users as well.

Does Linux have a built-in VPN?

Many Linux distros have a built-in VPN capability via the Network Manager, but it’s not the same as having a VPN. It just means that you can potentially set up a VPN without a specific application.

However, you’ll:

  • Still have to do it yourself;
  • Still need to find a VPN server provider;
  • Not have the easy-of-life and usability features of a commercial VPN.

Most users don’t have a spare VPN server laying around, especially one that would allow them to router their traffic via a different country. So, the potential capability exists, but it’s not nearly a full Linux VPN client package.

Does Ubuntu have a VPN?

Just like every operating system under the sun, Ubuntu has a built-in VPN capability. However, you still need to have access to a VPN server to make it work.

How do I enable a VPN on Linux?

For Surfshark VPN users on Ubuntu who would like to use the GUI app, here’s a short guide:

  1. Open the terminal (CTRL+ALT+T in Ubuntu).
  2. Type in the following command:
    curl -f https://downloads.surfshark.com/linux/debian-install.sh --output surfshark-install.sh #gets the installation scriptcat surfshark-install.sh #shows script's contentsh surfshark-install.sh #installs surfshark
  3. You are now ready to use your Linux VPN!

For users of the legacy app, we have an entire support guide dedicated to enabling a VPN on your Linux machine. However, the legacy app is now purely in maintenance mode, and any new features will be coming to the GUI app.

Which free VPN is best for Linux?

Good free VPNs don’t exist for Linux — or any other platform. Here’s why:

  • Free VPNs have way fewer servers and countries they operate in;
  • Free VPNs are slower than paid VPNs — usually as a way to make you buy the paid version;
  • Free VPNs will bombard you with ads or sell your data for profit;
  • Free VPNs don’t have the money or resources to keep their platforms up to security standards;
  • Free VPNs usually leak data, don’t provide encryption, and often contain malware.

So you see, you’ll likely be paying for a free VPN one way or another, including handing over your data.

How can I connect to a VPN using the Linux Network Manager?

To connect to a VPN using something like the Linux Network Manager, you need to follow roughly these steps:

  1. Get your credentials: that means getting a VPN subscription (like Surfshark’s).
  2. Download configuration files: they will be necessary for the system to make a connection to the VPN server.
  3. Configure the Network Manager: as a Linux user, you’re born for this.
  4. Ensure your connection is successful: AKA connect for the first time.

For more in-depth information, read here.

How can I connect to a VPN using the Linux Terminal?

Feel the pathological need to have Linux Terminal involved in everything you do? We got you covered. Here’s the abstract:

  1. Get your credentials from the VPN you subscribed to.
  2. Download and install the OpenVPN package.
  3. Download configuration files from your VPN provider.
  4. Connect to the VPN via the dang terminal.
  5. Connect to a server.

For more details, look here.

Set up a VPN for Linux in 2024 - Surfshark (2024)

FAQs

Set up a VPN for Linux in 2024 - Surfshark? ›

The best Surfshark VPN protocol largely depends on the device you're using or the reason you need a VPN: WireGuard® is good all around, especially when speed is the issue. IKEv2 is on par with WireGuard® and is really good with mobile. OpenVPN usually works best for routers.

How to setup Surfshark VPN on Linux? ›

How to set up Surfshark VPN on Linux Manjaro
  1. Get your credentials.
  2. Choose a Surfshark server.
  3. Download Certificates.
  4. Install the Surfshark VPN.
  5. Connect to the VPN.
  6. Ensure your connection was successful.
Jul 24, 2024

How to configure VPN in Linux? ›

To use a VPN on Linux, the following steps should be executed with proper concentration.
  1. Open Linux Terminal.
  2. Execute the command sudo add-apt-repository universe.
  3. Run the command sudo add-get install network-manager-openvpn.
  4. At last, the command sudo service network-manager restart will be executed.
Jul 11, 2024

How to setup VPN on Surfshark? ›

  1. Download and install the Surfshark app.
  2. Log into the app.
  3. Connect to the VPN.
  4. Manage Surfshark locations.
  5. Manage Surfshark features.
  6. Manage Surfshark settings.
  7. Ensure your connection is successful.
Jul 11, 2024

What protocol should I use for Surfshark VPN? ›

The best Surfshark VPN protocol largely depends on the device you're using or the reason you need a VPN: WireGuard® is good all around, especially when speed is the issue. IKEv2 is on par with WireGuard® and is really good with mobile. OpenVPN usually works best for routers.

Does Surfshark work in Linux? ›

With Surfshark as your VPN service, Linux becomes nearly as secure online as it is offline.

Does Surfshark have WireGuard? ›

NOTE: Currently, WireGuard® is available on Surfshark apps for Windows, iOS, Android, and macOS.

How to set up SSL VPN on Linux? ›

To install the SSL VPN client on a Linux or MAC OS:
  1. Click Configuration package for Linux and MacOS to download the sslvpnlinuxconfig. tgz file.
  2. Extract the sslvpnlinuxconfig. tgz file to a local folder, and copy the ca. crt and openvpn. ovpn files to the OpenVPN configuration folder.

Is there a free VPN for Linux? ›

There are 100% free VPNs for Linux. Just to name a few, ProtonVPN, Windscribe, TunnelBear, and PrivadoVPN are all free, safe, and secure VPNs for Linux. However, most of them do have limitations, such as a speed cap or a data limit.

How do I OpenVPN in Linux terminal? ›

In order to use OpenVPN from the command line, you need to have a terminal opened and you need to launch OpenVPN and reference the directory where the configuration files are located. To do this, you would either navigate to that directory or mention it when launching OpenVPN.

Why won t my Surfshark VPN work? ›

Router settings: certain router settings might interfere with your VPN. Ensure VPN passthrough is enabled and check for any firewall rules that block it. DNS issues: DNS problems can affect stability. Clear your DNS cache and consider setting your DNS manually to a public server like Google DNS or Cloudflare DNS.

Is Surfshark a full tunnel VPN? ›

Surfshark is a VPN service provider that offers a VPN split tunneling feature in all of its subscription plans.

Is Surfshark a strong VPN? ›

It made our 2024 list of the best VPNs with a 9.5 out of 10 rating. If we've learned anything from reviewing VPNs though, it's that when it comes to choosing a VPN, the user's personal needs and preferences comes first. That means no matter how good we think Surfshark is, only you can say if it's the right VPN for you.

How do I get the best out of Surfshark VPN? ›

Click Connect

Most VPNs, including Surfshark, have a Quick-connect button somewhere on the home screen that connects you to the closest/fastest server available. If you're just looking for a quick and secure connection, this is the perfect option.

What is the most secure VPN configuration? ›

OpenVPN is the most secure VPN protocol and the safest choice thanks to its near-unbreakable encryption, which keeps users' data private even when using public Wi-Fi.

How to setup IKEv2 VPN on Linux? ›

Go to Settings -> Network and click the "plus" icon in VPN section. In appeared window select the type of connection - IPsec/IKEv2 (strongswan). Set up the connection: Name - any desired name for connection, for example SecureVPN.

How to connect Surfshark VPN using Ubuntu Network Manager? ›

NOTE: These are not your regular credentials, such as your email and password.
  1. Enter the Surfshark login page and log in. Then, click on VPN > Manual Setup > Desktop or mobile > OpenVPN to generate your credentials.
  2. Once there, make sure that you are in the Credentials tab and click on Generate credentials.
Feb 9, 2024

How to create VPN with OpenVPN Linux? ›

Root access to your Linux machine command-line interface (CLI).
  1. Step 1: Install the openvpn3 package. Open the OpenVPN 3 for Linux webpage in a browser.
  2. Step 2: Download a connection profile. After installing, you need a connection profile. ...
  3. Step 3: Import the connection profile. ...
  4. Step 4: Start a VPN session.
Apr 25, 2024

How do I set up Surfshark DNS? ›

To activate Surfshark Smart DNS, do the following:

For that, enter your registered email address, then your password, and click Log In. Once you're there, click the Activate Smart DNS button. The Surfshark website will automatically detect your IP address.

Top Articles
Obsidian Review: Is It Worth It? (2023)
Frequently Asked Questions | Trust Bank Singapore
Ups Customer Center Locations
Section 4Rs Dodger Stadium
417-990-0201
Occupational therapist
Kraziithegreat
Jefferey Dahmer Autopsy Photos
Jesus Calling December 1 2022
Black Gelato Strain Allbud
Snarky Tea Net Worth 2022
Delectable Birthday Dyes
How To Delete Bravodate Account
The Weather Channel Facebook
Hope Swinimer Net Worth
Regal Stone Pokemon Gaia
OSRS Dryness Calculator - GEGCalculators
6813472639
Games Like Mythic Manor
Best Forensic Pathology Careers + Salary Outlook | HealthGrad
Mflwer
How pharmacies can help
St. Petersburg, FL - Bombay. Meet Malia a Pet for Adoption - AdoptaPet.com
Understanding Genetics
Diakimeko Leaks
D2L Brightspace Clc
From This Corner - Chief Glen Brock: A Shawnee Thinker
13301 South Orange Blossom Trail
2015 Kia Soul Serpentine Belt Diagram
Carroway Funeral Home Obituaries Lufkin
Xpanas Indo
Meggen Nut
Florence Y'alls Standings
Helpers Needed At Once Bug Fables
United E Gift Card
Chadrad Swap Shop
Bursar.okstate.edu
Bratislava | Location, Map, History, Culture, & Facts
Envy Nails Snoqualmie
Panchitos Harlingen Tx
Jennifer Reimold Ex Husband Scott Porter
Kelly Ripa Necklace 2022
Kutty Movie Net
Stranahan Theater Dress Code
BCLJ July 19 2019 HTML Shawn Day Andrea Day Butler Pa Divorce
Gas Buddy Il
White County
Access to Delta Websites for Retirees
Crigslist Tucson
Hsi Delphi Forum
786 Area Code -Get a Local Phone Number For Miami, Florida
Supervisor-Managing Your Teams Risk – 3455 questions with correct answers
Latest Posts
Article information

Author: Melvina Ondricka

Last Updated:

Views: 6361

Rating: 4.8 / 5 (48 voted)

Reviews: 87% of readers found this page helpful

Author information

Name: Melvina Ondricka

Birthday: 2000-12-23

Address: Suite 382 139 Shaniqua Locks, Paulaborough, UT 90498

Phone: +636383657021

Job: Dynamic Government Specialist

Hobby: Kite flying, Watching movies, Knitting, Model building, Reading, Wood carving, Paintball

Introduction: My name is Melvina Ondricka, I am a helpful, fancy, friendly, innocent, outstanding, courageous, thoughtful person who loves writing and wants to share my knowledge and understanding with you.