haskell-tor-0.1.1: A Haskell Tor Node

Safe HaskellNone
LanguageHaskell2010

Tor.RouterDesc

Description

Structures and rules for describing routers.

Synopsis

Documentation

blankRouterDesc :: RouterDesc Source

A blank router description, with most of the options initialized with standard "blank" values.

data NodeFamily Source

A family descriptor for a node. Either a nickname, or a digest referencing the family, or both.

data ExitRule Source

A rule for accepting or rejecting traffic, usually specified by exit nodes.

Constructors

ExitRuleAccept AddrSpec PortSpec

Accept matching traffic.

ExitRuleReject AddrSpec PortSpec

Reject matching traffic.

Instances

data AddrSpec Source

An address or subnet specifier.

Constructors

AddrSpecAll

Accept any address

AddrSpecIP4 String

Accept this specific address.

AddrSpecIP4Mask String String

Accept this IP address and subnet mask (255.255.255.0,etc.)

AddrSpecIP4Bits String Int

Accept this IP address and CIDR mask (/24,etc.)

AddrSpecIP6 String

Accept this specific IP6 address.

AddrSpecIP6Bits String Int

Accept this subnet and CIDR mask.

data PortSpec Source

A port specifier

Constructors

PortSpecAll

Accept any port

PortSpecRange Word16 Word16

Accept ports between the two values, inclusive.

PortSpecSingle Word16

Accept only the given port.