Skip to content

Instantly share code, notes, and snippets.

Avatar
🙃

Jan stueja

🙃
View GitHub Profile
@stueja
stueja / wg0-client.conf
Created Jul 20, 2020
Use wireguard udp via web sockets using wstunnel
View wg0-client.conf
[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 Jul 20, 2020
Use wireguard udp via web sockets using wstunnel
View wg0-server.conf
[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 Feb 2, 2020
Arch Linux local pacman share via NFS
View arch-linux-pacman-share.md

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 Aug 28, 2020
GUI application via Wayland from Ubuntu LXD container on Arch Linux host
You can’t perform that action at this time.