Skip to content

Commit

Permalink
Opened ports in firewall for syncthing
Browse files Browse the repository at this point in the history
  • Loading branch information
jwyuen committed Jul 10, 2024
1 parent 616e548 commit c63d139
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions nix-config/system/syncthing.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,11 @@ lib.mkIf (syncthing == true) {
configDir = "/home/${username}/.config/syncthing"; # Folder for Syncthing's settings and keys
};
};

# Syncthing ports: 8384 for remote access to GUI
# 22000 TCP and/or UDP for sync traffic
# 21027/UDP for discovery
# source: https://docs.syncthing.net/users/firewall.html
networking.firewall.allowedTCPPorts = [ 8384 22000 ];
networking.firewall.allowedUDPPorts = [ 22000 21027 ];
}

0 comments on commit c63d139

Please sign in to comment.