mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
test/parseconf: Add conf_examples for relays
Tests relay/relay_config.c. Part of 32213.
This commit is contained in:
@@ -0,0 +1 @@
|
||||
This tor was built with relay mode disabled.
|
||||
@@ -0,0 +1,5 @@
|
||||
# Relay tests
|
||||
# Options from relay/relay_config.c
|
||||
# Empty linelist values are ignored with a warning
|
||||
ORPort
|
||||
DirPort
|
||||
@@ -0,0 +1 @@
|
||||
Unrecognized value bad
|
||||
@@ -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
|
||||
@@ -0,0 +1 @@
|
||||
This tor was built with relay mode disabled.
|
||||
@@ -0,0 +1,2 @@
|
||||
DirPort 1
|
||||
ORPort 0
|
||||
@@ -0,0 +1,5 @@
|
||||
# Relay tests
|
||||
# Options from relay/relay_config.c
|
||||
# DirPort, but no ORPort
|
||||
ORPort 0
|
||||
DirPort 1
|
||||
@@ -0,0 +1 @@
|
||||
This tor was built with relay mode disabled.
|
||||
@@ -0,0 +1,2 @@
|
||||
Nickname Unnamed
|
||||
ORPort 1
|
||||
@@ -0,0 +1,4 @@
|
||||
# Relay tests
|
||||
# Options from relay/relay_config.c
|
||||
# Try a valid minimal config
|
||||
ORPort 1
|
||||
@@ -0,0 +1 @@
|
||||
This tor was built with relay mode disabled.
|
||||
@@ -0,0 +1,3 @@
|
||||
DirPort 2
|
||||
Nickname Unnamed
|
||||
ORPort 1
|
||||
@@ -0,0 +1,5 @@
|
||||
# Relay tests
|
||||
# Options from relay/relay_config.c
|
||||
# Try a valid minimal directory mirror config
|
||||
ORPort 1
|
||||
DirPort 2
|
||||
@@ -0,0 +1 @@
|
||||
This tor was built with relay mode disabled.
|
||||
@@ -0,0 +1,3 @@
|
||||
BridgeRelay 1
|
||||
Nickname Unnamed
|
||||
ORPort 1
|
||||
@@ -0,0 +1,5 @@
|
||||
# Relay tests
|
||||
# Options from relay/relay_config.c
|
||||
# Try a valid minimal bridge config
|
||||
ORPort 1
|
||||
BridgeRelay 1
|
||||
@@ -0,0 +1 @@
|
||||
This tor was built with relay mode disabled.
|
||||
@@ -0,0 +1,3 @@
|
||||
DirCache 0
|
||||
Nickname Unnamed
|
||||
ORPort 1
|
||||
@@ -0,0 +1,5 @@
|
||||
# Relay tests
|
||||
# Options from relay/relay_config.c
|
||||
# Try a valid minimal non-directory cache config
|
||||
ORPort 1
|
||||
DirCache 0
|
||||
@@ -0,0 +1 @@
|
||||
This tor was built with relay mode disabled.
|
||||
@@ -0,0 +1,3 @@
|
||||
BridgeRelay 1
|
||||
Nickname Unnamed
|
||||
ORPort 1
|
||||
@@ -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
|
||||
@@ -0,0 +1 @@
|
||||
This tor was built with relay mode disabled.
|
||||
@@ -0,0 +1,3 @@
|
||||
DirPort 2
|
||||
Nickname Unnamed
|
||||
ORPort 1
|
||||
@@ -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
|
||||
@@ -0,0 +1 @@
|
||||
This tor was built with relay mode disabled.
|
||||
@@ -0,0 +1,3 @@
|
||||
BridgeRelay 1
|
||||
Nickname Unnamed
|
||||
ORPort 1
|
||||
@@ -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
|
||||
@@ -0,0 +1 @@
|
||||
We are advertising an ORPort, but not actually listening on one
|
||||
@@ -0,0 +1 @@
|
||||
This tor was built with relay mode disabled.
|
||||
@@ -0,0 +1,4 @@
|
||||
# Relay tests
|
||||
# Options from relay/relay_config.c
|
||||
# Advertising but not listening: ORPort
|
||||
ORPort 1 NoListen
|
||||
@@ -0,0 +1 @@
|
||||
We are advertising a DirPort, but not actually listening on one
|
||||
@@ -0,0 +1 @@
|
||||
This tor was built with relay mode disabled.
|
||||
@@ -0,0 +1,4 @@
|
||||
# Relay tests
|
||||
# Options from relay/relay_config.c
|
||||
# Advertising but not listening: DirPort
|
||||
DirPort 1 NoListen
|
||||
@@ -0,0 +1 @@
|
||||
We are listening on an ORPort, but not advertising any ORPorts
|
||||
@@ -0,0 +1 @@
|
||||
This tor was built with relay mode disabled.
|
||||
@@ -0,0 +1,4 @@
|
||||
# Relay tests
|
||||
# Options from relay/relay_config.c
|
||||
# Listening but not advertising: ORPort
|
||||
ORPort 1 NoAdvertise
|
||||
@@ -0,0 +1 @@
|
||||
This tor was built with relay mode disabled.
|
||||
@@ -0,0 +1 @@
|
||||
DirPort 1 NoAdvertise
|
||||
@@ -0,0 +1,4 @@
|
||||
# Relay tests
|
||||
# Options from relay/relay_config.c
|
||||
# Listening but not advertising: DirPort
|
||||
DirPort 1 NoAdvertise
|
||||
@@ -0,0 +1 @@
|
||||
Can't advertise more than one DirPort
|
||||
@@ -0,0 +1 @@
|
||||
This tor was built with relay mode disabled.
|
||||
@@ -0,0 +1,5 @@
|
||||
# Relay tests
|
||||
# Options from relay/relay_config.c
|
||||
# Advertising more than one DirPort
|
||||
DirPort 1
|
||||
DirPort 2
|
||||
@@ -0,0 +1 @@
|
||||
Configured public relay to listen only on an IPv6 address. Tor needs to listen on an IPv4 address
|
||||
@@ -0,0 +1 @@
|
||||
This tor was built with relay mode disabled.
|
||||
@@ -0,0 +1,4 @@
|
||||
# Relay tests
|
||||
# Options from relay/relay_config.c
|
||||
# IPv6 ORPort only
|
||||
ORPort [::1]:2
|
||||
@@ -0,0 +1 @@
|
||||
This tor was built with relay mode disabled.
|
||||
@@ -0,0 +1,4 @@
|
||||
AccountingMax 1
|
||||
KeepBindCapabilities 0
|
||||
Nickname Unnamed
|
||||
ORPort 1
|
||||
@@ -0,0 +1,6 @@
|
||||
# Relay tests
|
||||
# Options from relay/relay_config.c
|
||||
# Rebind warning
|
||||
ORPort 1
|
||||
AccountingMax 1
|
||||
KeepBindCapabilities 0
|
||||
@@ -0,0 +1 @@
|
||||
Invalid DirPort configuration
|
||||
@@ -0,0 +1 @@
|
||||
This tor was built with relay mode disabled.
|
||||
@@ -0,0 +1,4 @@
|
||||
# Relay tests
|
||||
# Options from relay/relay_config.c
|
||||
# Bad DirPort
|
||||
DirPort illegal_hostname_chars$()^*%(%#%)#(%*
|
||||
@@ -0,0 +1 @@
|
||||
This tor was built with relay mode disabled.
|
||||
@@ -0,0 +1,3 @@
|
||||
Nickname Unnamed
|
||||
ORPort 1
|
||||
PublishServerDescriptor
|
||||
@@ -0,0 +1,5 @@
|
||||
# Relay tests
|
||||
# Options from relay/relay_config.c
|
||||
# Minimal PublishServerDescriptor
|
||||
ORPort 1
|
||||
PublishServerDescriptor
|
||||
@@ -0,0 +1 @@
|
||||
Unrecognized value in PublishServerDescriptor
|
||||
@@ -0,0 +1 @@
|
||||
This tor was built with relay mode disabled.
|
||||
@@ -0,0 +1,5 @@
|
||||
# Relay tests
|
||||
# Options from relay/relay_config.c
|
||||
# Invalid PublishServerDescriptor
|
||||
ORPort 1
|
||||
PublishServerDescriptor bad
|
||||
@@ -0,0 +1 @@
|
||||
This tor was built with relay mode disabled.
|
||||
@@ -0,0 +1,3 @@
|
||||
Nickname Unnamed
|
||||
ORPort 1
|
||||
PublishServerDescriptor v1,v2,hidserv
|
||||
@@ -0,0 +1,5 @@
|
||||
# Relay tests
|
||||
# Options from relay/relay_config.c
|
||||
# Ignored PublishServerDescriptor values
|
||||
ORPort 1
|
||||
PublishServerDescriptor v1,v2,hidserv
|
||||
@@ -0,0 +1 @@
|
||||
Invalid BridgeDistribution value
|
||||
@@ -0,0 +1 @@
|
||||
This tor was built with relay mode disabled.
|
||||
@@ -0,0 +1,6 @@
|
||||
# Relay tests
|
||||
# Options from relay/relay_config.c
|
||||
# Bad BridgeDistribution characters
|
||||
ORPort 1
|
||||
BridgeRelay 1
|
||||
BridgeDistribution *$%()@!
|
||||
@@ -0,0 +1 @@
|
||||
Relays must use 'auto' for the ConnectionPadding setting
|
||||
@@ -0,0 +1 @@
|
||||
This tor was built with relay mode disabled.
|
||||
@@ -0,0 +1,5 @@
|
||||
# Relay tests
|
||||
# Options from relay/relay_config.c
|
||||
# Relays can't set ConnectionPadding
|
||||
ORPort 1
|
||||
ConnectionPadding 1
|
||||
@@ -0,0 +1 @@
|
||||
Relays must use 'auto' for the ConnectionPadding setting
|
||||
@@ -0,0 +1 @@
|
||||
This tor was built with relay mode disabled.
|
||||
@@ -0,0 +1,5 @@
|
||||
# Relay tests
|
||||
# Options from relay/relay_config.c
|
||||
# Relays can't set ConnectionPadding
|
||||
ORPort 1
|
||||
ConnectionPadding 0
|
||||
@@ -0,0 +1 @@
|
||||
Relays cannot set ReducedConnectionPadding
|
||||
@@ -0,0 +1 @@
|
||||
This tor was built with relay mode disabled.
|
||||
@@ -0,0 +1,5 @@
|
||||
# Relay tests
|
||||
# Options from relay/relay_config.c
|
||||
# Relays can't set ReducedConnectionPadding 1
|
||||
ORPort 1
|
||||
ReducedConnectionPadding 1
|
||||
@@ -0,0 +1 @@
|
||||
Relays cannot set CircuitPadding to 0
|
||||
@@ -0,0 +1 @@
|
||||
This tor was built with relay mode disabled.
|
||||
@@ -0,0 +1,5 @@
|
||||
# Relay tests
|
||||
# Options from relay/relay_config.c
|
||||
# Relays can't set CircuitPadding to 0
|
||||
ORPort 1
|
||||
CircuitPadding 0
|
||||
@@ -0,0 +1 @@
|
||||
Relays cannot set ReducedCircuitPadding
|
||||
@@ -0,0 +1 @@
|
||||
This tor was built with relay mode disabled.
|
||||
@@ -0,0 +1,5 @@
|
||||
# Relay tests
|
||||
# Options from relay/relay_config.c
|
||||
# Relays can't set ReducedCircuitPadding 1
|
||||
ORPort 1
|
||||
ReducedCircuitPadding 1
|
||||
@@ -0,0 +1 @@
|
||||
SigningKeyLifetime is too short
|
||||
@@ -0,0 +1 @@
|
||||
This tor was built with relay mode disabled.
|
||||
@@ -0,0 +1,5 @@
|
||||
# Relay tests
|
||||
# Options from relay/relay_config.c
|
||||
# Short key lifetimes
|
||||
ORPort 1
|
||||
SigningKeyLifetime 1
|
||||
@@ -0,0 +1 @@
|
||||
This tor was built with relay mode disabled.
|
||||
@@ -0,0 +1,2 @@
|
||||
Nickname Unnamed
|
||||
ORPort 1
|
||||
@@ -0,0 +1,5 @@
|
||||
# Relay tests
|
||||
# Options from relay/relay_config.c
|
||||
# MyFamily normalisation: empty MyFamily
|
||||
ORPort 1
|
||||
MyFamily
|
||||
Reference in New Issue
Block a user