My wireguard cheatsheet

I always search for this so I will write it down here.


cd /etc/wireguard
wg genkey | tee privatekey | wg pubkey > publickey
vi wg0.conf
PrivateKey = 
Address = 10.9.0.X/24

PublicKey = dg1cKCId81d6h5cWUQ61BMHksBbi0FdFnitjxDuOuno=
Endpoint =
AllowedIPs =
PersistentKeepalive = 25
wg-quick up /etc/wireguard/wg0.conf
systemctl enable wg-quick@wg0.service
systemctl edit wg-quick@wg0.service


systemctl stop wg-quick@wg0.service
vi /etc/wireguard/wg0
systemctl start wg-quick@wg0.service


wg syncconf wg0 <(wg-quick strip wg0)

miniPCI-e dual USB card extender

Recently, I was looking for an affordable LoRaWAN gateway with 3G/LTE connectivity. I like Mikrotik products because they are easy to use and have many features (e.g. Wireguard VPN 😎 ) . I found RBwAPR-2nD which has a miniPCI-e slot which can be fitted with R11e-LR8 LoRaWAN gateway module or a card for mobile network connectivity (e.g. R11e-4G). The problem is you cannot have both because there is only one slot. Or can you?

Continue reading miniPCI-e dual USB card extender