Skip to content

Instantly share code, notes, and snippets.

@FaberfoX
FaberfoX / README.md
Last active June 25, 2026 15:16
Python script to convert a wireguard .conf to the native ChromeOS crosh format

WireGuard .conf to ChromeOS crosh Converter

ChromeOS has native WireGuard support, but the built-in terminal (crosh) cannot directly import .conf files. Furthermore, crosh lacks common shell piping/utilities (like echo) and rejects multi-line pasting or whitespace spaces in arguments like allowed-ips.

This script parses a standard WireGuard configuration file and generates individual, copy-pasteable command blocks optimized for the strict crosh shell environment.

Usage

Run the script inside your Linux development environment (Crostini):