Skip to content

Instantly share code, notes, and snippets.

@Mic92
Created February 9, 2018 22:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Mic92/ac06994b212d37b5220c61d7452ba663 to your computer and use it in GitHub Desktop.
Save Mic92/ac06994b212d37b5220c61d7452ba663 to your computer and use it in GitHub Desktop.
{config,...}:
{
services.tor = {
enable = true;
extraConfig = ''
SocksPort 0
HiddenServiceNonAnonymousMode 1
HiddenServiceSingleHopMode 1
ExitNodes {de}
NewCircuitPeriod 120
'';
hiddenServices."ssh".map = [ { port = 22; } ];
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment