Y
yohoho
Guest
debian 10
my.domain don't open.
strace -f -vvv -o strace-tor2web.out tor2web --pidfile /var/run/tor2web/t2w.pid --uid tor2web --gid tor2web --nodaemon --command=start
Code:
2020-02-01 08:03:37+0000 ] Log opened.
2020-02-01 08:03:37+0000 [ PBServerFactory starting on '/var/run/tor2web/rpc.socket'
2020-02-01 08:03:37+0000 ] Starting factory
2020-02-01 08:03:37+0000 [ Starting factory _HTTP11ClientFactory(.quiescentCallback at 0x7efd458b4378>, )
2020-02-01 08:03:37+0000 [-] Stopping factory _HTTP11ClientFactory(.quiescentCallback at 0x7efd458b4378>, )
Unhandled error in Deferred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/tor2web/t2w.py", line 1040, in allHeadersReceived
self.requests[-1].requestReceived(self._command, self._path, self._version)
File "/usr/lib/python3/dist-packages/tor2web/t2w.py", line 469, in requestReceived
self.process()
File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 1613, in unwindGenerator
return _cancellableInlineCallbacks(gen)
File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 1529, in _cancellableInlineCallbacks
_inlineCallbacks(None, g, status)
File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 1418, in _inlineCallbacks
result = g.send(result)
File "/usr/lib/python3/dist-packages/tor2web/t2w.py", line 712, in process
self.redirect("https://" + request.host + request.uri)
builtins.TypeError: can only concatenate str (not "bytes") to str
cat /etc/tor2web.conf
Code:
cat /etc/tor2web.conf
# Tor2web configuration file
[main]
# Unique nodename identifier
nodename = [UNIQUE_IDENTIFIER]
# Path to Tor2web data directory
datadir = /home/tor2web
# Debug and logging
# logreqs = False
debugmode = True
debugtostdout = True
# Processes (suggested number of cores + 1)
processes = 5
requests_per_process = 100000
# Ip addresses and ports
transport = BOTH
listen_ipv4 = [LISTENING_IPV4_ADDRESS]
# listen_ipv6 = [LISTENING_IPV6_ADDRESS]
listen_port_http = 80
listen_port_https = 443
# This is the base hostname for the current tor2web node
basehost = my.domain
# This is the SOCKS host and port on which Tor is listening
sockshost = 127.0.0.1
socksport = 9050
socksoptimisticdata = True
sockmaxpersistentperhost = 5
sockcachedconnectiontimeout = 240
sockretryautomatically = True
# SSL configuration
ssl_key = /home/tor2web/certs/tor2web-key.pem
ssl_cert = /home/tor2web/certs/tor2web-cert.pem
# BE SURE TO CONFIGURE THE INTERMEDIATE CA OR YOUR WEB BROWSER WILL RESPOND
# WITH VERY LOUD WARNINGS AND ERRORS
# ssl_intermediate = /home/tor2web/certs/tor2web-intermediate.pem
# TO GENERATE DH Parameters:
# $ cd /home/tor2web/certs/
# $ openssl dhparam -out tor2web-dh.pem 2048
ssl_dh = /home/tor2web/certs/tor2web-dh.pem
cipher_list = ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA:DHE-DSS-AES256-SHA:DHE-RSA-AES128-SHA
ssl_tofu_cache_size = 100
# Access Blocking
mode = TRANSLATION
onion = godnotabaoadjjh6.onion
blockhotlinking = True
blockhotlinking_exts = [jpg, png, gif]
# Add special HTTP headers
# This option makes it possible to add headers to responses sent to clients.
# Do NOT use this unless you are positive you need it.
# extra_HTTP_headers_to_response = [ 'Cache-Control: max-age=600', 'Surrogate-Control: max-age=86400' ]
# Disable the automagical redirect of Tor user on Tor HSs
disable_tor_redirection = False
# If set to True will disable the tor2web disclaimer
disable_disclaimer = True
# If set to True will disable the tor2web banner
disable_banner = True
# If set to True will avoid rewriting visible data (experimental; will result
# in less functional proxy) Could be useful in relation to DMCA for US law only
# avoid_rewriting_visible_content = True
# Mail configuration for automatic exception and user abuse notifications
# smtpuser = [USERNAME]
# smtppass = [PASSWORD]
# smtpmail = [EMAIL]
# smtpmailto_exceptions = [EMAIL_FOR_ABUSES_EXCEPTIONS]
# smtpmailto_notifications = [EMAIL_FOR_ABUSES_NOTIFICATION]
# smtpdomain = [DOMAIN]
# smtpport = [PORT]
# Exit nodes list refresh period (in seconds)
# exit_node_list_refresh = 600
# Enables the automatic fetching of the hashed blocklist
# automatic_blocklist_updates_source = https://ahmia.fi/bannedMD5.txt
# automatic_blocklist_updates_refresh = 600
# automatic_blocklist_updates_mode = MERGE
# This publishes blocklist which will be available at::/antanistaticmap/lists/blocklist
# publish_blocklist = False
# List of mirrors shown in Tor2web disclaimer and banner
# An updated list of know mirrors can be found at: https://github.com/globaleaks/tor2web/wiki
# mirror = [tor2web.org, mirror2.tld, mirror3.tld, ...]
# This allows Tor2web to make use of a simple TCP proxies
# dummyproxy = https://127.0.0.1:8080
APPARMOR_SANDBOXING=0
/etc/init.d/tor2web status
Code:
tor2web.service - LSB: Start the Tor2web proxy.
Loaded: loaded (/etc/init.d/tor2web; generated)
Active: active (running) since Sat 2020-02-01 08:44:17 UTC; 16h ago
Docs: man:systemd-sysv-generator(8)
Process: 403 ExecStart=/etc/init.d/tor2web start (code=exited, status=0/SUCCESS)
Tasks: 7 (limit: 3567)
Memory: 188.8M
CGroup: /system.slice/tor2web.service
├─448 python3 /usr/lib/python3/dist-packages/tor2web/t2w.py --pidfile /var/run/tor2web/t2w.pid --uid tor2web --gid tor2web --command=start
├─450 /bin/python3 /usr/lib/python3/dist-packages/tor2web/t2w.py --pidfile /var/run/tor2web/t2w.pid --uid tor2web --gid tor2web --command=start
├─451 /bin/python3 /usr/lib/python3/dist-packages/tor2web/t2w.py --pidfile /var/run/tor2web/t2w.pid --uid tor2web --gid tor2web --command=start
├─452 /bin/python3 /usr/lib/python3/dist-packages/tor2web/t2w.py --pidfile /var/run/tor2web/t2w.pid --uid tor2web --gid tor2web --command=start
├─453 /bin/python3 /usr/lib/python3/dist-packages/tor2web/t2w.py --pidfile /var/run/tor2web/t2w.pid --uid tor2web --gid tor2web --command=start
└─454 /bin/python3 /usr/lib/python3/dist-packages/tor2web/t2w.py --pidfile /var/run/tor2web/t2w.pid --uid tor2web --gid tor2web --command=start
Feb 02 00:15:55 server.domain.com tor2web[403]: File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 1613, in unwindGenerator
Feb 02 00:15:55 server.domain.com tor2web[403]: return _cancellableInlineCallbacks(gen)
Feb 02 00:15:55 server.domain.com tor2web[403]: File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 1529, in _cancellableInlineCallbacks
Feb 02 00:15:55 server.domain.com tor2web[403]: _inlineCallbacks(None, g, status)
Feb 02 00:15:55 server.domain.com tor2web[403]: --- <exception caught here> ---
Feb 02 00:15:55 server.domain.com tor2web[403]: File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 1418, in _inlineCallbacks
Feb 02 00:15:55 server.domain.com tor2web[403]: result = g.send(result)
Feb 02 00:15:55 server.domain.com tor2web[403]: File "/usr/lib/python3/dist-packages/tor2web/t2w.py", line 712, in process
Feb 02 00:15:55 server.domain.com tor2web[403]: self.redirect("https://" + request.host + request.uri)
Feb 02 00:15:55 server.domain.com tor2web[403]: builtins.TypeError: can only concatenate str (not "bytes") to str
my.domain don't open.