updates
This commit is contained in:
parent
5546b4cbe9
commit
03130d29d1
13 changed files with 572 additions and 0 deletions
18
modules/tor.nix
Normal file
18
modules/tor.nix
Normal 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
|
||||
#'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue