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
# Multiple Subnet Routers in the Same LAN with `--accept-routes`: Potential Issues and Solutions | |
When setting up multiple subnet routers in the same LAN environment with Tailscale, using the `--accept-routes` flag can cause significant connectivity issues. This document explains the problem, why it happens, and offers practical solutions. | |
## The Problem | |
Having two subnet routers in the same LAN with the `--accept-routes` flag enabled causes several networking issues: | |
1. **Local connectivity disruptions**: Nodes with `--accept-routes` enabled may lose the ability to communicate with other devices on the same LAN using their local IP addresses. |
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
root@c137:~# lspci -s 02:00.0 -vv | |
02:00.0 PCI bridge: ASMedia Technology Inc. ASM2812 6-Port PCIe x4 Gen3 Packet Switch (rev 01) (prog-if 00 [Normal decode]) | |
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr+ Stepping- SERR+ FastB2B- DisINTx- | |
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx- | |
Latency: 0, Cache Line Size: 64 bytes | |
Interrupt: pin A routed to IRQ 17 | |
IOMMU group: 20 | |
Bus: primary=02, secondary=03, subordinate=05, sec-latency=0 | |
I/O behind bridge: [disabled] [32-bit] | |
Memory behind bridge: 84600000-847fffff [size=2M] [32-bit] |
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
services: | |
searxng: | |
container_name: searxng | |
image: docker.io/searxng/searxng:latest | |
restart: unless-stopped | |
ports: | |
- 8080:8080 | |
volumes: | |
- ./searxng:/etc/searxng:rw | |
environment: |
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
--- | |
services: | |
factorio: | |
image: factoriotools/factorio:2.0.8 | |
ports: | |
- "34197:34197/udp" | |
- "27015:27015/tcp" | |
volumes: | |
- ./factorio:/factorio | |
environment: |
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
--- | |
substitutions: | |
name: esp32-garage-heatpump | |
friendly_name: esp32-garage-heatpump | |
esphome: | |
name: ${name} | |
esp32: | |
board: esp32doit-devkit-v1 |
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
{ config, pkgs, ... }: | |
{ | |
imports = | |
[ # Include the results of the hardware scan. | |
./hardware-configuration.nix | |
]; | |
boot.loader.systemd-boot.enable = true; | |
boot.loader.efi.canTouchEfiVariables = true; | |
boot.kernelModules = [ "drivetemp" ]; |
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
####### | |
## These results are still open to the public. See | |
## https://blog.ktz.me/the-best-media-server-cpu-in-the-world/ | |
## for analysis of them. | |
# https://github.com/ironicbadger/quicksync_calc | |
# zoidberg - dell 7040 sff pc | |
CPU TEST FILE BITRATE TIME AVG_FPS AVG_SPEED AVG_WATTS | |
i5-6600T h264_1080p_cpu ribblehead_1080p_h264 18952 kb/s 116.352s 29.88 1.04x N/A |
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
This script sets the input and output video file paths, the codec name and profile, the encoding preset and tune, the output video resolution and frame rate, the number of encoding threads, and the number of encoding iterations. It then uses the ffmpeg command to encode the input video file using the specified codec and encoding settings, and measures the time taken using the time command. Finally, it calculates the average encoding time per iteration and prints the benchmark results. | |
To run this script, simply save it as a shell script file (e.g., quick_sync_benchmark.sh), make it executable (e.g., chmod +x quick_sync_benchmark.sh), and then run it (e.g., ./quick_sync_benchmark.sh). Note that you will need to have the ffmpeg command-line tool and the Intel Quick Sync Media Encoding driver installed on your Linux system in order for this script to work. |
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
## get interface name (ovs_eth0 below) via ip link | |
ip link add macvlan0 link ovs_eth0 type macvlan mode bridge | |
##192.168.4.204/30 (204-207) | |
ip addr add 192.168.4.204/30 dev macvlan0 | |
ip link set macvlan0 up | |
ip route add 192.168.44.204/30 dev macvlan0 | |
docker network create frontend |
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
$ docker exec -it paperless manage | |
Type 'manage.py help <subcommand>' for help on a specific subcommand. | |
Available subcommands: | |
[auth] | |
changepassword | |
createsuperuser |
NewerOlder