{"id":26044,"date":"2025-05-14T10:00:00","date_gmt":"2025-05-14T08:00:00","guid":{"rendered":"https:\/\/monraspberry.com\/?p=26044"},"modified":"2025-05-13T15:43:22","modified_gmt":"2025-05-13T13:43:22","slug":"transformer-un-raspberry-pi-en-routeur","status":"publish","type":"post","link":"https:\/\/monraspberry.com\/de\/transformer-un-raspberry-pi-en-routeur\/","title":{"rendered":"Einen Raspberry Pi in einen Router verwandeln"},"content":{"rendered":"<h2 class=\"wp-block-heading\">Einf\u00fchrung<\/h2>\n\n\n\n<p>In einer Welt, in der die Kontrolle und Sicherheit Ihres Heimnetzwerks von entscheidender Bedeutung ist, ist der <strong>Raspberry Pi<\/strong> etabliert sich als flexible und erschwingliche L\u00f6sung, um Ihr eigenes <strong>Router<\/strong>. Ob Sie Ihr Netzwerk segmentieren, ein <strong>VPN<\/strong> oder filtern Sie Werbung mit <strong>Pi-hole<\/strong>Dieser Minicomputer kann einen herk\u00f6mmlichen Router ersetzen. Dieser ultrakomplette Leitfaden begleitet Sie von der Installation des Systems bis zur erweiterten Konfiguration und optimiert Ihre Inhalte f\u00fcr ein maximales Google-Ranking.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Warum sollte man einen Raspberry Pi als Router w\u00e4hlen?<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Beherrschte Kosten<\/strong> : Ein Raspberry Pi 4 kostet weniger als ein High-End-Router.<\/li>\n\n\n\n<li><strong>Software-Flexibilit\u00e4t<\/strong> : Freie Wahl zwischen <strong>OpenWRT<\/strong>, <strong>Raspbian<\/strong>, <strong>Pi-hole<\/strong>, <strong>WireGuard<\/strong>usw.<\/li>\n\n\n\n<li><strong>Erweiterte Personalisierung<\/strong> : QoS (Quality of Service), VLAN, VPN.<\/li>\n\n\n\n<li><strong>\u00d6ko-verantwortlich<\/strong> : geringer Stromverbrauch (&lt; 5 W).<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Hardware- und Software-Voraussetzungen<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Material<\/strong> :\n<ul class=\"wp-block-list\">\n<li>Ein Raspberry Pi 4 (mindestens 2 GB RAM)<\/li>\n\n\n\n<li>1 microSD-Karte (16 GB empfohlen, Klasse 10)<\/li>\n\n\n\n<li>Ein bel\u00fcftetes Geh\u00e4use (optional, aber empfohlen)<\/li>\n\n\n\n<li>2 USB-Ethernet-Adapter (wenn kein zus\u00e4tzlicher RJ45-Anschluss vorhanden ist)<\/li>\n\n\n\n<li>Stromversorgung 5 V\/3 A<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Software<\/strong> :\n<ul class=\"wp-block-list\">\n<li><strong>Raspberry Pi OS Lite<\/strong> oder <strong>OpenWRT<\/strong> f\u00fcr Raspberry Pi<\/li>\n\n\n\n<li><strong>Etcher<\/strong> (Flashen der microSD)<\/li>\n\n\n\n<li><strong>SSH<\/strong> (PuTTY-Client oder macOS\/Linux-Terminal)<\/li>\n\n\n\n<li><strong>Pakete<\/strong> : dnsmasq, hostapd, iptables, openvpn oder wireguard<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Schritt 1: Installation des Betriebssystems<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Laden Sie das Bild von <strong>Raspberry Pi OS Lite<\/strong> (oder <strong>OpenWRT<\/strong>) von der offiziellen Website.<\/li>\n\n\n\n<li>Flashen Sie die microSD-Karte mit <strong>Etcher<\/strong>.<\/li>\n\n\n\n<li>Aktivieren Sie SSH, indem Sie eine leere Datei mit dem Namen <code>ssh<\/code> an der Wurzel der Partition <code>boot<\/code>.<\/li>\n\n\n\n<li>Setzen Sie die Karte ein, schlie\u00dfen Sie die Stromversorgung an und melden Sie sich per SSH :<\/li>\n<\/ol>\n\n\n<div class=\"wp-block-syntaxhighlighter-code\"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nssh pi@192.168.1.100 # Standardpasswort: raspberry\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\">Schritt 2: Grundlegende Netzwerkkonfiguration<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Statische IPs zuweisen<\/strong> in <code>\/etc\/dhcpcd.conf<\/code> :<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-syntaxhighlighter-code\"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nschnittstelle eth0\nstatic ip_address=192.168.0.1\/24\nnohook wpa_supplicant\n<\/pre><\/div>\n\n\n<ul class=\"wp-block-list\">\n<li><strong>dnsmasq installieren und konfigurieren<\/strong> (DHCP- &amp; DNS-Server) in <code>\/etc\/dnsmasq.conf<\/code> :<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-syntaxhighlighter-code\"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\ninterface=eth0\ndhcp-range=192.168.0.50,192.168.0.150,12h\n<\/pre><\/div>\n\n\n<ul class=\"wp-block-list\">\n<li><strong>IP-Forwarding aktivieren<\/strong> :<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-syntaxhighlighter-code\"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsudo sed -i 's\/#net.ipv4.ip_forward=1\/net.ipv4.ip_forward=1\/' \/etc\/sysctl.conf\nsudo sysctl -p\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\">Schritt 3: Einrichten von Wi-Fi (optional)<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Installieren Sie <strong>hostapd<\/strong> : <code>sudo apt install hostapd<\/code>.<\/li>\n\n\n\n<li>Konfigurieren Sie <code>\/etc\/hostapd\/hostapd.conf<\/code> :<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-syntaxhighlighter-code\"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\ninterface=wlan0\nssid=Mein_Router_Pi\nhw_mode=g\nchannel=6\nwpa=2\nwpa_passphrase=SicheresUltraPasswort\n<\/pre><\/div>\n\n\n<ul class=\"wp-block-list\">\n<li>Zeigen Sie den Daemon auf diese Datei in <code>\/etc\/default\/hostapd<\/code> :<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-syntaxhighlighter-code\"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nDAEMON_CONF=\"\/etc\/hostapd\/hostapd.conf\".\n<\/pre><\/div>\n\n\n<ul class=\"wp-block-list\">\n<li>Starten Sie die Dienste neu :<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-syntaxhighlighter-code\"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsudo systemctl enable hostapd dnsmasq\nsudo systemctl restart hostapd dnsmasq\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\">Schritt 4: Absicherung und Optimierung<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Firewall iptables<\/strong> :<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-syntaxhighlighter-code\"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsudo iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE\nsudo iptables-save | sudo tee \/etc\/iptables.ipv4.nat\n<\/pre><\/div>\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Pi-hole-Konfiguration<\/strong> (Werbefilterung) :\n<ul class=\"wp-block-list\">\n<li>Installieren Sie mit :<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-syntaxhighlighter-code\"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\ncurl -sSL https:\/\/install.pi-hole.net | bash\n<\/pre><\/div>\n\n\n<p>Deaktivieren Sie den internen dnsmasq und behalten Sie Ihren eigenen bei.<\/p>\n\n\n\n<p><strong>WireGuard VPN<\/strong> f\u00fcr einen sicheren Fernzugriff :<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><code>sudo apt install wireguard<\/code><\/li>\n\n\n\n<li>Erzeugen Sie \u00f6ffentliche\/private Schl\u00fcssel, konfigurieren Sie <code>\/etc\/wireguard\/wg0.conf<\/code>.<\/li>\n\n\n\n<li>Aktivieren und starten Sie den Dienst :<\/li>\n<\/ol>\n\n\n<div class=\"wp-block-syntaxhighlighter-code\"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsudo systemctl enable wg-quick@wg0\nsudo systemctl start wg-quick@wg0\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\">Schlussfolgerung<\/h2>\n\n\n\n<p>Die Umwandlung Ihres Raspberry Pi in einen Router ist sowohl erschwinglich als auch lehrreich. Sie gewinnen mehr Kontrolle, Sicherheit und k\u00f6nnen Ihr Heimnetzwerk individuell anpassen. Z\u00f6gern Sie nicht, jeden Schritt an Ihre speziellen Bed\u00fcrfnisse anzupassen (VPN, VLAN, Filterung). F\u00fcr weitere Artikel entdecken Sie :<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/monraspberry.com\/de\/acceder-a-son-raspberry-pi-de-nimporte-ou-grace-a-tailscale\/\">Ein VPN auf Raspberry Pi installieren<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/monraspberry.com\/de\/pi-hole-sur-raspberry-pi-une-solution-de-blocage-publicitaire\/\">Fortgeschrittener Pi-hole Guide<\/a><\/li>\n<\/ul>","protected":false},"excerpt":{"rendered":"<p>Introduction Dans un monde o\u00f9 le contr\u00f4le et la s\u00e9curit\u00e9 de votre r\u00e9seau domestique sont essentiels, le Raspberry Pi s\u2019impose comme une solution flexible et abordable pour cr\u00e9er votre propre routeur. Que vous souhaitiez segmenter votre r\u00e9seau, mettre en place un VPN ou filtrer les publicit\u00e9s avec Pi-hole, ce mini-ordinateur peut remplacer un routeur traditionnel. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":26045,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[293],"tags":[],"class_list":["post-26044","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-guide"],"featured_image_src":{"landsacpe":["https:\/\/monraspberry.com\/wp-content\/uploads\/2025\/05\/Transformer-un-Raspberry-Pi-en-routeur.png",791,445,false],"list":["https:\/\/monraspberry.com\/wp-content\/uploads\/2025\/05\/Transformer-un-Raspberry-Pi-en-routeur.png",463,260,false],"medium":["https:\/\/monraspberry.com\/wp-content\/uploads\/2025\/05\/Transformer-un-Raspberry-Pi-en-routeur-300x169.png",300,169,true],"full":["https:\/\/monraspberry.com\/wp-content\/uploads\/2025\/05\/Transformer-un-Raspberry-Pi-en-routeur.png",1920,1080,false]},"jetpack_featured_media_url":"https:\/\/monraspberry.com\/wp-content\/uploads\/2025\/05\/Transformer-un-Raspberry-Pi-en-routeur.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/monraspberry.com\/de\/wp-json\/wp\/v2\/posts\/26044","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/monraspberry.com\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/monraspberry.com\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/monraspberry.com\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/monraspberry.com\/de\/wp-json\/wp\/v2\/comments?post=26044"}],"version-history":[{"count":0,"href":"https:\/\/monraspberry.com\/de\/wp-json\/wp\/v2\/posts\/26044\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/monraspberry.com\/de\/wp-json\/wp\/v2\/media\/26045"}],"wp:attachment":[{"href":"https:\/\/monraspberry.com\/de\/wp-json\/wp\/v2\/media?parent=26044"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/monraspberry.com\/de\/wp-json\/wp\/v2\/categories?post=26044"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/monraspberry.com\/de\/wp-json\/wp\/v2\/tags?post=26044"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}