{"id":209,"date":"2025-09-12T07:04:49","date_gmt":"2025-09-12T07:04:49","guid":{"rendered":"https:\/\/linuxbase.io\/?p=209"},"modified":"2025-09-12T07:04:49","modified_gmt":"2025-09-12T07:04:49","slug":"netbird-mit-zitadel-installieren-docker-compose","status":"publish","type":"post","link":"https:\/\/netguide.io\/linux\/de\/netbird-mit-zitadel-installieren-docker-compose\/","title":{"rendered":"Netbird mit Zitadel installieren (Docker Compose)"},"content":{"rendered":"\n<p>Die Kombination aus <strong>Netbird<\/strong> und <strong>Zitadel<\/strong> bietet mir eine moderne, sichere und flexible L\u00f6sung, um Netzwerke und Benutzerzugriffe zentral zu verwalten. <strong>Netbird<\/strong> ist ein Open-Source-VPN, das auf WireGuard basiert und mir den sicheren Aufbau von privaten Netzwerken \u00fcber das Internet erm\u00f6glicht. <strong>Zitadel<\/strong> \u00fcbernimmt dabei die Authentifizierung und Autorisierung der Benutzer. Es handelt sich um eine Open-Source-Alternative zu Diensten wie Auth0 oder Keycloak und bietet eine leistungsstarke Identity- und Access-Management-L\u00f6sung mit moderner Oberfl\u00e4che und OpenID-Connect-Unterst\u00fctzung.<\/p>\n\n\n\n<p>In diesem Artikel zeige ich Schritt f\u00fcr Schritt, wie ich Netbird zusammen mit Zitadel in einer <strong>Docker-Compose-Umgebung<\/strong> installiere, um eine sichere und skalierbare Infrastruktur f\u00fcr mein Netzwerk aufzubauen.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Das wird ben\u00f6tigt \/ Requirements<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Eine Linux-VM mit mindestens <strong>1 CPU<\/strong> und <strong>2 GB Arbeitsspeicher<\/strong>.<\/li>\n\n\n\n<li>Die VM sollte \u00f6ffentlich erreichbar sein \u00fcber die <strong>TCP-Ports 80, 443, 33073, 10000 und 33080<\/strong> sowie \u00fcber die <strong>UDP-Ports 3478 und 49152\u201365535<\/strong>.<\/li>\n\n\n\n<li>Au\u00dferdem wird ein <strong>\u00f6ffentlicher Domainname ben\u00f6tigt, der auf die VM zeigt<\/strong>.<\/li>\n\n\n\n<li>Docker und Docker Compose muss installiert sein<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Netbird mit Zitadel als ID-Provider installieren<\/h2>\n\n\n\n<p>Gl\u00fccklicherweise stellt Netbird ein Quick-Start Script zur verf\u00fcgung, das Automatisch die Docker Compose generiert:<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Erstmal erstellen wir einen neuen Ordner:<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2\"><span style=\"padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#24292e\"><\/span><span role=\"button\" style=\"color:#e1e4e8\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" aria-hidden=\"true\" readonly>mkdir netbird<\/textarea><\/pre><\/span><pre class=\"shiki github-dark\" style=\"background-color: #24292e\"><code><span class=\"line\"><span style=\"color: #B392F0\">mkdir<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #9ECBFF\">netbird<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p><\/p>\n\n\n\n<p>Dort f\u00fchren wir dann den folgenden Befehl aus. Die Domain muss nat\u00fcrlich durch die eigene ersetzt werden:<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2\"><span style=\"padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#24292e\"><\/span><span role=\"button\" style=\"color:#e1e4e8\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" aria-hidden=\"true\" readonly>export NETBIRD_DOMAIN=netbird.linuxbase.io; curl -fsSL https:\/\/github.com\/netbirdio\/netbird\/releases\/latest\/download\/getting-started-with-zitadel.sh | bash<\/textarea><\/pre><\/span><pre class=\"shiki github-dark\" style=\"background-color: #24292e\"><code><span class=\"line\"><span style=\"color: #F97583\">export<\/span><span style=\"color: #E1E4E8\"> NETBIRD_DOMAIN<\/span><span style=\"color: #F97583\">=<\/span><span style=\"color: #9ECBFF\">netbird.linuxbase.io<\/span><span style=\"color: #E1E4E8\">; <\/span><span style=\"color: #B392F0\">curl<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #79B8FF\">-fsSL<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #9ECBFF\">https:\/\/github.com\/netbirdio\/netbird\/releases\/latest\/download\/getting-started-with-zitadel.sh<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #F97583\">|<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #B392F0\">bash<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p><\/p>\n\n\n\n<p>Dann wird Automatisch Zitadel und anschlie\u00dfend Netbird installiert. Am ende werden die Zugangsdaten ausgegeben:<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2\"><span style=\"padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#24292e\"><\/span><span role=\"button\" style=\"color:#e1e4e8\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" aria-hidden=\"true\" readonly>Done!\n\nYou can access the NetBird dashboard at https:\/\/netbird.linuxbase.io\nLogin with the following credentials:\nUsername: admin@netbird.linuxbase.io\nPassword: i6mhzwgqZWosQnyAoIsfdfGgdfgSRu04o+Khbw@\n<\/textarea><\/pre><\/span><pre class=\"shiki github-dark\" style=\"background-color: #24292e\"><code><span class=\"line\"><span style=\"color: #B392F0\">Done!<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #B392F0\">You<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #9ECBFF\">can<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #9ECBFF\">access<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #9ECBFF\">the<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #9ECBFF\">NetBird<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #9ECBFF\">dashboard<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #9ECBFF\">at<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #9ECBFF\">https:\/\/netbird.linuxbase.io<\/span><\/span>\n<span class=\"line\"><span style=\"color: #B392F0\">Login<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #9ECBFF\">with<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #9ECBFF\">the<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #9ECBFF\">following<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #9ECBFF\">credentials:<\/span><\/span>\n<span class=\"line\"><span style=\"color: #B392F0\">Username:<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #9ECBFF\">admin@netbird.linuxbase.io<\/span><\/span>\n<span class=\"line\"><span style=\"color: #B392F0\">Password:<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #9ECBFF\">i6mhzwgqZWosQnyAoIsfdfGgdfgSRu04o+Khbw@<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre><\/div>\n\n\n\n<p><\/p>\n\n\n\n<p>Dort wird man auch aufgefordert das Passwort zu \u00e4ndern. Um in die Zitadel Einstellungen zu kommen, geht man auf: netbird.domain.de\/ui\/console<\/p>\n\n\n\n<p>Dort werden auch weitere User angelegt. Man kann nat\u00fcrlich auch andere Anwendungen mit SSO einbinden. So z.B. die Netbird Alternative Tailscale: <a href=\"https:\/\/netguide.io\/linux\/de\/zitadel-als-oidc-provider-fur-tailscale\/\">Zitadel als OIDC Provider f\u00fcr Tailscale verwenden<\/a><\/p>\n\n\n\n<p>Jetzt kann man mit dem eigenen Peer-to-Peer VPN-Netzwerk starten.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Die Kombination aus Netbird und Zitadel bietet mir eine moderne, sichere und flexible L\u00f6sung, um Netzwerke und Benutzerzugriffe zentral zu [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[9],"tags":[93,95,67,97,99,101,103],"class_list":["post-209","post","type-post","status-publish","format-standard","hentry","category-linux","tag-docker","tag-docker-compose","tag-linux","tag-netbird","tag-vpn","tag-wireguard","tag-zitadel"],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false},"uagb_author_info":{"display_name":"tobias.pries","author_link":"https:\/\/netguide.io\/linux\/author\/tobias-pries\/"},"uagb_comment_info":0,"uagb_excerpt":"Die Kombination aus Netbird und Zitadel bietet mir eine moderne, sichere und flexible L\u00f6sung, um Netzwerke und Benutzerzugriffe zentral zu [&hellip;]","_links":{"self":[{"href":"https:\/\/netguide.io\/linux\/wp-json\/wp\/v2\/posts\/209","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/netguide.io\/linux\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/netguide.io\/linux\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/netguide.io\/linux\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/netguide.io\/linux\/wp-json\/wp\/v2\/comments?post=209"}],"version-history":[{"count":0,"href":"https:\/\/netguide.io\/linux\/wp-json\/wp\/v2\/posts\/209\/revisions"}],"wp:attachment":[{"href":"https:\/\/netguide.io\/linux\/wp-json\/wp\/v2\/media?parent=209"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/netguide.io\/linux\/wp-json\/wp\/v2\/categories?post=209"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/netguide.io\/linux\/wp-json\/wp\/v2\/tags?post=209"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}