diff --git a/README.md b/README.md index 3de10ea2..29b21aff 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,7 @@ Markdown. archivieren, kopieren oder weitergeben könnt. - **Keine Daten verlassen den ELW.** Stammdaten, Namen und Handynummern liegen nur auf euren Geräten. Die optionale Mehrgeräte-Verbindung läuft im - LAN oder über Tailscale, TLS-gesichert mit PIN – ohne Cloud, ohne Telemetrie. + LAN, TLS-gesichert mit PIN – ohne Cloud, ohne Telemetrie. Was genau wo gespeichert wird, steht in [Datenschutz und Sicherheit](docs/datenschutz-und-sicherheit.md) – die Seite für die Kreisbrandinspektion und den Datenschutzbeauftragten. @@ -74,7 +74,7 @@ Markdown. | **Checklisten** | Beliebig viele eigene Checklisten aus den Stammdaten – benannt, in frei wählbarer Reihenfolge in der Seitenleiste, Pflichtpunkte markiert, Abschluss im ETB protokolliert | | **Dateien & Links** | Fotos und PDFs an den Einsatz hängen (landen im Bericht); Schnellzugriff auf Wetter, Karten, Hydrantenplan | | **PDF-Bericht** | Ein Klick, Abschnitte wählbar, Anhänge eingebettet – fertig für Akte und Kreisbrandinspektion | -| **Mehrere Geräte** | Einsatz auf dem ELW-Laptop hosten, mit Tablet oder zweitem Laptop im LAN/Tailscale mitschreiben; Android-App als Begleitgerät | +| **Mehrere Geräte** | Einsatz auf dem ELW-Laptop hosten, mit Tablet oder zweitem Laptop im LAN mitschreiben; Android-App als Begleitgerät | ## Mit der Tastatur @@ -101,7 +101,7 @@ Alle Angaben laut Herstellerseiten, Stand September 2026. Fehler oder |---|---|---|---|---|---| | Ohne Internet voll nutzbar | ja | ja | Desktop-Suite ja; Stammdaten und Ticker über das Cloud-Portal ([Quelle](https://fireboard.net/)) | ja, Abgleich sobald wieder online ([Quelle](https://www.missionbuddies.de/atemschutzueberwachung/)) | ja, als Browser-App ([Quelle](https://www.fireplan.de/elw)) | | Daten bleiben im ELW, kein Cloud-Konto | ja, eine Datei pro Einsatz | ja | nein, „cloudbasierte Lösung“ mit Portal-Benutzerkonto ([Quelle](https://fireboard.net/)) | nein, Cloud mit Servern in Deutschland ([Quelle](https://www.missionbuddies.de/faq/)) | k. A. | -| Mehrere Geräte im Einsatz | ja, LAN/Tailscale, TLS-gepinnt, ohne Server | nein | ja, über Portal ([Quelle](https://fireboard.net/produkte/module/grundsystem/)) | ja; gratis auf 2 Geräten, Premium unbegrenzt ([Quelle](https://www.missionbuddies.de/atemschutzueberwachung/)) | ja, live nur mit Internet ([Quelle](https://www.fireplan.de/elw)) | +| Mehrere Geräte im Einsatz | ja, im LAN, TLS-gepinnt, ohne Server | nein | ja, über Portal ([Quelle](https://fireboard.net/produkte/module/grundsystem/)) | ja; gratis auf 2 Geräten, Premium unbegrenzt ([Quelle](https://www.missionbuddies.de/atemschutzueberwachung/)) | ja, live nur mit Internet ([Quelle](https://www.fireplan.de/elw)) | | Atemschutzüberwachung | ja, mit Sprachansage, Rückzugsalarm und Sicherheitstrupp | Überwachungstafel | ja, laut Produktseite ([Quelle](https://fireboard.net/)) | ja, Gratis-Stufe ([Quelle](https://www.missionbuddies.de/atemschutzueberwachung/)) | k. A. | | CO-Messprotokoll | ja, Messreihe je Wohnung | Zettel | k. A. | k. A. | k. A. | | PDF-Einsatzbericht | ja, Abschnitte wählbar | nein | ja ([Quelle](https://fireboard.net/produkte/module/grundsystem/)) | ja, modulweise Export ([Quelle](https://www.missionbuddies.de/faq/)) | k. A. | diff --git a/SECURITY.md b/SECURITY.md index b0f3506b..e9120cea 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -49,9 +49,11 @@ address the issue before any public disclosure. [`docs/datenschutz-und-sicherheit.md`](docs/datenschutz-und-sicherheit.md), written for the Kreisbrandinspektionen and Datenschutzbeauftragte who have to approve a deployment. -- **Multi-device sync** runs over LAN/Tailscale via SignalR and requires a - share PIN to join an incident. Issues affecting that transport, the PIN gate, - or the PDF export pipeline are very much in scope. +- **Multi-device sync** runs over the LAN via SignalR (in theory over any + network that reaches the host, e.g. a VPN such as Tailscale, which is + untested) and requires a share PIN to join an incident. Issues affecting + that transport, the PIN gate, or the PDF export pipeline are very much in + scope. ## Known limitations @@ -127,7 +129,7 @@ one note on why the trust model around the middle two is where it is. blocks new devices but not the ones already joined ([#288](../../issues/288)). - **The PIN plus network reachability is the entire access-control - boundary.** A device that can reach the host over the LAN/Tailscale link + boundary.** A device that can reach the host over the LAN and knows the (guess-budgeted, TLS-protected) PIN is already fully trusted to make arbitrary changes to the incident, regardless of what operator name it claims. A compromised or careless device can misattribute its own diff --git a/changelog.d/+share-address-lan-only.changed.md b/changelog.d/+share-address-lan-only.changed.md new file mode 100644 index 00000000..3eeb1273 --- /dev/null +++ b/changelog.d/+share-address-lan-only.changed.md @@ -0,0 +1 @@ +The address a sharing device shows to join it is now always its LAN address rather than a Tailscale address when one is up, since the command vehicle's own network is the tested setup and a VPN such as Tailscale is documented only as an untested option. diff --git a/docs/datenschutz-und-sicherheit.md b/docs/datenschutz-und-sicherheit.md index e9766591..9a8f0b32 100644 --- a/docs/datenschutz-und-sicherheit.md +++ b/docs/datenschutz-und-sicherheit.md @@ -272,8 +272,9 @@ des Geräts an; eine Einschränkung auf bestimmte Adressbereiche findet nicht statt. Die im Programm angezeigte Adresse ist nur ein Vorschlag, den man am beitretenden Gerät eintragen kann. Praktisch heißt das: **Erreichbarkeit im Netz plus PIN ist die gesamte Zugangskontrolle.** Im vorgesehenen Einsatzfall – -die eigenen Geräte im eigenen WLAN oder über Tailscale – ist das angemessen; in -einem offenen Netz ist es das nicht. +die eigenen Geräte im eigenen WLAN – ist das angemessen; in einem offenen Netz +ist es das nicht. Theoretisch funktioniert jedes Netz, über das die Geräte den +Gastgeber erreichen, etwa ein VPN wie Tailscale; getestet ist das nicht. **Android** kann beitreten, aber selbst keinen Einsatz freigeben. Die App ist ein Begleitgerät. @@ -317,8 +318,9 @@ ein Begleitgerät. Versandweg, Empfängerkreis, Ablage. - **Weitergabe der PIN** im Einsatz: an wen sie gegeben wird und dass sie nicht über den Einsatz hinaus verwendet wird. -- **Auswahl der Netzverbindung** für den Mehrgerätebetrieb: eigenes WLAN oder - Tailscale, nicht das offene Gäste-WLAN der Einsatzstelle. +- **Auswahl der Netzverbindung** für den Mehrgerätebetrieb: eigenes WLAN, nicht + das offene Gäste-WLAN der Einsatzstelle. Wer stattdessen ein VPN wie Tailscale + einsetzt, betritt ungetestetes Gelände. ## Einordnung nach DSGVO diff --git a/src/LageBuch.App.Shared/Views/IncidentWorkspaceView.axaml b/src/LageBuch.App.Shared/Views/IncidentWorkspaceView.axaml index 3abb7a6a..9d92c82d 100644 --- a/src/LageBuch.App.Shared/Views/IncidentWorkspaceView.axaml +++ b/src/LageBuch.App.Shared/Views/IncidentWorkspaceView.axaml @@ -176,7 +176,7 @@ IsVisible="{Binding OperatorDisplay, Converter={x:Static ObjectConverters.IsNotNull}}" /> diff --git a/src/LageBuch.App.Shared/Views/OperatorPromptView.axaml b/src/LageBuch.App.Shared/Views/OperatorPromptView.axaml index c211731d..76f62ce9 100644 --- a/src/LageBuch.App.Shared/Views/OperatorPromptView.axaml +++ b/src/LageBuch.App.Shared/Views/OperatorPromptView.axaml @@ -30,9 +30,9 @@ - + diff --git a/src/LageBuch.App/Services/IncidentHostController.cs b/src/LageBuch.App/Services/IncidentHostController.cs index 7439b78a..0b9d36d4 100644 --- a/src/LageBuch.App/Services/IncidentHostController.cs +++ b/src/LageBuch.App/Services/IncidentHostController.cs @@ -13,7 +13,7 @@ namespace LageBuch.App.Services; /// Desktop implementation of : drives the embedded /// , binding it to every interface (, which /// turns into a dual-stack IPv4+IPv6 bind) so it is reachable -/// over loopback, the LAN (v4 or v6), and a tailnet at once. Lives in the desktop head so ASP.NET +/// over loopback and the LAN (v4 or v6) at once. Lives in the desktop head so ASP.NET /// Core stays out of the cross-platform AppLogic/Android build. /// internal sealed class IncidentHostController : IIncidentHostController diff --git a/src/LageBuch.AppLogic/Services/ILastConnectionStore.cs b/src/LageBuch.AppLogic/Services/ILastConnectionStore.cs index 13c6d043..88b402b1 100644 --- a/src/LageBuch.AppLogic/Services/ILastConnectionStore.cs +++ b/src/LageBuch.AppLogic/Services/ILastConnectionStore.cs @@ -3,7 +3,7 @@ namespace LageBuch.AppLogic.Services; /// /// Remembers the last successful join (#464), so the join dialog can prefill it and the Home screen /// can say where this device was last connected. In practice the host (a station's ELW, a fixed -/// Tailscale node) is set up once and then reused for an entire Einsatz series, and a Lagebuchführer +/// LAN address) is set up once and then reused for an entire Einsatz series, and a Lagebuchführer /// who has to reconnect mid-Einsatz should not have to ask for the PIN again. A PIN goes stale when /// the host starts sharing anew; that costs one rejected attempt, after which the dialog asks for it. /// diff --git a/src/LageBuch.AppLogic/ViewModels/DeviceRequest.cs b/src/LageBuch.AppLogic/ViewModels/DeviceRequest.cs index ece6f11e..886dc4ef 100644 --- a/src/LageBuch.AppLogic/ViewModels/DeviceRequest.cs +++ b/src/LageBuch.AppLogic/ViewModels/DeviceRequest.cs @@ -1,6 +1,6 @@ namespace LageBuch.AppLogic.ViewModels; // The first step of joining another device's hosted incident (§6, #459): which device to reach. -// Host is the target device's Tailscale name or IP; Pin is the share PIN the host displays. Who +// Host is the target device's name or IP; Pin is the share PIN the host displays. Who // documents on this device is asked afterwards, from the host's own Stammdaten. public sealed record DeviceRequest(string Host, string? Pin); diff --git a/src/LageBuch.AppLogic/ViewModels/HomeViewModel.cs b/src/LageBuch.AppLogic/ViewModels/HomeViewModel.cs index f1d9b31a..31867048 100644 --- a/src/LageBuch.AppLogic/ViewModels/HomeViewModel.cs +++ b/src/LageBuch.AppLogic/ViewModels/HomeViewModel.cs @@ -220,7 +220,7 @@ private async Task ShareCrashReportAsync() /// /// "‹Stichwort› · ‹time›" under the host on the Home card; the Stichwort is left out while unset. - /// A line of its own, so a long tailnet name is trimmed rather than broken mid-word on a phone. + /// A line of its own, so a long host name is trimmed rather than broken mid-word on a phone. /// public string? LastConnectionDetail => LastConnection is not { } last ? null @@ -680,7 +680,7 @@ private void ResetTrustedCertificate() ClearCertificateChangedHost(); } - // The address is normally just a Tailscale name (the host binds the fixed SyncProtocol.Port), but + // The address is normally just a host name or IP (the host binds the fixed SyncProtocol.Port), but // an explicit "host:port" is accepted too — handy for a non-standard port or for reaching a host // on the same machine during testing. private static (string Host, int Port) ParseHost(string address) diff --git a/src/LageBuch.AppLogic/ViewModels/IncidentWorkspaceViewModel.cs b/src/LageBuch.AppLogic/ViewModels/IncidentWorkspaceViewModel.cs index bdccec20..b3dc7a67 100644 --- a/src/LageBuch.AppLogic/ViewModels/IncidentWorkspaceViewModel.cs +++ b/src/LageBuch.AppLogic/ViewModels/IncidentWorkspaceViewModel.cs @@ -1669,7 +1669,7 @@ private async Task ToggleSharing() try { - // Binds every interface (loopback + LAN + tailnet). Can still fail — most likely the + // Binds every interface (loopback + LAN). Can still fail — most likely the // port is already taken by another instance sharing on this machine — so surface that // in the status line rather than letting it escape the command. // _masterData, not a fresh provider read: joined clients must get the set this diff --git a/src/LageBuch.AppLogic/ViewModels/MainWindowViewModel.cs b/src/LageBuch.AppLogic/ViewModels/MainWindowViewModel.cs index 7df500c8..439ecbd1 100644 --- a/src/LageBuch.AppLogic/ViewModels/MainWindowViewModel.cs +++ b/src/LageBuch.AppLogic/ViewModels/MainWindowViewModel.cs @@ -172,8 +172,8 @@ private Task RequestJoinDevice() => NavigateAwayAsync(() => _pending = PendingAction.Join; PendingPrompt = new OperatorPromptViewModel(collectHost: true) { - // The host address rarely changes once set up (a station's ELW, a fixed Tailscale - // node) -- prefill last time's so the operator doesn't retype it every join. + // The host address rarely changes once set up (a station's ELW, a fixed + // LAN address) -- prefill last time's so the operator doesn't retype it every join. Host = _home.LastConnection?.Host ?? string.Empty, // The PIN too, valid for as long as the host keeps sharing: reconnecting mid-Einsatz diff --git a/src/LageBuch.AppLogic/ViewModels/OperatorPromptViewModel.cs b/src/LageBuch.AppLogic/ViewModels/OperatorPromptViewModel.cs index 76ea7313..04085357 100644 --- a/src/LageBuch.AppLogic/ViewModels/OperatorPromptViewModel.cs +++ b/src/LageBuch.AppLogic/ViewModels/OperatorPromptViewModel.cs @@ -71,7 +71,7 @@ private static string[] OwnDisplayNames(IEnumerable personnel) => // Quiet until the first press: a prompt that opens already scolding teaches nothing. private bool _errorsShown; - // The host's LAN or Tailscale address/name, entered only in the join flow. Mandatory there (gates Confirm). + // The host's LAN address or name, entered only in the join flow. Mandatory there (gates Confirm). [ObservableProperty] [NotifyPropertyChangedFor(nameof(HostError))] private string _host = string.Empty; diff --git a/src/LageBuch.Domain/Files/IncidentFile.cs b/src/LageBuch.Domain/Files/IncidentFile.cs index 86f7daa4..5f988479 100644 --- a/src/LageBuch.Domain/Files/IncidentFile.cs +++ b/src/LageBuch.Domain/Files/IncidentFile.cs @@ -7,7 +7,7 @@ public sealed record IncidentFile // before sending it (FilesViewModel.AddFileAsync) and fully buffers a downloaded file too // (RemoteIncidentSession.GetFileBytesAsync) — so this cap bounds that client-side allocation, // not wire-transfer size. 25 MB keeps that a one-shot, few-second transfer on the app's - // Tailscale-LAN sync path while comfortably covering a phone photo or a scanned PDF. + // LAN sync path while comfortably covering a phone photo or a scanned PDF. public const long MaxSizeMegabytes = 25; public const long MaxSizeBytes = MaxSizeMegabytes * 1024 * 1024; diff --git a/src/LageBuch.Sync.Hosting/LocalNetwork.cs b/src/LageBuch.Sync.Hosting/LocalNetwork.cs index 6e5a0b53..8436177a 100644 --- a/src/LageBuch.Sync.Hosting/LocalNetwork.cs +++ b/src/LageBuch.Sync.Hosting/LocalNetwork.cs @@ -6,18 +6,15 @@ namespace LageBuch.Sync.Hosting; /// /// Picks a friendly IPv4 address to show the user as the one other devices dial. The host -/// itself binds every interface (), so this is purely cosmetic: it -/// prefers a Tailscale address (interface named tailscale*/ts*, or a 100.64.0.0/10 -/// CGNAT IP) when a tailnet is up, then any other private LAN IPv4, and finally falls back to -/// loopback so there is always something to show — two instances on one machine still reach each -/// other over 127.0.0.1. +/// itself binds every interface (), so this is purely cosmetic: it shows +/// the first private LAN IPv4 and falls back to loopback so there is always something to show — two +/// instances on one machine still reach each other over 127.0.0.1. /// public static class LocalNetwork { /// The nicest dialable IPv4 to display; never null (loopback when nothing else is up). public static IPAddress DisplayAddress() { - IPAddress? privateLan = null; foreach (var nic in NetworkInterface.GetAllNetworkInterfaces()) { if (nic.OperationalStatus != OperationalStatus.Up) @@ -25,38 +22,17 @@ public static IPAddress DisplayAddress() continue; } - var looksLikeTailscale = nic.Name.StartsWith("tailscale", StringComparison.OrdinalIgnoreCase) - || nic.Name.StartsWith("ts", StringComparison.OrdinalIgnoreCase); foreach (var addr in nic.GetIPProperties().UnicastAddresses) { var ip = addr.Address; - if (ip.AddressFamily != AddressFamily.InterNetwork) - { - continue; - } - - // A tailnet address is the best answer — return the moment we see one. - if (looksLikeTailscale || IsCarrierGradeNat(ip)) + if (ip.AddressFamily == AddressFamily.InterNetwork && IsPrivateLan(ip)) { return ip; } - - // Otherwise remember the first private LAN address as the fallback below Tailscale. - if (privateLan is null && IsPrivateLan(ip)) - { - privateLan = ip; - } } } - return privateLan ?? IPAddress.Loopback; - } - - // 100.64.0.0/10 — the CGNAT block Tailscale draws from. - private static bool IsCarrierGradeNat(IPAddress address) - { - var b = address.GetAddressBytes(); - return b[0] == 100 && b[1] >= 64 && b[1] <= 127; + return IPAddress.Loopback; } // RFC 1918 private ranges: 10/8, 172.16/12, 192.168/16. diff --git a/src/LageBuch.Sync/RemoteIncidentSession.cs b/src/LageBuch.Sync/RemoteIncidentSession.cs index 4ac61e94..06fb73fc 100644 --- a/src/LageBuch.Sync/RemoteIncidentSession.cs +++ b/src/LageBuch.Sync/RemoteIncidentSession.cs @@ -206,7 +206,7 @@ private RemoteIncidentSession( /// when the host isn't sharing / is unreachable — including /// when the Stammdaten fetch itself fails, which surfaces the same way. /// - /// The host's Tailscale/LAN address to dial. + /// The host's LAN address to dial. /// This device's operator, attributed on every command it sends. /// /// This device's app version. Display only — it names this device in a refusal message and is diff --git a/src/LageBuch.Sync/SyncProtocol.cs b/src/LageBuch.Sync/SyncProtocol.cs index 566c4d34..73c63b68 100644 --- a/src/LageBuch.Sync/SyncProtocol.cs +++ b/src/LageBuch.Sync/SyncProtocol.cs @@ -3,7 +3,7 @@ namespace LageBuch.Sync; /// Shared protocol constants and the version-handshake payload (see §7). public static class SyncProtocol { - /// Fixed port the host binds on its Tailscale address; clients dial the same. + /// Fixed port the host binds on every interface; clients dial the same. public const int Port = 5859; /// diff --git a/tests/LageBuch.Acceptance.Tests/SharePanelRenderTests.cs b/tests/LageBuch.Acceptance.Tests/SharePanelRenderTests.cs index 863f2629..7cca9d67 100644 --- a/tests/LageBuch.Acceptance.Tests/SharePanelRenderTests.cs +++ b/tests/LageBuch.Acceptance.Tests/SharePanelRenderTests.cs @@ -11,11 +11,10 @@ namespace LageBuch.Acceptance.Tests; -// Hosting no longer requires Tailscale (#59 follow-up). While sharing, the header line shows only -// the PIN; the address to dial (LAN + localhost) sits in a flyout behind it, because it is set up -// once in the ELW and the header line has no room for it next to the Lagebuchführer readout. This -// pins that the toggle flips the button label, keeps the URLs off the header line and puts them -// behind the PIN — and doubles as the PR screenshot capture. +// While sharing, the header line shows only the PIN; the address to dial (LAN + localhost) sits in +// a flyout behind it, because it is set up once in the ELW and the header line has no room for it +// next to the Lagebuchführer readout. This pins that the toggle flips the button label, keeps the +// URLs off the header line and puts them behind the PIN — and doubles as the PR screenshot capture. public class SharePanelRenderTests { private sealed class FakeHost : IIncidentHostController diff --git a/tests/LageBuch.AppLogic.Tests/IncidentWorkspaceViewModelTests.cs b/tests/LageBuch.AppLogic.Tests/IncidentWorkspaceViewModelTests.cs index a851977c..d6503f92 100644 --- a/tests/LageBuch.AppLogic.Tests/IncidentWorkspaceViewModelTests.cs +++ b/tests/LageBuch.AppLogic.Tests/IncidentWorkspaceViewModelTests.cs @@ -90,7 +90,7 @@ private static IncidentWorkspaceViewModel MutableWorkspace(AlarmMute mute) alarmMute: mute); } - // --- Network sharing (no Tailscale required) -------------------------------------------- + // --- Network sharing -------------------------------------------------------------------- [Fact] public async Task Toggling_sharing_on_starts_the_host_and_offers_its_address_without_a_status_line() {