test/parseconf: Add conf_examples for relays

Tests relay/relay_config.c.

Part of 32213.
This commit is contained in:
teor 2019-11-01 14:29:04 +10:00
parent 6d52b5ce91
commit 7504711510
87 changed files with 224 additions and 0 deletions

View File

@ -0,0 +1 @@
This tor was built with relay mode disabled.

View File

View File

@ -0,0 +1,5 @@
# Relay tests
# Options from relay/relay_config.c
# Empty linelist values are ignored with a warning
ORPort
DirPort

View File

@ -0,0 +1 @@
Unrecognized value bad

View File

View File

@ -0,0 +1,7 @@
# Relay tests
# Options from relay/relay_config.c
# Bad options are also ignored
ORPort illegal_hostname_chars$()^*%(%#%)#(%*
DirPort illegal_hostname_chars$()^*%(%#%)#(%*
DirCache bad
BridgeRelay bad

View File

@ -0,0 +1 @@
This tor was built with relay mode disabled.

View File

@ -0,0 +1,2 @@
DirPort 1
ORPort 0

View File

@ -0,0 +1,5 @@
# Relay tests
# Options from relay/relay_config.c
# DirPort, but no ORPort
ORPort 0
DirPort 1

View File

@ -0,0 +1 @@
This tor was built with relay mode disabled.

View File

@ -0,0 +1,2 @@
Nickname Unnamed
ORPort 1

View File

@ -0,0 +1,4 @@
# Relay tests
# Options from relay/relay_config.c
# Try a valid minimal config
ORPort 1

View File

@ -0,0 +1 @@
This tor was built with relay mode disabled.

View File

@ -0,0 +1,3 @@
DirPort 2
Nickname Unnamed
ORPort 1

View File

@ -0,0 +1,5 @@
# Relay tests
# Options from relay/relay_config.c
# Try a valid minimal directory mirror config
ORPort 1
DirPort 2

View File

@ -0,0 +1 @@
This tor was built with relay mode disabled.

View File

@ -0,0 +1,3 @@
BridgeRelay 1
Nickname Unnamed
ORPort 1

View File

@ -0,0 +1,5 @@
# Relay tests
# Options from relay/relay_config.c
# Try a valid minimal bridge config
ORPort 1
BridgeRelay 1

View File

@ -0,0 +1 @@
This tor was built with relay mode disabled.

View File

@ -0,0 +1,3 @@
DirCache 0
Nickname Unnamed
ORPort 1

View File

@ -0,0 +1,5 @@
# Relay tests
# Options from relay/relay_config.c
# Try a valid minimal non-directory cache config
ORPort 1
DirCache 0

View File

@ -0,0 +1 @@
This tor was built with relay mode disabled.

View File

@ -0,0 +1,3 @@
BridgeRelay 1
Nickname Unnamed
ORPort 1

View File

@ -0,0 +1,6 @@
# Relay tests
# Options from relay/relay_config.c
# Try a valid config with all the bridge options
ORPort 1
BridgeRelay 1
DirCache 1

View File

@ -0,0 +1 @@
This tor was built with relay mode disabled.

View File

@ -0,0 +1,3 @@
DirPort 2
Nickname Unnamed
ORPort 1

View File

@ -0,0 +1,6 @@
# Relay tests
# Options from relay/relay_config.c
# Try a valid config with all the non-bridge options
ORPort 1
DirPort 2
DirCache 1

View File

@ -0,0 +1 @@
This tor was built with relay mode disabled.

View File

@ -0,0 +1,3 @@
BridgeRelay 1
Nickname Unnamed
ORPort 1

View File

@ -0,0 +1,7 @@
# Relay tests
# Options from relay/relay_config.c
# Try a valid config, that has a warning: Bridge, warn and disable DirPort
ORPort 1
DirPort 2
DirCache 1
BridgeRelay 1

View File

@ -0,0 +1 @@
We are advertising an ORPort, but not actually listening on one

View File

@ -0,0 +1 @@
This tor was built with relay mode disabled.

View File

@ -0,0 +1,4 @@
# Relay tests
# Options from relay/relay_config.c
# Advertising but not listening: ORPort
ORPort 1 NoListen

View File

@ -0,0 +1 @@
We are advertising a DirPort, but not actually listening on one

View File

@ -0,0 +1 @@
This tor was built with relay mode disabled.

View File

@ -0,0 +1,4 @@
# Relay tests
# Options from relay/relay_config.c
# Advertising but not listening: DirPort
DirPort 1 NoListen

View File

@ -0,0 +1 @@
We are listening on an ORPort, but not advertising any ORPorts

View File

@ -0,0 +1 @@
This tor was built with relay mode disabled.

View File

@ -0,0 +1,4 @@
# Relay tests
# Options from relay/relay_config.c
# Listening but not advertising: ORPort
ORPort 1 NoAdvertise

View File

@ -0,0 +1 @@
This tor was built with relay mode disabled.

View File

@ -0,0 +1 @@
DirPort 1 NoAdvertise

View File

@ -0,0 +1,4 @@
# Relay tests
# Options from relay/relay_config.c
# Listening but not advertising: DirPort
DirPort 1 NoAdvertise

View File

@ -0,0 +1 @@
Can't advertise more than one DirPort

View File

@ -0,0 +1 @@
This tor was built with relay mode disabled.

View File

@ -0,0 +1,5 @@
# Relay tests
# Options from relay/relay_config.c
# Advertising more than one DirPort
DirPort 1
DirPort 2

View File

@ -0,0 +1 @@
Configured public relay to listen only on an IPv6 address. Tor needs to listen on an IPv4 address

View File

@ -0,0 +1 @@
This tor was built with relay mode disabled.

View File

@ -0,0 +1,4 @@
# Relay tests
# Options from relay/relay_config.c
# IPv6 ORPort only
ORPort [::1]:2

View File

@ -0,0 +1 @@
This tor was built with relay mode disabled.

View File

@ -0,0 +1,4 @@
AccountingMax 1
KeepBindCapabilities 0
Nickname Unnamed
ORPort 1

View File

@ -0,0 +1,6 @@
# Relay tests
# Options from relay/relay_config.c
# Rebind warning
ORPort 1
AccountingMax 1
KeepBindCapabilities 0

View File

@ -0,0 +1 @@
Invalid DirPort configuration

View File

@ -0,0 +1 @@
This tor was built with relay mode disabled.

View File

@ -0,0 +1,4 @@
# Relay tests
# Options from relay/relay_config.c
# Bad DirPort
DirPort illegal_hostname_chars$()^*%(%#%)#(%*

View File

@ -0,0 +1 @@
This tor was built with relay mode disabled.

View File

@ -0,0 +1,3 @@
Nickname Unnamed
ORPort 1
PublishServerDescriptor

View File

@ -0,0 +1,5 @@
# Relay tests
# Options from relay/relay_config.c
# Minimal PublishServerDescriptor
ORPort 1
PublishServerDescriptor

View File

@ -0,0 +1 @@
Unrecognized value in PublishServerDescriptor

View File

@ -0,0 +1 @@
This tor was built with relay mode disabled.

View File

@ -0,0 +1,5 @@
# Relay tests
# Options from relay/relay_config.c
# Invalid PublishServerDescriptor
ORPort 1
PublishServerDescriptor bad

View File

@ -0,0 +1 @@
This tor was built with relay mode disabled.

View File

@ -0,0 +1,3 @@
Nickname Unnamed
ORPort 1
PublishServerDescriptor v1,v2,hidserv

View File

@ -0,0 +1,5 @@
# Relay tests
# Options from relay/relay_config.c
# Ignored PublishServerDescriptor values
ORPort 1
PublishServerDescriptor v1,v2,hidserv

View File

@ -0,0 +1 @@
Invalid BridgeDistribution value

View File

@ -0,0 +1 @@
This tor was built with relay mode disabled.

View File

@ -0,0 +1,6 @@
# Relay tests
# Options from relay/relay_config.c
# Bad BridgeDistribution characters
ORPort 1
BridgeRelay 1
BridgeDistribution *$%()@!

View File

@ -0,0 +1 @@
Relays must use 'auto' for the ConnectionPadding setting

View File

@ -0,0 +1 @@
This tor was built with relay mode disabled.

View File

@ -0,0 +1,5 @@
# Relay tests
# Options from relay/relay_config.c
# Relays can't set ConnectionPadding
ORPort 1
ConnectionPadding 1

View File

@ -0,0 +1 @@
Relays must use 'auto' for the ConnectionPadding setting

View File

@ -0,0 +1 @@
This tor was built with relay mode disabled.

View File

@ -0,0 +1,5 @@
# Relay tests
# Options from relay/relay_config.c
# Relays can't set ConnectionPadding
ORPort 1
ConnectionPadding 0

View File

@ -0,0 +1 @@
Relays cannot set ReducedConnectionPadding

View File

@ -0,0 +1 @@
This tor was built with relay mode disabled.

View File

@ -0,0 +1,5 @@
# Relay tests
# Options from relay/relay_config.c
# Relays can't set ReducedConnectionPadding 1
ORPort 1
ReducedConnectionPadding 1

View File

@ -0,0 +1 @@
Relays cannot set CircuitPadding to 0

View File

@ -0,0 +1 @@
This tor was built with relay mode disabled.

View File

@ -0,0 +1,5 @@
# Relay tests
# Options from relay/relay_config.c
# Relays can't set CircuitPadding to 0
ORPort 1
CircuitPadding 0

View File

@ -0,0 +1 @@
Relays cannot set ReducedCircuitPadding

View File

@ -0,0 +1 @@
This tor was built with relay mode disabled.

View File

@ -0,0 +1,5 @@
# Relay tests
# Options from relay/relay_config.c
# Relays can't set ReducedCircuitPadding 1
ORPort 1
ReducedCircuitPadding 1

View File

@ -0,0 +1 @@
SigningKeyLifetime is too short

View File

@ -0,0 +1 @@
This tor was built with relay mode disabled.

View File

@ -0,0 +1,5 @@
# Relay tests
# Options from relay/relay_config.c
# Short key lifetimes
ORPort 1
SigningKeyLifetime 1

View File

@ -0,0 +1 @@
This tor was built with relay mode disabled.

View File

@ -0,0 +1,2 @@
Nickname Unnamed
ORPort 1

View File

@ -0,0 +1,5 @@
# Relay tests
# Options from relay/relay_config.c
# MyFamily normalisation: empty MyFamily
ORPort 1
MyFamily