Update Docker / Podman to allow Tailscale as a trusted netwoork
This commit is contained in:
parent
70e6a38ca7
commit
01513e980f
2 changed files with 12 additions and 0 deletions
|
@ -8,6 +8,12 @@
|
||||||
"net.ipv4.tcp_max_syn_backlog" = 4096;
|
"net.ipv4.tcp_max_syn_backlog" = 4096;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Allow Docker containers to access Tailscale network
|
||||||
|
networking.firewall = {
|
||||||
|
trustedInterfaces = [ "tailscale0" ];
|
||||||
|
allowedUDP = [ 41641 ]; # Tailscale port
|
||||||
|
};
|
||||||
|
|
||||||
virtualisation.docker = {
|
virtualisation.docker = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableOnBoot = true;
|
enableOnBoot = true;
|
||||||
|
|
|
@ -6,6 +6,12 @@
|
||||||
"fs.inotify.max_user_instances" = 1024;
|
"fs.inotify.max_user_instances" = 1024;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Allow Docker containers to access Tailscale network
|
||||||
|
networking.firewall = {
|
||||||
|
trustedInterfaces = [ "tailscale0" ];
|
||||||
|
allowedUDPPorts = [ 41641 ]; # Tailscale port
|
||||||
|
};
|
||||||
|
|
||||||
virtualisation.podman = {
|
virtualisation.podman = {
|
||||||
enable = true;
|
enable = true;
|
||||||
dockerSocket.enable = true;
|
dockerSocket.enable = true;
|
||||||
|
|
Loading…
Reference in a new issue