The maintained version now lives at Thunderbolt Networking, part of scyto/homelab-docs.
Questions or troubleshooting? Continue the conversation here — a Q&A discussion where replies thread properly, answers can be marked, and everything is searchable. The 388 comments below stay exactly where they are as an archive.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pcm.inferno_spotify { | |
| type inferno | |
| @args.DEVICE_ID { type string } | |
| @args.BIND_IP { type string } | |
| @args.PROCESS_ID { type string } | |
| @args.CLOCK_PATH { type string } | |
| @args.RX_LATENCY_NS { type string } | |
| @args.TX_LATENCY_NS { type string } | |
| # note: too long ALSA device string may not work in some or all apps (noticed in PipeWire) |
- I faced bandwidth issues between a WG Peer and a WG server. Download bandwidth when downloading from WG Server to WG peer was reduced significantly and upload bandwidth was practically non existent.
- I found a few reddit posts that said that we need to choose the right MTU. So I wrote a script to find an optimal MTU.
- Ideally I would have liked to have run all possible MTU configurations for both WG Server and WG Peer but for simplicity I choose to fix the WG Server to the original 1420 MTU and tried all MTUs from 1280 to 1500 for the WG Peer.
- On WG server, I started an
iperf3server - On WG peer, I wrote a script that does the following:
wg-quick down wg0
- Edit MTU in the
/etc/wireguard/wg0.conffile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [PROFILE1] | |
| Name=T-IKEV2C_0USER | |
| ConnMedia=21 | |
| ConnMode=0 | |
| SeamRoaming=1 | |
| PriVoIP=1 | |
| Gateway=1.2.3.4 | |
| PFS=14 | |
| UseComp=0 | |
| IkeIdType=3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [1001] | |
| exten => _X.,1,Set(CALLERID(name)=1.0.0.1) | |
| exten => _X.,n,Answer | |
| exten => _X.,n,Wait(1) | |
| exten => _X.,n,Playback(1001-recordtype) ; "Enter record type on your phone keypad, followed by the hash key. Press 1 to go to next character" | |
| exten => _X.,n,Read(recordtype,,,si,) | |
| exten => _X.,n,Playback(1001-domain) ; "Enter domain name to retrieve record, followed by the hash key" | |
| exten => _X.,n,Read(domain,,,si,) | |
| exten => _X.,n,Set(RECORD="${SHELL(/usr/bin/1001.py "${recordtype}")}") | |
| exten => _X.,n,Set(ADDR="${SHELL(/usr/bin/1001.py "${domain}")}") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Housekeeping stuff for OpenOCD targeting Nuvoton NUC123 , NUC126 and others. | |
| # by Ein Terakawa <applause@elfmimi.jp> | |
| # | |
| # based on TheLastMutt's mini51.cfg | |
| # https://gist.github.com/TheLastMutt/d1c1948acaace7444c1c#file-mini51-cfg | |
| # Usage example | |
| # | |
| # Read config regs. | |
| # openocd -f NUCxxx.cfg -c ReadConfigRegs -c exit |
The always enthusiastic and knowledgeable mr. @jasaltvik shared with our team an article on writing (good) Git commit messages: How to Write a Git Commit Message. This excellent article explains why good Git commit messages are important, and explains what constitutes a good commit message. I wholeheartedly agree with what @cbeams writes in his article. (Have you read it yet? If not, go read it now. I'll wait.) It's sensible stuff. So I decided to start following the
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Install WireGuard via whatever package manager you use. For me, I use apt. | |
| $ sudo add-apt-repository ppa:wireguard/wireguard | |
| $ sudo apt-get update | |
| $ sudo apt-get install wireguard | |
| MacOS | |
| $ brew install wireguard-tools | |
| Generate key your key pairs. The key pairs are just that, key pairs. They can be |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| # coding=utf8 | |
| # | |
| # AUTHOR: Jardel Weyrich <jweyrich at gmail dot com> | |
| # | |
| from __future__ import print_function | |
| import re, sys | |
| def parse_alb_log_file(file_path): | |
| fields = [ |
NewerOlder