18 lines
505 B
Nix
18 lines
505 B
Nix
{
|
|
#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
|
|
#'';
|
|
}
|