fix networking
This commit is contained in:
@@ -1,4 +1,6 @@
|
|||||||
{config, ...}: {
|
{config, ...}: {
|
||||||
|
boot.kernel.sysctl."net.ipv4.conf.eno1.rp_filter" = 0;
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
useDHCP = false;
|
useDHCP = false;
|
||||||
interfaces.eno1.ipv4.addresses = [
|
interfaces.eno1.ipv4.addresses = [
|
||||||
@@ -12,12 +14,14 @@
|
|||||||
firewall = {
|
firewall = {
|
||||||
enable = true;
|
enable = true;
|
||||||
trustedInterfaces = ["eno1" "tailscale0"];
|
trustedInterfaces = ["eno1" "tailscale0"];
|
||||||
allowedUDPPorts = [
|
allowedUDPPorts = [
|
||||||
config.services.tailscale.port
|
53
|
||||||
];
|
config.services.tailscale.port
|
||||||
allowedTCPPorts = [
|
];
|
||||||
22
|
allowedTCPPorts = [
|
||||||
];
|
22
|
||||||
|
53
|
||||||
|
];
|
||||||
checkReversePath = "loose";
|
checkReversePath = "loose";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user