Repository navigation
Releases
Cardputer Zero on-screen bridge app
On-screen toggle for the CivSwitch air-gap bridge, packaged as a native M5Stack Cardputer Zero app. The Cardputer is a pocket Raspberry Pi OS (Debian) box with a built-in Ethernet port, so it runs the existing Linux bridge unchanged; this app flips the bridge on/off from the 1.9" screen + keyboard.
What's new
m5cardputerzero-civswitch-bridge_1.0.0_arm64.deb— the installable app (sudo dpkg -i, or publish to the Cardputer AppStore).cardputer-app/source —bridge_app.py(Pillow →/dev/fb0),bridge-ctl(passwordless-sudo toggle helper),install.sh, and.debpackaging.linux-bridge/switch-put+send-to-switch.sh— push files to the Switch SD over FTP and auto-clean the intermediate copy.
Usage
sudo dpkg -i m5cardputerzero-civswitch-bridge_1.0.0_arm64.deb
# open "CivSwitch Bridge" in the launcher — any key toggles, Esc exitsThe air-gap is unchanged
net.ipv4.ip_forward = 0 — the Switch can never reach the internet whether the bridge is on or off.
Checksums
SHA-256 (zip): 9f38a395e09455b0f65f83e30e21302a25747ee90683407bac7ec528020463b2
SHA-256 (deb): 97b7df0eba45ad0a900e3b5a586761a8e4bba5a66bd2cae602c0cf48f2bd4024
Moonlight air-gap bridge — FTP file access
Adds FTP file access to the Moonlight air-gap bridge, so you can manage the Switch's SD card from a PC on your home LAN without the Switch ever touching the internet.
What's new
setup-ftp-forward.sh— DNATs a single port from the Pi's LAN interface to the Switch's FTP server and installs a persistent systemd service (re-applied every boot).- README section "FTP to the Switch" — install sys-ftpd, open the port, connect.
Usage
# on the Pi, after running setup.sh:
sudo ./setup-ftp-forward.sh 192.168.4.24 5000Then connect from a PC to <Pi LAN IP>:5000.
Important: use ACTIVE mode
Only the FTP control port is forwarded, so passive mode (random data port + the Switch's unroutable 192.168.4.x address) will hang on directory listings. In FileZilla: Site Manager → Transfer Settings → Active.
Checksum
SHA-256: b097b62a9e2ed9336b06c14dbbd221a3ede417707ab39ba3e22ddbcf1b542855
Moonlight air-gap bridge
Stream Moonlight from a Sunshine host on your home LAN to an air-gapped Nintendo Switch.
The Raspberry Pi creates an isolated Wi-Fi AP for the Switch, spoofs Nintendo's connectivity check (no captive-portal popup), and routes Switch→LAN through a default-deny nftables firewall (FORWARD policy drop) so the Switch can reach only the Sunshine PC — never the internet.
- Use a 5 GHz Pi (4 / 5 / 400) for smooth streaming. Pi 3 B+ / Zero 2 W are 2.4 GHz only and bandwidth-limited.
- Tested on a Pi 3 B+ (2.4 GHz): connectivity spoof, air-gap, and Moonlight add-by-IP pairing all verified.
- Flash Raspberry Pi OS Lite Bookworm (the "Legacy" track) and run
sudo ./setup.sh, or dropfirstrun.shon the boot partition for a fully automatic first boot. - Full details:
moonlight-bridge/README.md.
SHA-256: 6e129f80ba2487268fea81411325ed439332d78ae47ed5d99a8062946edd2ba9
Linux wired-Ethernet bridge
What's new
Adds a third bridge variant, linux-bridge/, for connecting the Switch handheld straight to a Linux box over USB-Ethernet — no dock, no Wi-Fi, no ESP32, no Pi.
bridge.py— the Pi build's Nintendo connectivity-check spoof server, now bound to the wired interface's IP (configurable via env/arg, default192.168.50.1) instead of0.0.0.0.setup.sh(idempotent) — assigns a static IP to the wired interface, forces and assertsnet.ipv4.ip_forward=0(hard air-gap), installs dnsmasq as a DNS-only catch-all (--no-resolv --no-hosts --bind-interfaces --listen-address=<ip> --address=/#/<ip> --port=53), and installsbridge.pyas a systemd service on:80.README.md— wiring diagram, static IPs (box192.168.50.1/24, console192.168.50.2/24), adapter order, and the two gotchas that cost real debugging time: the ASIX/Realtek chipset requirement (2110-1100"LAN cable attached"), and why a plainpython3 -m http.servertriggers a captive portal.
The ESP32 and Raspberry Pi builds are unchanged. Connectivity-check responses remain adapted from 90DNS (GPL-2.0-or-later) via fernando-granco/switch2-homebrew (MIT).
v1.1.0 — ESP32 firmware + Raspberry Pi bridge
ESP32 firmware (prebuilt)
Prebuilt firmware for five boards. Each .bin is a merged image (bootloader + partition table + app), so you flash it in one shot with esptool:
pip install esptool
esptool.py --chip <CHIP> write_flash 0x0 <file>.bin| Board | File | --chip |
|---|---|---|
| ESP32 Dev Module / WROOM-32 | civswitch-bridge-esp32-v1.1.0.bin |
esp32 |
| ESP32-S2 Dev Module | civswitch-bridge-esp32s2-v1.1.0.bin |
esp32s2 |
| ESP32-S3 Dev Module | civswitch-bridge-esp32s3-v1.1.0.bin |
esp32s3 |
| ESP32-C3 Dev Module | civswitch-bridge-esp32c3-v1.1.0.bin |
esp32c3 |
| Adafruit Feather ESP32-S2 | civswitch-bridge-adafruit-feather-esp32s2-v1.1.0.bin |
esp32s2 |
Raspberry Pi (all-in-one bridge)
civswitch-pi-bridge-v1.1.0.zip — unzip and run sudo ./setup.sh on Raspberry Pi OS Bookworm. Runs the whole bridge on the Pi (no ESP32 or PC needed).
⚠️ Untested — the Pi port was written for someone who asked on Reddit and hasn't been tested on a real Raspberry Pi yet.
Checksums
SHA-256 for every asset is in the attached SHA256SUMS.txt.