homeserver/roles/mgrote.tor-node/templates/bridge_torrc
mg 883dc870d4 tor-node: IPv6 eingebaut (#280)
Co-authored-by: Michael Grote <michael.grote@posteo.de>
Reviewed-on: mg/ansible#280
Co-authored-by: mg <michael.grote@posteo.de>
Co-committed-by: mg <michael.grote@posteo.de>
2021-12-15 16:56:54 +01:00

33 lines
1.1 KiB
Text

{{ file_header | default () }}
Nickname {{ tor_relay_name }}
ContactInfo {{ tor_contact_info }}
ORPort {{ tor_or_port }}
ExitRelay 0
SocksPort {{ tor_socks_port }}
BridgeRelay 1
ExtORPort auto
Log notice syslog
ServerTransportPlugin obfs4 exec /usr/bin/obfs4proxy
ServerTransportListenAddr obfs4 0.0.0.0:{{ tor_bridge_port }}
ExitPolicy reject *:*
CookieAuthentication 1
{% if tor_ipv6 is sameas true %}
ORPort [{{hostvars[inventory_hostname]['ansible_default_ipv6']['address']}}]:{{ tor_or_port }}
ServerTransportListenAddr obfs4 [{{hostvars[inventory_hostname]['ansible_default_ipv6']['address']}}]:{{ tor_bridge_port }}
{% endif %}
{% if tor_bandwidth_rate is defined %}
BandwidthRate {{ tor_bandwidth_rate }}
{% endif %}
{% if tor_bandwidth_burst is defined %}
BandwidthBurst {{ tor_bandwidth_burst }}
{% endif %}
{% if tor_my_family is defined %}
MyFamily {{ tor_my_family }}
{% endif %}