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

    • Monatsrückblick - April 2025

    • Minor js-controller 7.0.7 Update in latest repo

    • Save The Date: ioBroker@Smart Living Forum Solingen, 14.06.

    [Anleitung] WireGuard mit WireGuard-UI auf Proxmox

    This topic has been deleted. Only users with topic management privileges can see it.
    • crunchip
      crunchip Forum Testing Most Active @CrunkFX last edited by crunchip

      @crunkfx ja hatte ich

      1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
          link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
          inet 127.0.0.1/8 scope host lo
             valid_lft forever preferred_lft forever
          inet6 ::1/128 scope host 
             valid_lft forever preferred_lft forever
      2: eth0@if43: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
          link/ether fe:8b:dc:86:6e:51 brd ff:ff:ff:ff:ff:ff link-netnsid 0
          inet 10.1.1.21/24 brd 10.1.1.255 scope global eth0
             valid_lft forever preferred_lft forever
          inet6 fe80::fc8b:dcff:fe86:6e51/64 scope link 
             valid_lft forever preferred_lft forever
      3: wg0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1450 qdisc mq state UNKNOWN group default qlen 500
          link/none 
          inet 10.252.1.0/24 scope global wg0
             valid_lft forever preferred_lft forever
          inet6 fe80::e128:9915:e0b1:325d/64 scope link stable-privacy 
             valid_lft forever preferred_lft forever
      4: docker0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default 
          link/ether 02:42:e4:53:d0:58 brd ff:ff:ff:ff:ff:ff
          inet 172.17.0.1/16 brd 172.17.255.255 scope global docker0
             valid_lft forever preferred_lft forever
      

      ich setz ihn einfach nochmal neu auf

      edit, hab ein zweites handy hinzugefügt, CT nochmal neu gestartet, Verbindung funktioniert wieder, Status bleibt aber dennoch leer

      CrunkFX 1 Reply Last reply Reply Quote 0
      • CrunkFX
        CrunkFX Forum Testing @crunchip last edited by

        @crunchip Denk an Nesting und keyctl für Docker. Bevor du neuinstalliert versuch nochmal

        wg-quick down wg0 && wg-quick up wg0
        
        crunchip 1 Reply Last reply Reply Quote 0
        • crunchip
          crunchip Forum Testing Most Active @CrunkFX last edited by

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

          wg-quick down wg0 && wg-quick up wg0

          root@Wireguard:~# wg-quick down wg0 && wg-quick up wg0
          [#] ip link delete dev wg0
          [#] iptables -D FORWARD -i wg0 -j ACCEPT; iptables -D FORWARD -o wg0 -j ACCEPT; iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE
          [#] ip link add wg0 type wireguard
          Error: Unknown device type.
          [#] ip link delete dev wg0
          Cannot find device "wg0"
          
          CrunkFX 1 Reply Last reply Reply Quote 0
          • CrunkFX
            CrunkFX Forum Testing @crunchip last edited by

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

            Error: Unknown device type.

            Nutzt du Ubuntu? Wenn ja welches? Und welche Version von Proxmox

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

              @crunkfx Ubuntu 21.04, bei Proxmox bin ich noch auf v 6,4

              irgendwas stimmt mit dem CT nicht, sehe gerade der is bei nahezu 100% Auslastung
              ich mach den mal weg und morgen in aller Ruhe nochmal neu

              aber trotzdem erstmal Danke für deine Anleitung und natürlich für deine Hilfe👍

              CrunkFX 1 Reply Last reply Reply Quote 0
              • CrunkFX
                CrunkFX Forum Testing @crunchip last edited by

                @crunchip Es sieht so aus als würden die die Kernel Header fehlen. Ich muss mal schauen ob ich die Anleitung erweitere. Mit den neuen Proxmox Versionen werden diese mitgeliefert.

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

                  @crunkfx ah ok, kein Stress Verbindung hatte ja funktioniert, vllt teste ich morgen mal ne andere ubuntu version

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

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

                    Portfreigabe im Router (Protokoll: UDP, Port: 51820 , auf die IP Adresse des neuen Linux Containers)
                    !!! Keine Portfreigabe auf den im späteren Verlauf erstellten Port 5000 setzen !!!

                    Hallo

                    Du schreibst hier, "Keine Portfreigabe auf den im späteren Verlauf erstellten Port 5000 setzen".

                    Damit meinst du den externen. Intern muss schon auf den 5000er geroutet werden.
                    Oder versteh ich das falsch?

                    FRITZ!Box 7583 VDSL.png

                    CrunkFX 1 Reply Last reply Reply Quote 0
                    • CrunkFX
                      CrunkFX Forum Testing @Negalein last edited by CrunkFX

                      @negalein Nein, Port 5000 ist nur zum öffnen von WireGuard UI und hat mit dem eigentlichen VPN nichts zu tun. Wenn du WireGuard extern freigeben willst musst du intern und extern Port 51820 freigeben mit UDP.

                      PORT 5000 bitte in keinem Fall von außen erreichbar machen!

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

                        @CrunkFX

                        Verbindung steht! 🙂

                        Unter "Connected Peers" wird mir wie bei @crunchip auch nichts angezeigt.

                        CrunkFX 1 Reply Last reply Reply Quote 0
                        • CrunkFX
                          CrunkFX Forum Testing @Negalein last edited by

                          @negalein Kannst auch du mir den Output von

                          nano /root/wireguard-ui/docker-compose.yml
                          
                          

                          zeigen?

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

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

                            zeigen

                            version: '3'
                            
                            services:
                              wg:
                                image: ngoduykhanh/wireguard-ui:latest
                                container_name: wgui
                                ports:
                                  - 5000:5000
                                logging:
                                  driver: json-file
                                  options:
                                    max-size: 50m
                                volumes:
                                  - ./db:/app/db
                                  - /etc/wireguard:/etc/wireguard
                                restart: always
                                cap_add:
                                    - NET_ADMIN
                                network_mode: host
                            
                            CrunkFX 1 Reply Last reply Reply Quote 0
                            • CrunkFX
                              CrunkFX Forum Testing @Negalein last edited by

                              @negalein Was sagt bei dir

                              wg-quick down wg0 && wg-quick up wg0
                              
                              Negalein 1 Reply Last reply Reply Quote 0
                              • Negalein
                                Negalein Global Moderator @CrunkFX last edited by

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

                                Was sagt bei dir

                                [#] ip link delete dev wg0
                                [#] iptables -D FORWARD -i wg0 -j ACCEPT; iptables -D FORWARD -o wg0 -j ACCEPT; iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE
                                [#] ip link add wg0 type wireguard
                                Error: Unknown device type.
                                [#] ip link delete dev wg0
                                Cannot find device "wg0"
                                
                                CrunkFX 1 Reply Last reply Reply Quote 0
                                • CrunkFX
                                  CrunkFX Forum Testing @Negalein last edited by

                                  @negalein OK dann haben wir ein Problem. Auch bei dir fehlen die Kernel Header. Ich vermute, dass deine Proxmox Version auch nicht die neueste ist oder?

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

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

                                    Ich vermute, dass deine Proxmox Version auch nicht die neueste ist oder?

                                    stimmt, hab auch noch 6.4-9

                                    wäre es einfach upzudaten?

                                    CrunkFX 1 Reply Last reply Reply Quote 0
                                    • CrunkFX
                                      CrunkFX Forum Testing @Negalein last edited by CrunkFX

                                      @negalein Ich habe leider keine V6 mehr am laufen. Lt. Doku müsste es so gehen:

                                      Auf dem Host nacheinander ausführen:

                                      echo 'deb http://ftp.debian.org/debian buster-backports main contrib' >> /etc/apt/sources.list.d/buster-backports.list
                                      
                                      apt update
                                      
                                      apt install pve-headers
                                      
                                      apt install wireguard-dkms
                                      

                                      Auf dem Container ausführen:

                                      apt install --no-install-recommends wireguard-tools
                                      

                                      EDIT bitte so ausführen

                                      Negalein dslraser 3 Replies Last reply Reply Quote 0
                                      • Negalein
                                        Negalein Global Moderator @CrunkFX last edited by

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

                                        Auf dem Container ausführen:

                                        auch schon bei Proxmox 6.4?

                                        Btw. ist der Container, obwohl keine Verbindung besteht, immer wieder für längere Zeit auf 100%

                                        proxmox - Proxmox Virtual Environment (2).png

                                        CrunkFX 1 Reply Last reply Reply Quote 0
                                        • CrunkFX
                                          CrunkFX Forum Testing @Negalein last edited by

                                          @negalein Ja den container kannst du bis nach der installation der header stoppen

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

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

                                            Auf dem Container ausführen:

                                            root@Wireguard-VPN:~# apt install --no-install-recommends wireguard-tools
                                            Reading package lists... Done
                                            Building dependency tree       
                                            Reading state information... Done
                                            wireguard-tools is already the newest version (1.0.20200513-1~20.04.2).
                                            0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
                                            
                                            CrunkFX 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

                                            905
                                            Online

                                            31.6k
                                            Users

                                            79.4k
                                            Topics

                                            1.3m
                                            Posts

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