system/tailscale: only nat for dandelion
Some checks are pending
CI / Build linux-lava for x86_64-linux (push) Waiting to run
Some checks are pending
CI / Build linux-lava for x86_64-linux (push) Waiting to run
This commit is contained in:
parent
20b5d96686
commit
5b666bf576
1 changed files with 2 additions and 1 deletions
|
|
@ -4,8 +4,9 @@
|
||||||
networking.firewall.trustedInterfaces = [ "tailscale0" ];
|
networking.firewall.trustedInterfaces = [ "tailscale0" ];
|
||||||
networking.firewall.allowedUDPPorts = lib.mkIf (config.me.environment == "headless") [ 123 ];
|
networking.firewall.allowedUDPPorts = lib.mkIf (config.me.environment == "headless") [ 123 ];
|
||||||
|
|
||||||
networking.nat = {
|
networking.nat = lib.mkIf (config.networking.hostName == "dandelion") {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
externalInterface = "enp0s6";
|
||||||
internalInterfaces = [ "tailscaled0" ];
|
internalInterfaces = [ "tailscaled0" ];
|
||||||
forwardPorts = [
|
forwardPorts = [
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue