LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 02-27-2023, 11:03 PM   #1
UbuntuAskz
LQ Newbie
 
Registered: Feb 2023
Posts: 1

Rep: Reputation: 0
Unhappy Can't add WireGuard VPN connection to Ubuntu Network Manager


Hi everyone,

I'm having trouble adding a WireGuard VPN connection to the Network Manager on Ubuntu. I've followed several online tutorials and tried different methods, but nothing seems to work.

I've installed WireGuard using the sudo apt install wireguard
command and created the configuration file /etc/wireguard/wg0.conf
. The VPN connection works fine when I start it using the sudo wg-quick up wg0
command, but I can't seem to add it to the Network Manager.

When I go to "Add VPN Connection" in the Network Manager, I only see options for OpenVPN and PPTP. There's also an option to "Import from file", but when I select my wg0.conf
file, it says that the file format is not supported.

I've tried restarting the Network Manager with sudo service network-manager restart
, but that doesn't seem to help. I'm running Ubuntu 22.04.1 LTS.

Any help or suggestions would be greatly appreciated. Thanks in advance!
 
Old 02-28-2023, 04:59 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,753

Rep: Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983
Quote:
Originally Posted by UbuntuAskz View Post
Hi everyone,

I'm having trouble adding a WireGuard VPN connection to the Network Manager on Ubuntu. I've followed several online tutorials and tried different methods, but nothing seems to work.

I've installed WireGuard using the sudo apt install wireguard
command and created the configuration file /etc/wireguard/wg0.conf
. The VPN connection works fine when I start it using the sudo wg-quick up wg0
command, but I can't seem to add it to the Network Manager.

When I go to "Add VPN Connection" in the Network Manager, I only see options for OpenVPN and PPTP. There's also an option to "Import from file", but when I select my wg0.conf
file, it says that the file format is not supported.

I've tried restarting the Network Manager with sudo service network-manager restart
, but that doesn't seem to help. I'm running Ubuntu 22.04.1 LTS.

Any help or suggestions would be greatly appreciated. Thanks in advance!
You should follow the advice you were given here:
https://askubuntu.com/questions/1457...etwork-manager
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Setup Your Own VPN With Wireguard VPN LXer Syndicated Linux News 0 06-07-2022 09:45 PM
I have a wireguard VPN, I want to make it so a specific client/peer can only access one internal IP/port on the local network wh33t Linux - Networking 1 12-08-2021 03:53 AM
LXer: How to Set Up WireGuard VPN on Ubuntu 20.04 LXer Syndicated Linux News 0 10-27-2020 03:45 PM
LXer: How to Set Up WireGuard VPN on Ubuntu 18.04 LXer Syndicated Linux News 0 04-19-2020 12:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 09:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration