more network

This commit is contained in:
elwrcl committed 2026-08-14 03:10:25 +03:00
1 parent cad6880e26
commit 5749abf582
2 files changed
+11 -7

No files matched your search

+7 -2
View File
@@ -1,13 +1,14 @@
{ ... }: { ... }:
{ {
flake.nixosModules.net-dpi-evasion = flake.nixosModules.net-dpi-evasion =
{ ... }: { config, ... }:
{ {
environment.etc."zapret/exclude.txt".text = '' environment.etc."zapret/exclude.txt".text = ''
turkiye.gov.tr turkiye.gov.tr
sahibinden.com
gov.tr gov.tr
edevlet.gov.tr edevlet.gov.tr
sahibinden.com
shbdn.com
''; '';
services.zapret = { services.zapret = {
@@ -34,6 +35,10 @@
]; ];
}; };
systemd.services.zapret.restartTriggers = [
config.environment.etc."zapret/exclude.txt".source
];
networking.enableIPv6 = true; networking.enableIPv6 = true;
networking.firewall.extraCommands = '' networking.firewall.extraCommands = ''
iptables -I OUTPUT -p tcp -m multiport --dports 80,443 -m connbytes --connbytes-dir=original --connbytes-mode=packets --connbytes 1:9 -j NFQUEUE --queue-num 200 --queue-bypass iptables -I OUTPUT -p tcp -m multiport --dports 80,443 -m connbytes --connbytes-dir=original --connbytes-mode=packets --connbytes 1:9 -j NFQUEUE --queue-num 200 --queue-bypass
@@ -3,21 +3,21 @@
flake.nixosModules.net-network-manager = flake.nixosModules.net-network-manager =
{ lib, ... }: { lib, ... }:
let let
inherit (lib.modules) mkDefault; inherit (lib.modules) mkDefault mkForce;
in in
{ {
networking.hostName = "copland"; networking.hostName = "copland";
networking.networkmanager = { networking.networkmanager = {
enable = true; enable = true;
dns = "systemd-resolved"; dns = mkForce "none";
settings.main.systemd-resolved = false;
ethernet.macAddress = mkDefault "stable"; ethernet.macAddress = mkDefault "stable";
wifi.macAddress = mkDefault "random"; wifi.macAddress = mkDefault "random";
wifi.scanRandMacAddress = true; wifi.scanRandMacAddress = true;
connectionConfig = { connectionConfig = {
"ipv6.addr-gen-mode" = "stable-privacy"; "ipv6.addr-gen-mode" = "stable-privacy";
"ipv6.ip6-privacy" = 2; "ipv6.ip6-privacy" = 2;
"ipv4.ignore-auto-dns" = true;
"ipv6.ignore-auto-dns" = true;
}; };
}; };
networking.tempAddresses = "enabled"; networking.tempAddresses = "enabled";
@@ -36,7 +36,6 @@
"194.242.2.2#dns.mullvad.net" "194.242.2.2#dns.mullvad.net"
"2a07:e340::2#dns.mullvad.net" "2a07:e340::2#dns.mullvad.net"
]; ];
DNSOverTLS = "yes"; DNSOverTLS = "yes";
DNSSEC = "true"; DNSSEC = "true";
Domains = [ "~." ]; Domains = [ "~." ];