Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. [Anleitung] WireGuard mit WireGuard-UI auf Proxmox

    NEWS

    • ioBroker goes Matter ... Matter Adapter in Stable

    • 15. 05. Wartungsarbeiten am ioBroker Forum

    • Monatsrückblick - April 2025

    [Anleitung] WireGuard mit WireGuard-UI auf Proxmox

    This topic has been deleted. Only users with topic management privileges can see it.
    • E
      Einstein2002 @crunchip last edited by

      @crunchip Nein, läuft NICHT im Docker!
      Ist als CT direkt erstellt.
      Ich setzte gerade mal ein neues LXC CT auf um darauf zu testen.
      Brauche aber noch etwas Zeit.

      Ich schreibe sobald das system mit iob am start ist.

      1 Reply Last reply Reply Quote 0
      • E
        Einstein2002 @crunchip last edited by

        @crunchip ich glaub ich hab es gefunden,
        wenn ich unter proxmox auf die container consoloe gehe, mich als root einlogge dann komm ich drauf. Mache ich das unter Putty mit den gleichen Daten dann wird mir der Zugang verweigert.
        006ca5f7-ceeb-4240-8bb4-5eb97f230586-image.png

        Mit dem Benutzer michael geht beides.

        SSH und SUDO sind installiert.
        Was ist denn das jetzt wieder??

        Thomas Braun 1 Reply Last reply Reply Quote 0
        • Thomas Braun
          Thomas Braun Most Active @Einstein2002 last edited by

          @einstein2002 sagte in [Anleitung] WireGuard mit WireGuard-UI auf Proxmox:

          Was ist denn das jetzt wieder??

          root darf sich nicht von extern auf die Kiste einloggen. Sicherheitsrisiko.
          Deswegen wird ein Versuch abgelehnt. Und Nein, das stellt man nicht um.

          E 2 Replies Last reply Reply Quote 0
          • E
            Einstein2002 @Thomas Braun last edited by

            @thomas-braun Macht Sinn ✍

            1 Reply Last reply Reply Quote 0
            • E
              Einstein2002 @Thomas Braun last edited by

              @thomas-braun Dann hab ich jetzt auch überhaupt keine Idee mehr.
              Hab ein komplett neues iob aufgesetzt und genau das gleiche.
              Dann mach ich jetzt einen Haken dran und das Thema ist durch!
              Dann geht das nicht mit dem Adapter.

              Neuschwansteini crunchip 2 Replies Last reply Reply Quote 0
              • Neuschwansteini
                Neuschwansteini @Einstein2002 last edited by

                @einstein2002 doch das geht, laeuft ja hier und bestimmt woanders auch 🙂

                Denke, du hast dir da irgendwo was mit den Rechten vergeigt gehabt..

                1 Reply Last reply Reply Quote 0
                • crunchip
                  crunchip Forum Testing Most Active @Einstein2002 last edited by crunchip

                  @einstein2002 sagte in [Anleitung] WireGuard mit WireGuard-UI auf Proxmox:

                  Hab ein komplett neues iob aufgesetzt

                  Was aufgesetzt?

                  Halte dich doch an die Anleitung der Reihe nach, da wo Unklarheiten sind, nachfragen
                  Vieles kann man allerdings auch aus dem Thread herauslesen

                  E 2 Replies Last reply Reply Quote 0
                  • E
                    Einstein2002 @crunchip last edited by

                    @crunchip ich habe mir zum Test eben gerade ein neuen LXC mit DEBIAN 11 erstellt. Updates gemacht einen neuen User michael mit sudo rechten eingerichtet, die Zeitzone umgestellt.
                    Dann iobroker neu installiert
                    Und dann wireguard adapter installiert.
                    Gleicher Fehler.

                    crunchip 1 Reply Last reply Reply Quote 0
                    • E
                      Einstein2002 @crunchip last edited by

                      @crunchip könnte darin mein Fehler liegen?
                      Das ist aus der Anleitung.

                      I highly recommend the use of sudoers under Linux!

                      These security hints rely mainly on linux since it's security system is more complex than the windows one. On a Windows server you'll simply need to use an administrative user. Since the wg command (which is executed to grab the state of WireGuard) requires administrative permissions, think well of what you are doing here and how you configure the user you place in config. To protect these credentials as well as possible both - username and password - are encrypted.

                      Basically there are three ways to execute the command:

                      use an administrative user (root or similar). This will work but expose your entire server in case the credentials get lost/stolen.
                      use of SetUID-Bit: By setting this bit (as far as I understood) each and every user is allowed to execute the flagged file with administrative privileges without needing any password. This includes hackers. So setting this bit on the wg command exposes the entire wg-command with all it's power. If you like to do so execute chmod u+s /usr/bin/wg as an administrator.
                      use of sudoers: From my perspective, the most secure way is to set up a new simple user with basic privileges and add a simple line to the sudoers file which allows this user to execute the needed command without entering a password - and ONLY THIS command. Please refer to the documentation of your distribution for proper information on editing the sudoers file and using visudo. The screenshot below shows what needs to be added to the file. wireguard-monitoring-user is the user of your choice. The rest needs to be exactly like you see.
                      #iobroker.wireguard adapter
                      wireguard-monitoring-user ALL=NOPASSWD:/usr/bin/wg show all dump
                      This setting allows the <wireguard-monitoring-user> on ALL hosts to execute the wg show all dump command from the directory /usr/bin/ (may need to be changed on your distribution) without needing a password

                      Muss da noch etwas umgestellt werden??

                      Thomas Braun 1 Reply Last reply Reply Quote 0
                      • crunchip
                        crunchip Forum Testing Most Active @Einstein2002 last edited by crunchip

                        @einstein2002 warum iobroker neu, du musst doch wireguard auf nem lxc installieren und dieser muss funktionieren.
                        In iobroker selbst, stellst du die Verbindung mittels dem Adapter her um die Daten auszulesen. Dies tut aber nichts zur Sache zwecks Funktion von wireguard selbst.

                        E 1 Reply Last reply Reply Quote 0
                        • E
                          Einstein2002 @crunchip last edited by

                          @crunchip ja, das habe ich auch schon mehrfach gemacht, wollte mir mein Aktives System aber nicht weiter verdrehen.
                          Somit habe ich es gestoppt und teste jetzt auf einem system welches ich wieder einfach löschen kann.
                          Und jetzt versuche ich gerade diese sudoers datei zu bearbeiten. Da ist noch was mit den rechten? Ich weis es nicht aber ich versuche es halt nach dieser Anleitung.

                          https://github.com/Grizzelbee/ioBroker.wireguard#security-hints

                          crunchip 1 Reply Last reply Reply Quote 0
                          • Thomas Braun
                            Thomas Braun Most Active @Einstein2002 last edited by

                            @einstein2002 sagte in [Anleitung] WireGuard mit WireGuard-UI auf Proxmox:

                            Muss da noch etwas umgestellt werden??

                            Da muss dem user noch über visudo das Recht erteilt werden mit der Schnittstelle wg0 zu agieren.

                            E 2 Replies Last reply Reply Quote 0
                            • E
                              Einstein2002 @Thomas Braun last edited by

                              @thomas-braun ja soweit habe ich es mir auch zusammengereimt.
                              Aber ich brauche halt einfach etwas länger.

                              1 Reply Last reply Reply Quote 0
                              • crunchip
                                crunchip Forum Testing Most Active @Einstein2002 last edited by

                                @einstein2002 gibt auch ein "fertiges Paket"
                                https://tteck.github.io/Proxmox/

                                E 1 Reply Last reply Reply Quote 1
                                • E
                                  Einstein2002 @Thomas Braun last edited by

                                  @thomas-braun Das war der Fehler
                                  mit
                                  visudo
                                  diese zwei zeilen hinzugefügt
                                  #iobroker.wireguard adapter
                                  wireguard-monitoring-user ALL=NOPASSWD:/usr/bin/wg show all dump
                                  gespeichert und es läuft.
                                  Den Haken sudo habe ich nicht gesetzt.
                                  Und damit bekomme ich die Daten wie gewünscht.
                                  Auch auf meinem Aktiv System.
                                  Für den Fall es interessiert noch jemand.

                                  Grüße und schönes Wochenende

                                  1 Reply Last reply Reply Quote 1
                                  • E
                                    Einstein2002 @crunchip last edited by

                                    @crunchip Das schau ich mir später an, sieht sehr vielversprechend aus. Danke für den link

                                    Stephan Schleich 1 Reply Last reply Reply Quote 0
                                    • Stephan Schleich
                                      Stephan Schleich @Einstein2002 last edited by

                                      Also bei mir dauert es bis zu 5 Sekunden bis ein Handshake ausgehandelt ist, weiß jemand woran das liegen kann? Dies verursacht bei mir auch diese Timeouts

                                      1 Reply Last reply Reply Quote 0
                                      • Negalein
                                        Negalein Global Moderator last edited by

                                        Hallo
                                        Ich versuchs mal hier, mit der Hoffnung auf Hilfe! 🙂

                                        Frage an die Netzwerkfreaks 😉

                                        Wireguard läuft.
                                        Ich kann auch auf alles im Netzwerk zugreifen.
                                        Nur auf die Netzwerkfreigaben komm ich nicht.
                                        1659566841394-51718428-e42b-4f88-b9ae-697df1a211bf-image.png
                                        Warum funktioniert das nicht?
                                        Gibt es noch Einstellungen dafür?

                                        Host: Windows 10 pro
                                        Freigabe: Synology NAS

                                        E 1 Reply Last reply Reply Quote 0
                                        • E
                                          Einstein67 @Negalein last edited by Einstein67

                                          @negalein said in [Anleitung] WireGuard mit WireGuard-UI auf Proxmox:

                                          Gibt es noch Einstellungen dafür?

                                          Hast du im WG-Clienten diese Checkbox deaktiviert?

                                          Screenshot 2022-08-08 065355.png

                                          So geht bei mir auch der Zugriff auf alle LAN-Freigaben/Geräte.

                                          Negalein 2 Replies Last reply Reply Quote 1
                                          • Negalein
                                            Negalein Global Moderator @Einstein67 last edited by

                                            @einstein67 sagte in [Anleitung] WireGuard mit WireGuard-UI auf Proxmox:

                                            So geht bei mir auch der Zugriff auf alle LAN-Freigaben/Geräte.

                                            Danke, das wars! 🙂

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate
                                            FAQ Cloud / IOT
                                            HowTo: Node.js-Update
                                            HowTo: Backup/Restore
                                            Downloads
                                            BLOG

                                            629
                                            Online

                                            31.6k
                                            Users

                                            79.5k
                                            Topics

                                            1.3m
                                            Posts

                                            portforwarding portfreigabe portfreischaltung proxmox vpn wireguard wireguard ios app
                                            64
                                            603
                                            123762
                                            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