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

    • 15. 05. Wartungsarbeiten am ioBroker Forum

    • Monatsrückblick - April 2025

    • Minor js-controller 7.0.7 Update in latest repo

    [Anleitung] WireGuard mit WireGuard-UI auf Proxmox

    This topic has been deleted. Only users with topic management privileges can see it.
    • 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
                                      • Johnny Englisch
                                        Johnny Englisch @CrunkFX last edited by

                                        @crunkfx

                                        Hi,

                                        ich habe es schon 1.000 mal nach dieser und anderer Anleitungen versucht.
                                        Es steht immer da das es sucessfully installed wurde ist jedoch nie über die 192.168.178.150:5000 (in meinem Falle) erreichbar.

                                        1 Reply Last reply Reply Quote 0
                                        • Johnny Englisch
                                          Johnny Englisch @CrunkFX last edited by

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

                                          @newbroker Kannst du den Installer nochmal ausführen und auf aktualisieren klicken.

                                          Falls das nichts bringt, mach bitte folgendes:

                                          nano /opt/wireguard-ui/db/server/global_settings.json
                                          

                                          In die neue Datei :

                                          {
                                                  "endpoint_address": "1.1.1.1",
                                                  "dns_servers": [
                                                          "1.1.1.1"
                                                  ],
                                                  "mtu": "1450",
                                                  "persistent_keepalive": "15",
                                                  "config_file_path": "/etc/wireguard/wg0.conf",
                                                  "updated_at": "2022-01-26T10:15:06.517454916Z"
                                          }
                                          

                                          einfügen und danach

                                          cd /opt/wireguard-ui
                                          ./wireguard-ui
                                          

                                          Okay... schien bei mir auch daran zu liegen

                                          Johnny Englisch 1 Reply Last reply Reply Quote 0
                                          • Johnny Englisch
                                            Johnny Englisch @Johnny Englisch last edited by

                                            Okay... schien bei mir auch daran zu liegen

                                            Nachdem ich diese Datei also per Hand beschrieben habe und den Container neu gestartet habe lief/ leuft es auch... die UI ist auch erreichbar und steuerbar.

                                            Nur habe ich keinen Traffic durch die VPN. Heißt ich kann mein Home Netz nichts erreichen und auch google (zum Beispiel) nicht.

                                            CrunkFX Johnny Englisch 2 Replies 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

                                            888
                                            Online

                                            31.6k
                                            Users

                                            79.4k
                                            Topics

                                            1.3m
                                            Posts

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