Skip to content

Instantly share code, notes, and snippets.

@stueja
stueja / wg0-client.conf
Created July 20, 2020 20:33
Use wireguard udp via web sockets using wstunnel
[Interface]
Address = 1.2.3.5/32
PrivateKey = zyx=
#DNS =
PreUp = /usr/local/bin/wstunnel -v --udp --udpTimeoutSec -1 -L 127.0.0.1:12345:127.0.0.1:12345 wss://public.ip.of.server &
PostDown = pkill wstunnel
[Peer]
EndPoint = 127.0.0.1:12345
PublicKey = xyz=
@stueja
stueja / wg0-server.conf
Created July 20, 2020 20:30
Use wireguard udp via web sockets using wstunnel
[Interface]
Address = 1.2.3.4/24
ListenPort = 12345
PrivateKey = xyz=
PostUp = iptables -A INPUT -i eth0 -p tcp --dport 443 -j ACCEPT
PostUp = iptables -A OUTPUT -o eth0 -p tcp --sport 443 -j ACCEPT
PostUp = iptables -A INPUT -i wg-wss -j ACCEPT
PostUp = iptables -A OUTPUT -o wg-wss -j ACCEPT
PostUp = /usr/local/bin/wstunnel --server wss://public.ip.of.server -r 127.0.0.1:12345 &
PostDown = iptables -D INPUT -i eth0 -p tcp --dport 443 -j ACCEPT
@stueja
stueja / arch-linux-pacman-share.md
Last active May 5, 2021 15:53
Arch Linux local pacman share via NFS

local Arch Linux pacman package cache

I was wondering whether it was possible to share downloaded Arch Linux packages in my home network, so that not every of my 5 hosts downloads from the mirrors. Advantages: saves bandwidth, no package duplicates, faster "download" of packages which are already the package cache to the client. (Note that pacman will actually not download packages which are already in the package cache).

Working principle

@stueja
stueja / lxd-wayland-gui.md
Last active March 6, 2024 05:39
GUI application via Wayland from Ubuntu LXD container on Arch Linux host