{"id":21,"date":"2026-07-02T20:33:41","date_gmt":"2026-07-02T20:33:41","guid":{"rendered":"https:\/\/stardust.rolsrois.com\/?p=21"},"modified":"2026-07-02T20:33:41","modified_gmt":"2026-07-02T20:33:41","slug":"%f0%9f%93%b1-dokumentation-samsung-a3-openwrt-appliance-setup","status":"publish","type":"post","link":"https:\/\/stardust.rolsrois.com\/?p=21","title":{"rendered":"\ud83d\udcf1 Dokumentation: Samsung A3 &amp; OpenWrt Appliance-Setup"},"content":{"rendered":"\n<h1 class=\"wp-block-heading\"><\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">Dieses Dokument beschreibt die Netzwerkarchitektur und die Firewall-Konfiguration des Samsung A3 (<code>postmarketOS<\/code>) im Verbund mit dem OpenWrt-NanoPi als dedizierte Server-Appliance.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83c\udfd7\ufe0f Das Architektur-Prinzip: &#8220;Vanilla Phone&#8221;<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Um maximale Ausfallsicherheit bei Reboots zu garantieren, bleibt das Samsung A3 im absoluten <strong>Standard-Zustand (Plain Vanilla)<\/strong>. Es werden keine permanenten IP-\u00c4nderungen auf dem Smartphone vorgenommen. Die gesamte Netzwerk-Intelligenz und das Routing liegen auf dem OpenWrt-Gateway.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Netzwerk-Spezifikationen<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Hauptnetz (WAN-Seite Wrt):<\/strong> <code>192.168.178.137<\/code> (Dynamic\/DHCP \u00fcber <code>lan1<\/code>)<\/li>\n\n\n\n<li><strong>Internes Wrt-Netz (LAN):<\/strong> <code>192.168.19.1<\/code><\/li>\n\n\n\n<li><strong>USB-Schnittstelle (OpenWrt-Gegenstelle):<\/strong> <code>172.16.42.2<\/code> (Interface: <code>usb<\/code>)<\/li>\n\n\n\n<li><strong>Smartphone (Samsung A3 pmOS):<\/strong> <code>172.16.42.1<\/code> (Schnittstelle: <code>usb0<\/code>)<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83d\udee0\ufe0f 1. OpenWrt Netzwerk-Konfiguration<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Die Konfiguration des USB-Interfaces ist in <code>\/etc\/config\/network<\/code> hinterlegt. Das Interface wird als statisches Netzwerk namens <code>usb<\/code> deklariert.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Plaintext<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>config interface 'usb'\n        option device 'usb0'\n        option proto 'static'\n        option ipaddr '172.16.42.2'\n        option netmask '255.255.255.0'\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83d\udd12 2. OpenWrt Firewall-Zonen &amp; Masquerading<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Damit das Smartphone Antworten auf Anfragen aus dem \u00fcbergeordneten 192er-Heimnetzwerk senden kann, ohne dass dort Routen definiert sein m\u00fcssen, ist in der <strong>LAN-Zone<\/strong> zwingend <strong>Masquerading (SNAT)<\/strong> aktiv. Das Handy sieht dadurch jede Anfrage so, als k\u00e4me sie direkt vom Wrt-Router (<code>172.16.42.2<\/code>).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Eintrag in <code>\/etc\/config\/firewall<\/code>:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Plaintext<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>config zone\n        option name 'lan'\n        list network 'lan'\n        list network 'usb'\n        option input 'ACCEPT'\n        option output 'ACCEPT'\n        option forward 'ACCEPT'\n        option masquerade '1'\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83d\udd00 3. Port-Weiterleitungen (DNAT)<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Der Zugriff von au\u00dfen (\u00fcber die WAN-IP des NanoPi <code>192.168.178.137<\/code>) wird \u00fcber Port-Redirects direkt an die Standard-IP des Samsung A3 durchgereicht.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><td><strong>Dienst<\/strong><\/td><td><strong>Port Au\u00dfen (Wrt)<\/strong><\/td><td><strong>Port Innen (Handy)<\/strong><\/td><td><strong>Ziel-IP<\/strong><\/td><\/tr><\/thead><tbody><tr><td><strong>SSH (A3 CLI)<\/strong><\/td><td><code>2201<\/code><\/td><td><code>22<\/code><\/td><td><code>172.16.42.1<\/code><\/td><\/tr><tr><td><strong>WordPress App<\/strong><\/td><td><code>8069<\/code><\/td><td><code>8069<\/code><\/td><td><code>172.16.42.1<\/code><\/td><\/tr><tr><td><strong>WebLlama Site<\/strong><\/td><td><code>8051<\/code><\/td><td><code>8051<\/code><\/td><td><code>172.16.42.1<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Zugeh\u00f6riger Config-Block (<code>\/etc\/config\/firewall<\/code>):<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Plaintext<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>config redirect\n        option dest 'lan'\n        option target 'DNAT'\n        option name 'ssh-a3'\n        option src 'wan'\n        option src_dport '2201'\n        option dest_ip '172.16.42.1'\n        option dest_port '22'\n\nconfig redirect\n        option dest 'lan'\n        option target 'DNAT'\n        option name 'oddo-a3'\n        option src 'wan'\n        option src_dport '8069'\n        option dest_ip '172.16.42.1'\n        option dest_port '8069'\n\nconfig redirect\n        option dest 'lan'\n        option target 'DNAT'\n        option name 'webllamasite-a3'\n        option src 'wan'\n        option src_dport '8051'\n        option dest_ip '172.16.42.1'\n        option dest_port '8051'\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83d\udd0b 4. Hardware- &amp; Akku-Spezifikationen (RT5033)<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Das Samsung A3 verwendet einen <strong>Richtek RT5033<\/strong> Ladecontroller. Die Kernel-Treiber spiegeln die Werte im sysfs unter <code>\/sys\/class\/power_supply\/rt5033-battery\/<\/code> und <code>\/sys\/class\/power_supply\/rt5033-charger\/<\/code> wider.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">\u2139\ufe0f <strong>Wartungshinweis:<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Die Steuerungsdateien im Kernel sind rein schreibgesch\u00fctzt (<code>-r--r--r--<\/code>). Ein Software-Ladelimit (z.B. Deckelung auf 80%) ist treiberseitig nicht m\u00f6glich. Der Chip regelt den Stromfluss bei Erreichen der Ladeschlussspannung von <strong>4.32 V<\/strong> (ca. 98% Ladestand) im CV-Modus selbstst\u00e4ndig auf sichere <strong>~4.9 mA<\/strong> ab. Die Betriebstemperatur im Dauerbetrieb liegt stabil bei hervorragenden <strong>~34.3 \u00b0C<\/strong>.<\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Dieses Dokument beschreibt die Netzwerkarchitektur und die Firewall-Konfiguration des Samsung A3 (postmarketOS) im Verbund mit dem OpenWrt-NanoPi als dedizierte Server-Appliance. \ud83c\udfd7\ufe0f Das Architektur-Prinzip: &#8220;Vanilla Phone&#8221; Um maximale Ausfallsicherheit bei Reboots zu garantieren, bleibt das Samsung A3 im absoluten Standard-Zustand (Plain Vanilla). Es werden keine permanenten IP-\u00c4nderungen auf dem Smartphone vorgenommen. Die gesamte Netzwerk-Intelligenz und das [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-21","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/stardust.rolsrois.com\/index.php?rest_route=\/wp\/v2\/posts\/21","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/stardust.rolsrois.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/stardust.rolsrois.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/stardust.rolsrois.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/stardust.rolsrois.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=21"}],"version-history":[{"count":1,"href":"https:\/\/stardust.rolsrois.com\/index.php?rest_route=\/wp\/v2\/posts\/21\/revisions"}],"predecessor-version":[{"id":22,"href":"https:\/\/stardust.rolsrois.com\/index.php?rest_route=\/wp\/v2\/posts\/21\/revisions\/22"}],"wp:attachment":[{"href":"https:\/\/stardust.rolsrois.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=21"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/stardust.rolsrois.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=21"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/stardust.rolsrois.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=21"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}