Update tailscale behaviors
This commit is contained in:
parent
77acbbfe51
commit
45ccc81823
2 changed files with 7 additions and 6 deletions
nixos/hosts
|
@ -1,14 +1,14 @@
|
|||
{ ... }: {
|
||||
{ hostname, ... }: {
|
||||
imports = [
|
||||
../../common/services/tailscale-autoconnect.nix
|
||||
../../common/modules/raspberry-pi-4.nix
|
||||
];
|
||||
|
||||
time.timeZone = "America/Los_Angeles";
|
||||
networking.hostName = "bakersfield-rpi4";
|
||||
networking.hostName = hostname;
|
||||
services.tailscale.extraUpFlags = [
|
||||
"--advertise-exit-node"
|
||||
"--advertise-routes=192.168.1.13/32,192.168.1.14/32,192.168.1.15/32,192.168.1.100/32,192.168.1.31/32,192.168.1.101/32,192.168.1.99/32,192.168.1.0/24"
|
||||
"--advertise-routes=192.168.1.31/32,192.168.1.32/32,192.168.1.33/32,192.168.1.34/32,192.168.1.35/32,192.168.1.0/24"
|
||||
];
|
||||
boot.kernel.sysctl = { "net.ipv4.ip_forward" = true; };
|
||||
# networking.firewall.allowedTCPPorts = [ 22 ];
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ hostname, inputs, config, lib, modulesPath, system, ... }:
|
||||
{ hostname, config, lib, modulesPath, ... }:
|
||||
let
|
||||
ipAddress = "192.168.1.35";
|
||||
gateway = "192.168.1.1";
|
||||
|
@ -54,7 +54,8 @@ in {
|
|||
# networking.firewall.allowedTCPPorts = [ 22 ];
|
||||
|
||||
services.tailscale.extraUpFlags = [
|
||||
"--advertise-exit-node"
|
||||
"--advertise-routes=192.168.1.13/32,192.168.1.14/32,192.168.1.15/32,192.168.1.100/32,192.168.1.31/32,192.168.1.99/32,192.168.1.0/24"
|
||||
"--advertise-exit-node"
|
||||
"--accept-routes=false"
|
||||
"--advertise-routes=192.168.1.31/32,192.168.1.32/32,192.168.1.33/32,192.168.1.34/32,192.168.1.0/24"
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue