This commit is contained in:
= 2025-11-22 20:57:22 +00:00
parent 5546b4cbe9
commit 03130d29d1
13 changed files with 572 additions and 0 deletions

18
modules/tor.nix Normal file
View file

@ -0,0 +1,18 @@
{
#services.tor = {
# enable = true;
# settings = {
# VirtualAddrNetwork = "10.192.0.0/10";
# AutomapHostsOnResolve = true;
# TransPort = 9040;
# DNSPort = 5353;
# };
#};
#networking.firewall.extraCommands = ''
# # Redirect DNS UDP to Tor DNSPort
# iptables -t nat -A PREROUTING -p udp --dport 53 -j REDIRECT --to-ports 5353
# # Redirect TCP connections to Tor TransPort
# iptables -t nat -A PREROUTING -p tcp --syn -j REDIRECT --to-ports 9040
#'';
}