Safe Haskell | None |
---|---|
Language | Haskell98 |
- type HiddenServiceName = String
- type NodeName = String
- isBridge :: Property DebianLike
- isRelay :: Property DebianLike
- named :: NodeName -> Property (HasInfo + DebianLike)
- torPrivKey :: Context -> Property (HasInfo + DebianLike)
- torPrivKeyDirExists :: Property DebianLike
- torPrivKeyDir :: FilePath
- server :: Property DebianLike
- installed :: Property DebianLike
- configured :: [(String, String)] -> Property DebianLike
- data BwLimit
- bandwidthRate :: BwLimit -> Property DebianLike
- bandwidthRate' :: String -> Integer -> Property DebianLike
- hiddenServiceAvailable :: HiddenServiceName -> Int -> Property DebianLike
- hiddenService :: HiddenServiceName -> Int -> Property DebianLike
- hiddenServiceData :: IsContext c => HiddenServiceName -> c -> Property (HasInfo + DebianLike)
- restarted :: Property DebianLike
- mainConfig :: FilePath
- varLib :: FilePath
- varRun :: FilePath
- user :: User
- type NickName = String
- saneNickname :: String -> NickName
Documentation
type HiddenServiceName = String Source
isBridge :: Property DebianLike Source
Sets up a tor bridge. (Not a relay or exit node.)
Uses port 443
isRelay :: Property DebianLike Source
Sets up a tor relay.
Uses port 443
named :: NodeName -> Property (HasInfo + DebianLike) Source
Makes the tor node be named, with a known private key.
This can be moved to a different IP without needing to wait to accumulate trust.
torPrivKey :: Context -> Property (HasInfo + DebianLike) Source
server :: Property DebianLike Source
A tor server (bridge, relay, or exit) Don't use if you just want to run tor for personal use.
configured :: [(String, String)] -> Property DebianLike Source
Specifies configuration settings. Any lines in the config file that set other values for the specified settings will be removed, while other settings are left as-is. Tor is restarted when configuration is changed.
bandwidthRate :: BwLimit -> Property DebianLike Source
Limit incoming and outgoing traffic to the specified amount each.
For example, PerSecond "30 kibibytes" is the minimum limit for a useful relay.
bandwidthRate' :: String -> Integer -> Property DebianLike Source
hiddenServiceData :: IsContext c => HiddenServiceName -> c -> Property (HasInfo + DebianLike) Source
saneNickname :: String -> NickName Source
Convert String to a valid tor NickName.