Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Off Topic
    4. Probleme installation PiVPN

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Probleme installation PiVPN

    This topic has been deleted. Only users with topic management privileges can see it.
    • David G.
      David G. last edited by David G.

      Hallo,

      ich wollte heute nochmal PiVPN aufsetzen.
      Hatte es schonmal stabil am laufen.

      Das Skript klappt auch so weit und läuft durch
      Mittels

      pivpn add
      

      kann ich auch eine Konfiguration generieren.

      Allerdings finde ich diese nicht wie angegeben in homr/pi/configs. Der Ordner ist leer.

      Wenn ich mittels

      pivpn - d
      

      Die Installation prüfe stimmt angeblich alles.
      Angeblich wurden die Konfiguration in etc/wireguard/configs abgelegt. Was ja pivpn untypisch ist.
      Allerdings ist auch dieser Ordner leer.

      Last login: Sat Sep 24 11:48:40 2022 from 192.168.99.33
      
      Wi-Fi is currently blocked by rfkill.
      Use raspi-config to set the country before use.
      
      pi@pi:~ $ pivpn -d
      ::: Generating Debug Output
      ::::            PiVPN debug              ::::
      =============================================
      ::::            Latest commit            ::::
      Branch: master
      Commit: 8603013fc39de62bba9c8b50127cabd4c621d1ad
      Author: 4s3ti
      Date: Sat Sep 17 15:10:15 2022 +0200
      Summary: fix(ufw): Fix ufw insert error
      =============================================
      ::::        Installation settings        ::::
      PLAT=Raspbian
      OSCN=bullseye
      USING_UFW=0
      pivpnforceipv6route=1
      IPv4dev=eth0
      dhcpReserv=1
      IPv4addr=192.168.99.33/24
      IPv4gw=192.168.99.1
      install_user=pi
      install_home=/home/pi
      VPN=wireguard
      pivpnPORT=51820
      pivpnDNS1=9.9.9.9
      pivpnDNS2=149.112.112.112
      pivpnHOST=REDACTED
      INPUT_CHAIN_EDITED=0
      FORWARD_CHAIN_EDITED=0
      INPUT_CHAIN_EDITEDv6=
      FORWARD_CHAIN_EDITEDv6=
      pivpnPROTO=udp
      pivpnMTU=1420
      pivpnDEV=wg0
      pivpnNET=10.251.180.0
      subnetClass=24
      pivpnenableipv6=0
      ALLOWED_IPS="0.0.0.0/0, ::0/0"
      UNATTUPG=1
      INSTALLED_PACKAGES=(wireguard-tools qrencode unattended-upgrades)
      =============================================
      ::::  Server configuration shown below   ::::
      [Interface]
      PrivateKey = server_priv
      Address = 10.251.180.1/24
      MTU = 1420
      ListenPort = 51820
      ### begin lan ###
      [Peer]
      PublicKey = lan_pub
      PresharedKey = lan_psk
      AllowedIPs = 10.251.180.2/32
      ### end lan ###
      =============================================
      ::::  Client configuration shown below   ::::
      [Interface]
      PrivateKey = lan_priv
      Address = 10.251.180.2/24
      DNS = 9.9.9.9, 149.112.112.112
      
      [Peer]
      PublicKey = server_pub
      PresharedKey = lan_psk
      Endpoint = REDACTED:51820
      AllowedIPs = 0.0.0.0/0, ::0/0
      =============================================
      ::::    Recursive list of files in       ::::
      ::::    /etc/wireguard shown below       ::::
      /etc/wireguard:
      configs
      keys
      wg0.conf
      
      /etc/wireguard/configs:
      clients.txt
      lan.conf
      
      /etc/wireguard/keys:
      lan_priv
      lan_psk
      lan_pub
      server_priv
      server_pub
      =============================================
      ::::            Self check               ::::
      :: [OK] IP forwarding is enabled
      :: [OK] Iptables MASQUERADE rule set
      :: [OK] WireGuard is running
      :: [OK] WireGuard is enabled
      (it will automatically start on reboot)
      :: [OK] WireGuard is listening on port 51820/udp
      =============================================
      :::: Having trouble connecting? Take a look at the FAQ:
      :::: https://docs.pivpn.io/faq
      =============================================
      :::: WARNING: This script should have automatically masked sensitive       ::::
      :::: information, however, still make sure that PrivateKey, PublicKey      ::::
      :::: and PresharedKey are masked before reporting an issue. An example key ::::
      :::: that you should NOT see in this log looks like this:                  ::::
      :::: YIAoJVsdIeyvXfGGDDadHh6AxsMRymZTnnzZoAb9cxRe                          ::::
      =============================================
      ::::            Debug complete           ::::
      :::
      ::: Debug output completed above.
      ::: Copy saved to /tmp/debug.log
      :::
      pi@pi:~ $
      

      Eidt:
      Wollte mir die Ordner mal über die Konsole anschauen.

      Hab komischerweise keine rechte....

      Last login: Sat Sep 24 12:01:40 2022 from 192.168.99.33
      
      Wi-Fi is currently blocked by rfkill.
      Use raspi-config to set the country before use.
      
      pi@pi:~ $ cd ..
      pi@pi:/home $ cd ..
      pi@pi:/ $ cd etc
      pi@pi:/etc $ cd wireguard
      -bash: cd: wireguard: Permission denied
      pi@pi:/etc $ cd ..
      pi@pi:/ $ cd home
      pi@pi:/home $ cd pi
      pi@pi:~ $ cd configs
      -bash: cd: configs: Permission denied
      pi@pi:~ $
      

      Edit 2
      Als root (nur zum nachsehen mit angemeldet) sehe ich den Inhalt.
      Was muss ich in der Konsole eingeben, damit der Nutzer pi zugriff auf /home/pi/configs erhält?

      EDIT 3
      Komme jetzt auf den Ordner.

      sudo chown -R pi:pi /home/pi/configs
      
      1 Reply Last reply Reply Quote 0
      • First post
        Last post

      Support us

      ioBroker
      Community Adapters
      Donate

      555
      Online

      31.7k
      Users

      79.8k
      Topics

      1.3m
      Posts

      1
      1
      262
      Loading More Posts
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes
      Reply
      • Reply as topic
      Log in to reply
      Community
      Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
      The ioBroker Community 2014-2023
      logo