How to set up and run wireguard vpn

Asked by Vladimir

I installed wireguard through the terminal, but then when I enter further installation commands I get errors, what is the sequence of entering commands through the terminal to get the final settings and start vpn

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu linux Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

More details, please!

"I installed wireguard through the terminal"
With which commands?

"I get errors"
Which errors?

Which Ubuntu release?
Wiregard installed from the Ubuntu repositories or from an external source?

Revision history for this message
Vladimir (vibeg) said :
#2

Hello, I'm using ubuntu 24.04.1, where wireguard is already installed in
the kernel, the instructions https://www.wireguard.com/quickstart/ do not
work, for example, in the terminal, the command wg genkey >private
Warning: writing to world accessible file.
Consider setting the umask to 077 and trying again.
vibeg@vibeg-MS-7A36:~$ sudo wg genkey >private
[sudo] vibeg password:
Warning: writing to world accessible file.
Consider setting the umask to 077 and trying again. In some videos they say
that the application file is damaged, maybe this is the reason. besides,
the instruction itself is rather complicated for a simple user. What are
the serial commands in the terminal?

чт, 1 дек. 2022 г. в 11:11, Manfred Hampl <
<email address hidden>>:

> Your question #703990 on linux in Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/linux/+question/703990
>
> Status: Open => Needs information
>
> Manfred Hampl requested more information:
> More details, please!
>
> "I installed wireguard through the terminal"
> With which commands?
>
> "I get errors"
> Which errors?
>
> Which Ubuntu release?
> Wiregard installed from the Ubuntu repositories or from an external source?
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https://answers.launchpad.net/ubuntu/+source/linux/+question/703990
>
> You received this question notification because you asked the question.
>

--
С уважением
Владимир Бегун
www.begun.ks.ua

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3
Revision history for this message
Vladimir (vibeg) said :
#4

there is openvpn, no wireguard

чт, 1 дек. 2022 г. в 12:21, actionparsnip <
<email address hidden>>:

> Your question #703990 on linux in Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/linux/+question/703990
>
> Status: Open => Answered
>
> actionparsnip proposed the following answer:
> https://www.digitalocean.com/community/tutorials/how-to-set-up-
> wireguard-on-ubuntu-20-04
>
> DigitalOcean make great guides
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
>
> https://answers.launchpad.net/ubuntu/+source/linux/+question/703990/+confirm?answer_id=2
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/ubuntu/+source/linux/+question/703990
>
> You received this question notification because you asked the question.
>

--
С уважением
Владимир Бегун
www.begun.ks.ua

Revision history for this message
Bernard Stafford (bernard010) said (last edit ):
#5
Revision history for this message
Manfred Hampl (m-hampl) said (last edit ):
#6

The first question that needs to be answered is:
What do you want to achieve by installing wireguard?
Do yo want to set up your own VPN-server or do you want to use the wireguard client to connect to a VPN service that's already existing? If the latter - which one, and are there instructions from its provider?

Revision history for this message
Vladimir (vibeg) said :
#7

set up your own VPN server

чт, 1 дек. 2022 г. в 14:21, Manfred Hampl <
<email address hidden>>:

> Your question #703990 on linux in Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/linux/+question/703990
>
> Manfred Hampl proposed the following answer:
> The first question that needs to be answered is:
> What do you want to achieve by installing wireguard?
> Do yo want to set up your own VPN-server or do you want to use the
> wireguard client it to connect to a VPN service that's already existing? If
> the latter - which one, and are there instructions from its provider?
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
>
> https://answers.launchpad.net/ubuntu/+source/linux/+question/703990/+confirm?answer_id=5
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/ubuntu/+source/linux/+question/703990
>
> You received this question notification because you asked the question.
>

--
С уважением
Владимир Бегун
www.begun.ks.ua

Revision history for this message
Launchpad Janitor (janitor) said :
#8

This question was expired because it remained in the 'Open' state without activity for the last 15 days.