mirror of
https://github.com/elwrcl/copnix.git
synced 2026-10-31 14:28:02 +03:00
more network
This commit is contained in:
2 files changed
+11
-7
No files matched your search
@@ -1,13 +1,14 @@
|
||||
{ ... }:
|
||||
{
|
||||
flake.nixosModules.net-dpi-evasion =
|
||||
{ ... }:
|
||||
{ config, ... }:
|
||||
{
|
||||
environment.etc."zapret/exclude.txt".text = ''
|
||||
turkiye.gov.tr
|
||||
sahibinden.com
|
||||
gov.tr
|
||||
edevlet.gov.tr
|
||||
sahibinden.com
|
||||
shbdn.com
|
||||
'';
|
||||
|
||||
services.zapret = {
|
||||
@@ -34,6 +35,10 @@
|
||||
];
|
||||
};
|
||||
|
||||
systemd.services.zapret.restartTriggers = [
|
||||
config.environment.etc."zapret/exclude.txt".source
|
||||
];
|
||||
|
||||
networking.enableIPv6 = true;
|
||||
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
|
||||
|
||||
@@ -3,21 +3,21 @@
|
||||
flake.nixosModules.net-network-manager =
|
||||
{ lib, ... }:
|
||||
let
|
||||
inherit (lib.modules) mkDefault;
|
||||
inherit (lib.modules) mkDefault mkForce;
|
||||
in
|
||||
{
|
||||
networking.hostName = "copland";
|
||||
|
||||
networking.networkmanager = {
|
||||
enable = true;
|
||||
dns = "systemd-resolved";
|
||||
dns = mkForce "none";
|
||||
settings.main.systemd-resolved = false;
|
||||
ethernet.macAddress = mkDefault "stable";
|
||||
wifi.macAddress = mkDefault "random";
|
||||
wifi.scanRandMacAddress = true;
|
||||
connectionConfig = {
|
||||
"ipv6.addr-gen-mode" = "stable-privacy";
|
||||
"ipv6.ip6-privacy" = 2;
|
||||
"ipv4.ignore-auto-dns" = true;
|
||||
"ipv6.ignore-auto-dns" = true;
|
||||
};
|
||||
};
|
||||
networking.tempAddresses = "enabled";
|
||||
@@ -36,7 +36,6 @@
|
||||
"194.242.2.2#dns.mullvad.net"
|
||||
"2a07:e340::2#dns.mullvad.net"
|
||||
];
|
||||
|
||||
DNSOverTLS = "yes";
|
||||
DNSSEC = "true";
|
||||
Domains = [ "~." ];
|
||||
|
||||
Reference in new issue
Block a user