mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-08-26 12:46:08 +00:00
tor: Configure for IPv6 also
This commit is contained in:
parent
ee521e098f
commit
13655f05bc
@ -59,11 +59,13 @@ def subcommand_setup(_):
|
|||||||
# interactive=False.
|
# interactive=False.
|
||||||
lines = """
|
lines = """
|
||||||
# Run as non-exit bridge relay
|
# Run as non-exit bridge relay
|
||||||
|
SocksPort [::]:9050
|
||||||
SocksPort 0.0.0.0:9050
|
SocksPort 0.0.0.0:9050
|
||||||
ORPort auto
|
ORPort auto
|
||||||
ControlPort 9051
|
ControlPort 9051
|
||||||
BridgeRelay 1
|
BridgeRelay 1
|
||||||
Exitpolicy reject *:*
|
Exitpolicy reject *:*
|
||||||
|
Exitpolicy reject6 *:*
|
||||||
|
|
||||||
# Enable obfsproxy
|
# Enable obfsproxy
|
||||||
ServerTransportPlugin obfs3,scramblesuit exec /usr/bin/obfsproxy managed
|
ServerTransportPlugin obfs3,scramblesuit exec /usr/bin/obfsproxy managed
|
||||||
@ -73,7 +75,9 @@ ExtORPort auto
|
|||||||
VirtualAddrNetworkIPv4 10.192.0.0/10
|
VirtualAddrNetworkIPv4 10.192.0.0/10
|
||||||
AutomapHostsOnResolve 1
|
AutomapHostsOnResolve 1
|
||||||
TransPort 127.0.0.1:9040
|
TransPort 127.0.0.1:9040
|
||||||
|
TransPort [::1]:9040
|
||||||
DNSPort 127.0.0.1:9053
|
DNSPort 127.0.0.1:9053
|
||||||
|
DNSPort [::1]:9053
|
||||||
"""
|
"""
|
||||||
with open(TOR_CONFIG, 'w') as conffile:
|
with open(TOR_CONFIG, 'w') as conffile:
|
||||||
conffile.writelines(lines)
|
conffile.writelines(lines)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user