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

    • Neuer Blog: Fotos und Eindrücke aus Solingen

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    [Anleitung] WireGuard mit WireGuard-UI auf Proxmox

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

      @negalein Ja besser, kannst mich gerne Verlinken

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

        @crunkfx Vielen Dank für die Info
        Jetzt muss ich mir mal in Ruhe überlegen, ob ich den Umweg über den Kernel mache, oder auf v7 wechsel. Allerdings befürchte ich, das der Wechsel auf v7 nicht so reibungslos läuft.

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

          @crunkfx
          Moin, also den ersten Client (mein Handy) habe ich jetzt erfolgreich eingebunden und es funktioniert, vielen Dank für Deine Anleitung 👍
          Trotzdem noch ein kleines Problemchen. Im Status von der Web UI wird mir die falsche Uhrzeit für die letzte Verbindung angezeigt (1 Stunde)
          Im LXC habe ich die Uhrzeit schon richtig eingestellt und auch den LXC neu gestartet, aber es bleibt „falsch“.
          Wie kann ich das korrigieren ?

          Bildschirmfoto 2021-11-10 um 11.09.33.png

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

            @dslraser Gute Frage,
            ich denke das die Zeitzone im Docker Container nicht stimmt.
            Um das zu beheben muss du folgendes tun:

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

            Dann den Inhalt gegen das austauschen:

            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
                environment:
                    - TZ=Europe/Berlin
            
            cd /root/wireguard-ui
            
            docker-compose up
            

            und in der folgenden Error Nachricht die Container ID kopieren. (ohne "")
            Und in dem nachfolgenden Befehl CONTAINERID durch die eben kopierte ID ersetzen

            docker stop CONTAINERID
            
            docker system prune -a
            
            docker-compose up -d
            
            dslraser 1 Reply Last reply Reply Quote 0
            • dslraser
              dslraser Forum Testing Most Active @CrunkFX last edited by

              @crunkfx

              Hm... ändert nix. Hier die Ausgabe:

               GNU nano 5.4                                          /root/wireguard-ui/docker-compose.yml                                                   
              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
                 environment:
                     - TZ=Europe/Berlin
              
              
              
              
              root@wireguard-server:~# cd /root/wireguard-ui
              root@wireguard-server:~/wireguard-ui# docker-compose up
              wgui is up-to-date
              Attaching to wgui
              wgui  | Wireguard UI
              wgui  | App Version     : development
              wgui  | Git Commit      : N/A
              wgui  | Git Ref         : N/A
              wgui  | Build Time      : 11-10-2021 10:21:06
              wgui  | Git Repo        : https://github.com/ngoduykhanh/wireguard-ui
              wgui  | Authentication  : true
              wgui  | Bind address    : 0.0.0.0:5000
              wgui  | Email from      : 
              wgui  | Email from name : WireGuard UI
              wgui  | ⇨ http server started on [::]:5000
              wgui  | {"time":"2021-11-10T10:21:36.761398216Z","id":"","remote_ip":"127.0.0.1","host":"127.0.0.1:5000","method":"GET","uri":"/login","user_agent":"Wget","status":200,"error":"","latency":48707,"latency_human":"48.707µs","bytes_in":0,"bytes_out":4877}
              wgui  | {"time":"2021-11-10T10:22:06.87241135Z","id":"","remote_ip":"127.0.0.1","host":"127.0.0.1:5000","method":"GET","uri":"/login","user_agent":"Wget","status":200,"error":"","latency":52432,"latency_human":"52.432µs","bytes_in":0,"bytes_out":4877}
              wgui  | {"time":"2021-11-10T10:22:36.992701099Z","id":"","remote_ip":"127.0.0.1","host":"127.0.0.1:5000","method":"GET","uri":"/login","user_agent":"Wget","status":200,"error":"","latency":50188,"latency_human":"50.188µs","bytes_in":0,"bytes_out":4877}
              wgui  | {"time":"2021-11-10T10:23:07.077299124Z","id":"","remote_ip":"127.0.0.1","host":"127.0.0.1:5000","method":"GET","uri":"/login","user_agent":"Wget","status":200,"error":"","latency":60484,"latency_human":"60.484µs","bytes_in":0,"bytes_out":4877}
              wgui  | {"time":"2021-11-10T10:23:37.180112159Z","id":"","remote_ip":"127.0.0.1","host":"127.0.0.1:5000","method":"GET","uri":"/login","user_agent":"Wget","status":200,"error":"","latency":52862,"latency_human":"52.862µs","bytes_in":0,"bytes_out":4877}
              wgui  | {"time":"2021-11-10T10:24:07.276560713Z","id":"","remote_ip":"127.0.0.1","host":"127.0.0.1:5000","method":"GET","uri":"/login","user_agent":"Wget","status":200,"error":"","latency":99525,"latency_human":"99.525µs","bytes_in":0,"bytes_out":4877}
              wgui  | Wireguard UI
              wgui  | App Version     : development
              wgui  | Git Commit      : N/A
              wgui  | Git Ref         : N/A
              wgui  | Build Time      : 11-10-2021 10:24:25
              wgui  | Git Repo        : https://github.com/ngoduykhanh/wireguard-ui
              wgui  | Authentication  : true
              wgui  | Bind address    : 0.0.0.0:5000
              wgui  | Email from      : 
              wgui  | Email from name : WireGuard UI
              wgui  | ⇨ http server started on [::]:5000
              wgui  | {"time":"2021-11-10T10:24:33.773687718Z","id":"","remote_ip":"192.168.1.99","host":"192.168.1.242:5000","method":"GET","uri":"/status","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36","status":200,"error":"","latency":1252836,"latency_human":"1.252836ms","bytes_in":0,"bytes_out":20441}
              wgui  | {"time":"2021-11-10T10:24:41.371588483Z","id":"","remote_ip":"192.168.1.99","host":"192.168.1.242:5000","method":"GET","uri":"/","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36","status":200,"error":"","latency":6603353,"latency_human":"6.603353ms","bytes_in":0,"bytes_out":39576}
              wgui  | {"time":"2021-11-10T10:24:41.476645561Z","id":"","remote_ip":"192.168.1.99","host":"192.168.1.242:5000","method":"GET","uri":"/api/clients?_=1636539881346","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36","status":200,"error":"","latency":4641102,"latency_human":"4.641102ms","bytes_in":0,"bytes_out":2486}
              wgui  | {"time":"2021-11-10T10:24:44.883745036Z","id":"","remote_ip":"192.168.1.99","host":"192.168.1.242:5000","method":"GET","uri":"/status","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36","status":200,"error":"","latency":465688,"latency_human":"465.688µs","bytes_in":0,"bytes_out":20441}
              wgui  | {"time":"2021-11-10T10:24:48.431994484Z","id":"","remote_ip":"192.168.1.99","host":"192.168.1.242:5000","method":"GET","uri":"/status","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36","status":200,"error":"","latency":524249,"latency_human":"524.249µs","bytes_in":0,"bytes_out":20441}
              wgui  | {"time":"2021-11-10T10:24:55.917423916Z","id":"","remote_ip":"127.0.0.1","host":"127.0.0.1:5000","method":"GET","uri":"/login","user_agent":"Wget","status":200,"error":"","latency":55780,"latency_human":"55.78µs","bytes_in":0,"bytes_out":4877}
              wgui  | {"time":"2021-11-10T10:25:01.372533458Z","id":"","remote_ip":"192.168.1.99","host":"192.168.1.242:5000","method":"GET","uri":"/","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36","status":200,"error":"","latency":4616653,"latency_human":"4.616653ms","bytes_in":0,"bytes_out":39576}
              wgui  | {"time":"2021-11-10T10:25:01.477695135Z","id":"","remote_ip":"192.168.1.99","host":"192.168.1.242:5000","method":"GET","uri":"/api/clients?_=1636539901349","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36","status":200,"error":"","latency":4478148,"latency_human":"4.478148ms","bytes_in":0,"bytes_out":2486}
              wgui  | {"time":"2021-11-10T10:25:03.926855707Z","id":"","remote_ip":"192.168.1.99","host":"192.168.1.242:5000","method":"GET","uri":"/logout","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36","status":307,"error":"","latency":361020,"latency_human":"361.02µs","bytes_in":0,"bytes_out":0}
              wgui  | {"time":"2021-11-10T10:25:03.937229755Z","id":"","remote_ip":"192.168.1.99","host":"192.168.1.242:5000","method":"GET","uri":"/login","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36","status":200,"error":"","latency":52936,"latency_human":"52.936µs","bytes_in":0,"bytes_out":4877}
              wgui  | {"time":"2021-11-10T10:25:11.543188413Z","id":"","remote_ip":"192.168.1.99","host":"192.168.1.242:5000","method":"POST","uri":"/login","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36","status":200,"error":"","latency":1001679,"latency_human":"1.001679ms","bytes_in":39,"bytes_out":51}
              wgui  | {"time":"2021-11-10T10:25:11.565509749Z","id":"","remote_ip":"192.168.1.99","host":"192.168.1.242:5000","method":"GET","uri":"/","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36","status":200,"error":"","latency":4320230,"latency_human":"4.32023ms","bytes_in":0,"bytes_out":39576}
              wgui  | {"time":"2021-11-10T10:25:11.650761221Z","id":"","remote_ip":"192.168.1.99","host":"192.168.1.242:5000","method":"GET","uri":"/api/clients?_=1636539911515","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36","status":200,"error":"","latency":5072922,"latency_human":"5.072922ms","bytes_in":0,"bytes_out":2486}
              wgui  | {"time":"2021-11-10T10:25:15.501399504Z","id":"","remote_ip":"192.168.1.99","host":"192.168.1.242:5000","method":"GET","uri":"/api/client/c65pbm9hrfns73drfh20?_=1636539911516","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36","status":200,"error":"","latency":4017299,"latency_human":"4.017299ms","bytes_in":0,"bytes_out":2484}
              wgui  | {"time":"2021-11-10T10:25:17.146884254Z","level":"INFO","prefix":"-","file":"routes.go","line":"283","message":"Updated client information successfully => {c65pbm9hrfns73drfh20 GJT9E6t4zthpGtCcEPBCqikez2evDu+/iXosRugEol8= K6kUvylaAhqZHRTZuRVqc2JAfgtICeQ845h1nLPPykc= h76kU99nrgF75Pf6myFsYiN3qq15aQMpxpot88kNuTw= Heiko heiko.huebner@freenet.de [10.252.1.1/32] [0.0.0.0/0] true true 2021-11-10 09:50:17.600248339 +0000 UTC 2021-11-10 10:25:17.146515034 +0000 UTC}"}
              wgui  | {"time":"2021-11-10T10:25:17.147301211Z","id":"","remote_ip":"192.168.1.99","host":"192.168.1.242:5000","method":"POST","uri":"/update-client","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36","status":200,"error":"","latency":1049919,"latency_human":"1.049919ms","bytes_in":178,"bytes_out":56}
              wgui  | {"time":"2021-11-10T10:25:17.171009147Z","id":"","remote_ip":"192.168.1.99","host":"192.168.1.242:5000","method":"GET","uri":"/","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36","status":200,"error":"","latency":3760391,"latency_human":"3.760391ms","bytes_in":0,"bytes_out":39576}
              wgui  | {"time":"2021-11-10T10:25:17.254174737Z","id":"","remote_ip":"192.168.1.99","host":"192.168.1.242:5000","method":"GET","uri":"/api/clients?_=1636539917119","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36","status":200,"error":"","latency":4547507,"latency_human":"4.547507ms","bytes_in":0,"bytes_out":2486}
              wgui  | {"time":"2021-11-10T10:25:20.607641941Z","id":"","remote_ip":"192.168.1.99","host":"192.168.1.242:5000","method":"GET","uri":"/api/apply-wg-config?_=1636539917120","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36","status":200,"error":"","latency":823157,"latency_human":"823.157µs","bytes_in":0,"bytes_out":63}
              wgui  | {"time":"2021-11-10T10:25:22.534135825Z","id":"","remote_ip":"192.168.1.99","host":"192.168.1.242:5000","method":"GET","uri":"/wg-server","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36","status":200,"error":"","latency":303993,"latency_human":"303.993µs","bytes_in":0,"bytes_out":29727}
              wgui  | {"time":"2021-11-10T10:25:25.99436097Z","id":"","remote_ip":"127.0.0.1","host":"127.0.0.1:5000","method":"GET","uri":"/login","user_agent":"Wget","status":200,"error":"","latency":47348,"latency_human":"47.348µs","bytes_in":0,"bytes_out":4877}
              wgui  | {"time":"2021-11-10T10:25:27.455477987Z","level":"INFO","prefix":"-","file":"routes.go","line":"410","message":"Updated wireguard server interfaces settings: {[10.252.1.0/24] 51820 2021-11-10 10:25:27.455278751 +0000 UTC iptables -A FORWARD -i %i -j ACCEPT; iptables -A FORWARD -o %i -j ACCEPT; iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE iptables -D FORWARD -i %i -j ACCEPT; iptables -D FORWARD -o %i -j ACCEPT; iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE}"}
              wgui  | {"time":"2021-11-10T10:25:27.455502193Z","id":"","remote_ip":"192.168.1.99","host":"192.168.1.242:5000","method":"POST","uri":"/wg-server/interfaces","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36","status":200,"error":"","latency":313052,"latency_human":"313.052µs","bytes_in":333,"bytes_out":69}
              wgui  | {"time":"2021-11-10T10:25:31.275174473Z","id":"","remote_ip":"192.168.1.99","host":"192.168.1.242:5000","method":"GET","uri":"/global-settings","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36","status":200,"error":"","latency":186383,"latency_human":"186.383µs","bytes_in":0,"bytes_out":28747}
              wgui  | {"time":"2021-11-10T10:25:36.949468533Z","id":"","remote_ip":"192.168.1.99","host":"192.168.1.242:5000","method":"GET","uri":"/api/apply-wg-config?_=1636539931225","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36","status":200,"error":"","latency":756814,"latency_human":"756.814µs","bytes_in":0,"bytes_out":63}
              wgui  | {"time":"2021-11-10T10:25:38.516461566Z","id":"","remote_ip":"192.168.1.99","host":"192.168.1.242:5000","method":"GET","uri":"/status","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36","status":200,"error":"","latency":459481,"latency_human":"459.481µs","bytes_in":0,"bytes_out":20441}
              wgui  | {"time":"2021-11-10T10:25:54.061349484Z","id":"","remote_ip":"192.168.1.99","host":"192.168.1.242:5000","method":"GET","uri":"/status","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36","status":200,"error":"","latency":438869,"latency_human":"438.869µs","bytes_in":0,"bytes_out":20479}
              wgui  | {"time":"2021-11-10T10:25:56.089193741Z","id":"","remote_ip":"127.0.0.1","host":"127.0.0.1:5000","method":"GET","uri":"/login","user_agent":"Wget","status":200,"error":"","latency":47443,"latency_human":"47.443µs","bytes_in":0,"bytes_out":4877}
              wgui  | {"time":"2021-11-10T10:26:00.735959779Z","id":"","remote_ip":"192.168.1.99","host":"192.168.1.242:5000","method":"GET","uri":"/wg-server","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36","status":200,"error":"","latency":248849,"latency_human":"248.849µs","bytes_in":0,"bytes_out":29727}
              wgui  | {"time":"2021-11-10T10:26:26.207865725Z","id":"","remote_ip":"127.0.0.1","host":"127.0.0.1:5000","method":"GET","uri":"/login","user_agent":"Wget","status":200,"error":"","latency":47172,"latency_human":"47.172µs","bytes_in":0,"bytes_out":4877}
              wgui  | {"time":"2021-11-10T10:26:56.299700036Z","id":"","remote_ip":"127.0.0.1","host":"127.0.0.1:5000","method":"GET","uri":"/login","user_agent":"Wget","status":200,"error":"","latency":46552,"latency_human":"46.552µs","bytes_in":0,"bytes_out":4877}
              wgui  | {"time":"2021-11-10T10:27:26.400015928Z","id":"","remote_ip":"127.0.0.1","host":"127.0.0.1:5000","method":"GET","uri":"/login","user_agent":"Wget","status":200,"error":"","latency":46847,"latency_human":"46.847µs","bytes_in":0,"bytes_out":4877}
              wgui  | {"time":"2021-11-10T10:27:56.50027555Z","id":"","remote_ip":"127.0.0.1","host":"127.0.0.1:5000","method":"GET","uri":"/login","user_agent":"Wget","status":200,"error":"","latency":48831,"latency_human":"48.831µs","bytes_in":0,"bytes_out":4877}
              docker stop 100
              wgui  | {"time":"2021-11-10T10:28:26.620845506Z","id":"","remote_ip":"127.0.0.1","host":"127.0.0.1:5000","method":"GET","uri":"/login","user_agent":"Wget","status":200,"error":"","latency":48440,"latency_human":"48.44µs","bytes_in":0,"bytes_out":4877}
              docker system prune -a
              docker-compose up -d
              wgui  | {"time":"2021-11-10T10:28:56.729088371Z","id":"","remote_ip":"127.0.0.1","host":"127.0.0.1:5000","method":"GET","uri":"/login","user_agent":"Wget","status":200,"error":"","latency":46536,"latency_human":"46.536µs","bytes_in":0,"bytes_out":4877}
              wgui  | {"time":"2021-11-10T10:29:26.864919676Z","id":"","remote_ip":"127.0.0.1","host":"127.0.0.1:5000","method":"GET","uri":"/login","user_agent":"Wget","status":200,"error":"","latency":41497,"latency_human":"41.497µs","bytes_in":0,"bytes_out":4877}
              wgui  | {"time":"2021-11-10T10:29:57.006133106Z","id":"","remote_ip":"127.0.0.1","host":"127.0.0.1:5000","method":"GET","uri":"/login","user_agent":"Wget","status":200,"error":"","latency":44548,"latency_human":"44.548µs","bytes_in":0,"bytes_out":4877}
              wgui  | {"time":"2021-11-10T10:30:27.108372782Z","id":"","remote_ip":"127.0.0.1","host":"127.0.0.1:5000","method":"GET","uri":"/login","user_agent":"Wget","status":200,"error":"","latency":48263,"latency_human":"48.263µs","bytes_in":0,"bytes_out":4877}
              wgui  | {"time":"2021-11-10T10:30:57.21280554Z","id":"","remote_ip":"127.0.0.1","host":"127.0.0.1:5000","method":"GET","uri":"/login","user_agent":"Wget","status":200,"error":"","latency":48096,"latency_human":"48.096µs","bytes_in":0,"bytes_out":4877}
              
              

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

                @dslraser
                Mach mal strg + c
                und dann
                Zeig mal bitte

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

                  @crunkfx
                  Jetzt sehe ich erst die ID (die hatte ich vorhin garnicht gesehen und habe die "Container Nummer" genommen.

                  Hier die Ausgabe

                  Welcome to Ubuntu 21.04 (GNU/Linux 5.11.22-7-pve x86_64)
                  
                   * Documentation:  https://help.ubuntu.com
                   * Management:     https://landscape.canonical.com
                   * Support:        https://ubuntu.com/advantage
                  New release '21.10' available.
                  Run 'do-release-upgrade' to upgrade to it.
                  
                  Last login: Wed Nov 10 11:26:15 CET 2021 on tty1
                  root@wireguard-server:~# docker ps
                  CONTAINER ID   IMAGE                             COMMAND     CREATED          STATUS                             PORTS     NAMES
                  7ccf43dc63b2   ngoduykhanh/wireguard-ui:latest   "./wg-ui"   13 minutes ago   Up 12 seconds (health: starting)             wgui
                  root@wireguard-server:~# 
                  
                  CrunkFX 1 Reply Last reply Reply Quote 0
                  • CrunkFX
                    CrunkFX Forum Testing @dslraser last edited by

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

                    7ccf43dc63b2

                    Dann:

                    docker stop 7ccf43dc63b2
                    
                    docker system prune
                    
                    docker-compose up -d
                    
                    dslraser 1 Reply Last reply Reply Quote 0
                    • dslraser
                      dslraser Forum Testing Most Active @CrunkFX last edited by dslraser

                      @crunkfx

                      Jetzt ist die WEB UI nicht mehr erreichbar ?

                      
                      Ubuntu 21.04 wireguard-server tty1
                      
                      wireguard-server login: root
                      Password: 
                      Welcome to Ubuntu 21.04 (GNU/Linux 5.11.22-7-pve x86_64)
                      
                       * Documentation:  https://help.ubuntu.com
                       * Management:     https://landscape.canonical.com
                       * Support:        https://ubuntu.com/advantage
                      New release '21.10' available.
                      Run 'do-release-upgrade' to upgrade to it.
                      
                      Last login: Wed Nov 10 11:34:39 CET 2021 on tty1
                      root@wireguard-server:~# docker stop 7ccf43dc63b2
                      7ccf43dc63b2
                      root@wireguard-server:~# docker system prune
                      WARNING! This will remove:
                        - all stopped containers
                        - all networks not used by at least one container
                        - all dangling images
                        - all dangling build cache
                      
                      Are you sure you want to continue? [y/N] y
                      Deleted Containers:
                      7ccf43dc63b278d6ec44d1b54a23d391d3cfbaa5beaaa70eedadb1c84e35ee38
                      
                      Total reclaimed space: 0B
                      root@wireguard-server:~# docker-compose up -d
                      ERROR: 
                              Can't find a suitable configuration file in this directory or any
                              parent. Are you in the right directory?
                      
                              Supported filenames: docker-compose.yml, docker-compose.yaml
                              
                      root@wireguard-server:~# 
                      

                      EDIT: soll ich den LXC neu machen ?

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

                        @dslraser Nein,

                        cd /root/wireguard-ui
                        
                        docker-compose up -d
                        
                        dslraser 1 Reply Last reply Reply Quote 1
                        • dslraser
                          dslraser Forum Testing Most Active @CrunkFX last edited by dslraser

                          @crunkfx
                          UI ist wieder da. Uhrzeit ist unverändert

                          Bildschirmfoto 2021-11-10 um 11.49.23.png

                          Edit: auch auf GitHub werden die Clients mit der "normalen" Uhrzeit angezeigt

                          Bildschirmfoto 2021-11-10 um 11.50.13.png

                          Bei mir sieht das so aus (nur ein Teil der Anzeige---im Rest stehen meine Daten)

                          Bildschirmfoto 2021-11-10 um 11.51.12.png

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

                            @dslraser Sind die QR-Codes safe? Sonst nimm die raus. Ich schaue mir das hier derweil an

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

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

                              Sind die QR-Codes safe? Sonst nimm die raus. Ich schaue mir das hier derweil an

                              meine sind doch gar nicht zu sehen...? Das ist der Screenshot von Github (Ich wollte damit nur zeigen das die Uhrzeiten dort in dem Beispiel "richtig" angezeigt werden.

                              https://github.com/ngoduykhanh/wireguard-ui

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

                                @dslraser Sorry falsch geguckt

                                dslraser 2 Replies Last reply Reply Quote 1
                                • dslraser
                                  dslraser Forum Testing Most Active @CrunkFX last edited by

                                  @crunkfx

                                  hat das hiermit zu tun ?

                                  https://github.com/ngoduykhanh/wireguard-ui/blob/master/main.go#L24

                                  oder hier

                                  https://github.com/ngoduykhanh/wireguard-ui/blob/master/main.go#L66

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

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

                                    hat das hiermit zu tun ?

                                    Ich hab auch dieses Phänomen.
                                    Finde dazu diesen Beitrag. Aber was zu tun ist check ich nicht.

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

                                      @crunkfx

                                      hast Du diesen hier mal getestet ?

                                      https://github.com/perara/wg-manager

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

                                        @dslraser Danke dafür, in der tat eine sehr schöne alternative zu WireGuard-UI.

                                        Wer diese alternative nutzen möchte kann das ganze wie folgt installieren, nachdem er meine Anleitung oben befolgt hat:

                                        wg-quick down wg0
                                        
                                        docker kill $(docker ps -q)
                                        
                                        docker system prune
                                        

                                        Mit Y bestätigen

                                        rm -r /root/wireguard-ui && mkdir /root/wg-manager && cd /root/wg-manager && nano docker-compose.yml
                                        

                                        In die Datei folgendes einfügen:

                                        version: "2.1"
                                        services:
                                          wireguard:
                                            container_name: wg-manager
                                            image: perara/wg-manager
                                            restart: always
                                            sysctls:
                                              net.ipv6.conf.all.disable_ipv6: 0  # Required for IPV6
                                            cap_add:
                                              - NET_ADMIN
                                            #network_mode: host # Alternatively
                                            ports:
                                               - 51800-51900:51800-51900/udp
                                               - 8888:8888
                                            volumes:
                                              - ./wg-manager:/config
                                            environment:
                                              HOST: 0.0.0.0
                                              PORT: 8888
                                              ADMIN_USERNAME: admin
                                              ADMIN_PASSWORD: admin
                                              WEB_CONCURRENCY: 1
                                        

                                        Mit STRG + Y Speichern und Beenden

                                        danach

                                        docker-compose up -d
                                        

                                        Jetzt sollte unter dem Port 8888 das neue Interface verfügbar sein. Benutzer und Passwort wie gehabt admin admin

                                        Wenn das Webinterface läuft, kann auf der rechten Seite ein neuer WireGuard Server angelegt werden.

                                        Die einzigen Änderungen die hierbei notwendig sind ist die Eintragung eines Endpoints (also Hostname oder feste IP wie oben beschrieben)
                                        und in die Felder:
                                        Screenshot_1.png
                                        Post UP:

                                        iptables -A FORWARD -i %i -j ACCEPT; iptables -A FORWARD -o %i -j ACCEPT; iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
                                        

                                        Post Down:

                                        iptables -D FORWARD -i %i -j ACCEPT; iptables -D FORWARD -o %i -j ACCEPT; iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE
                                        

                                        Anschließend den Server starten
                                        Screenshot_2.png

                                        und Clients anlegen
                                        Screenshot_3.png

                                        Screenshot_4.png

                                        Sollte machbar sein.
                                        LG

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

                                          nach einer Expedition in den unbekannten Weiten des Internets hab ich nun den Speicherort des Admin/Password gefunden! 😉

                                          wer admin/admin ändern möchte, findet es mit nano db/server/users.json 🙂

                                          dslraser 1 Reply Last reply Reply Quote 0
                                          • M
                                            mechanicalman last edited by mechanicalman

                                            Ich erhalte während der Installation einen Fehler wenn installer-pve.sh durchläuft.

                                            Der Fehler entsteht aus dem Befehl

                                            docker-compose up -d
                                            
                                            Starting wgui ... error
                                            
                                            ERROR: for wgui  Cannot start service wg: OCI runtime create failed: container_linux.go:367: starting container process caused: process_linux.go:495: container init caused: process_linux.go:458: setting cgroup config for procHooks process caused: can't load program: operation not permitted: unknown
                                            
                                            ERROR: for wg  Cannot start service wg: OCI runtime create failed: container_linux.go:367: starting container process caused: process_linux.go:495: container init caused: process_linux.go:458: setting cgroup config for procHooks process caused: can't load program: operation not permitted: unknown
                                            ERROR: Encountered errors while bringing up the project.
                                            

                                            Ich hatte bisher nie mit Docker zu tun und verstehe nur Bahnhof...

                                            Hat jemand eine Idee?

                                            • Kernelversion Linux 5.11.22-4-pve #1 SMP PVE 5.11.22-8
                                            • PVE-Manager-Version pve-manager/7.0-11/63d82f4e
                                            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

                                            537
                                            Online

                                            31.8k
                                            Users

                                            79.9k
                                            Topics

                                            1.3m
                                            Posts

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