Compare commits
2 commits
195a9c46bb
...
753d9a581e
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
753d9a581e | ||
|
|
ac8525bcba |
3 changed files with 13 additions and 1 deletions
|
|
@ -86,6 +86,7 @@
|
|||
./services/coturn.nix
|
||||
./services/wireguard-outer.nix
|
||||
./services/borgbackup-vps.nix
|
||||
./services/syncthing-relay.nix
|
||||
];
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@
|
|||
allowedTCPPorts = [ ];
|
||||
interfaces."enp34s0".allowedTCPPorts = [ ];
|
||||
extraInputRules = ''
|
||||
ip saddr 192.168.1.0/24 tcp dport {22, 8096, 8920, 3000, 8282, 9696, 8989, 7878, 80} accept
|
||||
ip saddr {192.168.1.0/24, 10.10.0.0/24} tcp dport {22, 8096, 8920, 3000, 8282, 9696, 8989, 7878, 80} accept
|
||||
tcp dport {22, 8096, 8920, 3000, 8282, 9696, 8989, 7878, 80} drop
|
||||
|
||||
ip saddr 192.168.1.0/24 udp dport 5353 accept
|
||||
|
|
|
|||
11
services/syncthing-relay.nix
Normal file
11
services/syncthing-relay.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
services.syncthing.relay = {
|
||||
enable = true;
|
||||
providedBy = "ellie";
|
||||
pools = []; # Don't join public relay pools
|
||||
};
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ 22067 ];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue