fix: behavior and docs fixes

This commit is contained in:
FUFSoB committed 2026-09-26 18:35:32 +05:00
1 parent e4458dcae8
commit 2255e1f9f0
42 files changed
+320 -161

No files matched your search

@@ -30,10 +30,10 @@ in
routing = {
# Unlisted sites leave directly, where zapret2 unblocks what DPI blocks.
default = "direct";
# Russian sites are routed by the last rule below instead.
# Russian sites go to WARP by the last rule below instead.
directRu = false;
# Checked in order; the first match wins.
# Checked in order, before the lists; the first match wins.
rules = [
{
outbound = "ssh-proxy";
@@ -43,7 +43,7 @@ in
outbound = "warp";
geosites = [ "youtube" ];
}
# To mask your IP from Russian services
# Russian services see WARP's address instead of this host's.
{
outbound = "warp";
geosites = [ "category-ru" ];
@@ -60,8 +60,8 @@ in
};
};
# For blocked sites no list names yet. YouTube is pinned to WARP above, so it
# is kept out of the probes.
# For blocked sites no list names yet. YouTube already has its rule, so its video
# hosts are not worth probing.
autoProxy = {
enable = true;
exclude = [ "googlevideo.com" "gvt1.com" ];
@@ -85,7 +85,8 @@ in
hostKeyFile = "/run/secrets/proxy-ssh-known-hosts";
};
# Tor through the proxy, since this network blocks Tor.
# .onion names go to Tor without a rule. Tor is blocked here, so it connects
# through the proxy.
tor = {
enable = true;
asOutbound = true;
@@ -18,8 +18,8 @@ in
listeners.vpn = {
type = "amneziawg";
port = 51820;
# Fixed addresses, so firewall rules and DNS can name each device. Keys are
# generated on first start.
# Fixed addresses, so firewall rules and DNS can name each device.
# Keys are generated on first start.
users = [
{ name = "laptop"; address = "10.77.77.2"; }
{ name = "phone"; address = "10.77.77.3"; }
@@ -25,8 +25,7 @@ let
sharePort = 443; # share links name nginx's port, not the listener's
transport = extra // {
inherit path;
# nginx sets this header, so XRay sees each client's real address (for
# `proxy-ctl inbounds online`). A client cannot forge it: nginx overwrites it.
# nginx sets this header, so XRay sees each client's real address (for `proxy-ctl inbounds online`). A client cannot forge it: nginx overwrites it.
trustedXForwardedFor = [ "X-Real-IP" ];
};
inherit tls;
@@ -8,6 +8,8 @@ in
proxy = {
enable = true;
# Support all available protocols by enabling hybrid backend.
backend = "hybrid";
# The server's subscription: every listener, each a separate outbound.
subscriptions = [ { tag = "home"; urlFile = "/run/secrets/proxy-home-sub"; } ];
# The fastest listener that gets through the current network.
@@ -16,7 +18,7 @@ in
routing.default = "direct";
autoProxy.enable = true;
tun.enable = true; # when everything should go through: proxy-ctl proxy tun on
tun.enable = true; # when everything should go through: `proxy-ctl proxy tun on`
};
zapret = {
+1 -1
View File
@@ -19,7 +19,7 @@
enable = true;
serverNames = [ "www.microsoft.com" ];
privateKeyFile = "/run/secrets/reality-private-key";
publicKey = "jNXH…"; # from the same `xray x25519` run
publicKey = "jNXH…"; # both keys from `xray x25519`
shortIds = [ "0123abcd" ];
};
};
+1 -1
View File
@@ -19,7 +19,7 @@ in
environment.systemPackages = [
(proxySuite.wrapEnv { } pkgs.yt-dlp)
(proxySuite.wrapProxychains { } pkgs.telegram-desktop)
(proxySuite.wrapProxychains { } pkgs.curl)
(proxySuite.wrapPerApp { profile = "tun"; } pkgs.firefox)
];
+15
View File
@@ -0,0 +1,15 @@
{ config, lib, pkgs, ... }:
{
services.proxy-suite = {
enable = true;
zapret = {
enable = true;
global.enable = false; # no system-wide zapret
};
perAppRouting = {
enable = true;
createDefaultProfiles = true; # adds a profile named "zapret"
zapret.enable = true;
};
};
}