Skip to content

Commit

Permalink
fix networking for plex
Browse files Browse the repository at this point in the history
  • Loading branch information
tiborpilz committed Mar 2, 2024
1 parent 7bb957a commit d2f8877
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions hosts/nixos/klaus/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,15 @@ with lib;
dns = [ "10.0.0.1" "fdc9:281f:04d7:9ee9::1" ];
privateKeyFile = "/var/lib/wireguard/private.key";

# Route Plex traffic differently - plex IP is hardcoded and might break
preUp = "ip route add 54.246.167.176/32 via 192.168.2.1 dev enp8s0";
postDown = "ip route del 54.246.167.176/32 via 192.168.2.1 dev enp8s0";

peers = [
{
publicKey = "QzJm9puVez50UZbCUAJYZnqBdW19o1tBU0Q/WXZsbyw=";

# TODO: we actually only want to set wireguard for *incoming* connections to klaus
allowedIPs = [ "0.0.0.0/0" "::/0" ];
endpoint = "159.69.194.44:51820";
persistentKeepalive = 25;
Expand Down

0 comments on commit d2f8877

Please sign in to comment.