Page 1 of 2

Kan ej aktivera wireguard vpn

Posted: Sat 14 December 2019, 18:50
by Tetiton
Hej!

Jag kommer inte ut på nätet via integrity vpn.
Jag har en dual boot system. windows 10, här kommer jag ut via wireguard och fungerar perfekt, men denna aktuella sytem, Linux Mint 19.2 så funkar inte wireguard. Det är denna jag söker hjälp för!
Har skapat och laddat ned konfigurationsfilen enl instruktionerna på integritys hemsida i Linux Mint.
har följt instruktionerna om att kopiera konfigurationsfilen till rätt mapp
jag går sedan in terminalen och följer instruktioner och får då följande meddelande när jag försöker aktivera vpn:

********
teto@ZEN-MASTER:/$ sudo wg-quick up integrity_vpn
Warning: `/etc/wireguard/integrity_vpn.conf' is world accessible
[#] ip link add integrity_vpn type wireguard
[#] wg setconf integrity_vpn /dev/fd/63
[#] ip -4 address add 10.0.133.139/24 dev integrity_vpn
[#] ip -6 address add fdab:1337:1337:133::139/64 dev integrity_vpn
[#] ip link set mtu 1420 up dev integrity_vpn
[#] resolvconf -a integrity_vpn -m 0 -x
/usr/bin/wg-quick: line 31: resolvconf: command not found
[#] ip link delete dev integrity_vpn

**********

någon som har en ide om vad som kan vara felet?
Vill bara tillägga, vilket kan vara viktigt i sammanhanget är att jag är en riktig gröngöling vad gäller Linux och arbete i terminalen :D

tack på förhand
Tetiton

Re: Kan ej aktivera wireguard vpn

Posted: Sun 15 December 2019, 11:21
by Markus
pröva installera resolvconf

Code: Select all

sudo apt-get install resolvconf

Re: Kan ej aktivera wireguard vpn

Posted: Sun 15 December 2019, 16:17
by Tetiton
Tack Markus!

det löste det hela, nu är det igång.
Har haft i tankarna att resolvconf installeras automatiskt när alla paket installerades av wireguard... så jag kollade aldrig :lol:

stor tack

Tetiton

Re: Kan ej aktivera wireguard vpn

Posted: Wed 1 January 2020, 22:16
by mattias
Får samma fel men det löser inte problemet med att installera resolvconf eller openresolv - är säker något jag har missat.

Re: Kan ej aktivera wireguard vpn

Posted: Thu 2 January 2020, 09:32
by Markus
Vad händer när du kör wg-quick, Något felmeddelande?

Re: Kan ej aktivera wireguard vpn

Posted: Thu 2 January 2020, 10:25
by mattias
Markus wrote: Thu 2 January 2020, 09:32 Vad händer när du kör wg-quick, Något felmeddelande?
Usage: wg-quick [ up | down | save | strip ] [ CONFIG_FILE | INTERFACE ]

CONFIG_FILE is a configuration file, whose filename is the interface name
followed by `.conf'. Otherwise, INTERFACE is an interface name, with
configuration found at /etc/wireguard/INTERFACE.conf. It is to be readable
by wg(8)'s `setconf' sub-command, with the exception of the following additions
to the [Interface] section, which are handled by wg-quick:

- Address: may be specified one or more times and contains one or more
IP addresses (with an optional CIDR mask) to be set for the interface.
- DNS: an optional DNS server to use while the device is up.
- MTU: an optional MTU for the interface; if unspecified, auto-calculated.
- Table: an optional routing table to which routes will be added; if
unspecified or `auto', the default table is used. If `off', no routes
are added.
- PreUp, PostUp, PreDown, PostDown: script snippets which will be executed
by bash(1) at the corresponding phases of the link, most commonly used
to configure DNS. The string `%i' is expanded to INTERFACE.
- SaveConfig: if set to `true', the configuration is saved from the current
state of the interface upon shutdown.

See wg-quick(8) for more info and examples.

Och när jag kör: wg-quick up integrity_vpn

[#] ip link add integrity_vpn type wireguard
[#] wg setconf integrity_vpn /dev/fd/63
[#] ip -4 address add 10.0.92.253/24 dev integrity_vpn
[#] ip -6 address add fdab:1337:1337:92::253/64 dev integrity_vpn
[#] ip link set mtu 1420 up dev integrity_vpn
[#] resolvconf -a tun.integrity_vpn -m 0 -x
/usr/bin/wg-quick: line 31: resolvconf: command not found
[#] ip link delete dev integrity_vpn

*******
Jag har resolvconf installerat:

resolvconf/stable,stable,now 1.79 all [installerat]

Re: Kan ej aktivera wireguard vpn

Posted: Thu 2 January 2020, 10:38
by Markus
Den verkar klaga på att den inte hittar resolvconf. kanske blivit avinstallerat vid något tillfälle?

pröva installera paketet igen:
sudo apt-get install resolvconf

Re: Kan ej aktivera wireguard vpn

Posted: Thu 2 January 2020, 10:44
by Markus
såg nu du skrev visst du redan hade det installerat.

Om du skriver resolvconf i terminalen får du något svar då eller får du "command not found" ?

kanske pröva ominstallera paketet

Code: Select all

sudo apt-get update
sudo apt-get remove resolvconf
sudo apt-get install resolvconf

Re: Kan ej aktivera wireguard vpn

Posted: Thu 2 January 2020, 11:12
by mattias
Markus wrote: Thu 2 January 2020, 10:44
kanske pröva ominstallera paketet
Det löste problemet med "resolvconf: command not found"

Nu kan jag dock inte komma ut på nätet - återkommer ifall jag inte kan lösa det :)

Re: Kan ej aktivera wireguard vpn

Posted: Thu 2 January 2020, 11:50
by mattias
Dessa felmeddelande får jag när jag följer instruktionerna från https://wireguard-bahnhof.5july.net/

sudo add-apt-repository ppa:wireguard/wireguard
"gpg: hittade ingen giltig OpenPGP-data."

sudo apt-get update
"Fel:6 http://ppa.launchpad.net/wireguard/wireguard/ubuntu focal Release
404 Not Found [IP: 91.189.95.83 80]

E: The repository 'http://ppa.launchpad.net/wireguard/wireguard/ubuntu focal Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details."


När jag startar tjänsten så kommer denna text upp och låser terminalfönstret - får ingen uppkoppling mot nätet.


[#] ip link add integrity_vpn type wireguard
[#] wg setconf integrity_vpn /dev/fd/63
[#] ip -4 address add 10.0.92.253/24 dev integrity_vpn
[#] ip -6 address add fdab:1337:1337:92::253/64 dev integrity_vpn
[#] ip link set mtu 1420 up dev integrity_vpn
[#] resolvconf -a tun.integrity_vpn -m 0 -x