From 81f9c05d49d7a22a1d493335de1d71f3773208bf Mon Sep 17 00:00:00 2001 From: root Date: Sat, 16 Nov 2024 13:21:37 +0000 Subject: [PATCH] fix tor and update example conf --- haproxy/haproxy.cfg | 20 +-- include.conf.example | 319 -------------------------------------- include.leaf.example.conf | 224 ++++++++++++++++++++++++++ tor/torrc | 2 +- 4 files changed, 235 insertions(+), 330 deletions(-) delete mode 100644 include.conf.example create mode 100644 include.leaf.example.conf diff --git a/haproxy/haproxy.cfg b/haproxy/haproxy.cfg index 9c1e023..3ddb4a6 100644 --- a/haproxy/haproxy.cfg +++ b/haproxy/haproxy.cfg @@ -4,16 +4,16 @@ log stdout format raw local0 debug defaults log global retries 0 -timeout connect 604800s -timeout client 604800s -timeout server 604800s -timeout tunnel 604800s -timeout queue 604800s -timeout http-request 604800s -timeout http-keep-alive 604800s -timeout client-fin 604800s -timeout server-fin 604800s -timeout check 604800s +#timeout connect 604800s +#timeout client 604800s +#timeout server 604800s +#timeout tunnel 604800s +#timeout queue 604800s +#timeout http-request 604800s +#timeout http-keep-alive 604800s +#timeout client-fin 604800s +#timeout server-fin 604800s +#timeout check 604800s option tcplog frontend tor-north diff --git a/include.conf.example b/include.conf.example deleted file mode 100644 index f528328..0000000 --- a/include.conf.example +++ /dev/null @@ -1,319 +0,0 @@ - - -# - -# - - - -# - -# - - - - - - - - - - - - - -# from the torrc man page (latest / newer) -# HiddenServiceExportCircuitID protocol -# The onion service will use the given protocol to expose the global circuit identifier -# of each inbound client circuit. The only protocol supported right now 'haproxy'. -# This option is only for v3 services. (Default: none) -# -# Create a hidden service and set HiddenServiceExportCircuitID to 'haproxy' in the -# torrc, then enable this binding: -# -# - -# and enable the corresponding connect block: -# - -# uncomment this line to masquerade tor users with a cloaked hostmask (uncloaked is -# an fc00::/7 address that corresponds to a Tor circuit ID provided via PROXY -# protocol) - -# - -# uncomment the following to setup WebIRC -# - -# and enable the corresponding connect block: -# - -# uncomment this line to masquerade tor users with a cloaked hostmask (uncloaked is -# an fc00::/7 address that corresponds to a Tor circuit ID provided via PROXY -# protocol) - -# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -# - -# -# -# -# - -# - -# - -# - -# - -# - -# - -# - -# - -# - -# - -# - -# - -# - -# - -# - -# - -# - -# - -# - -# - -# - -# - -# - -# - -# - -# - -# diff --git a/include.leaf.example.conf b/include.leaf.example.conf new file mode 100644 index 0000000..27d6b2a --- /dev/null +++ b/include.leaf.example.conf @@ -0,0 +1,224 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tor/torrc b/tor/torrc index 03850ba..7fbe371 100644 --- a/tor/torrc +++ b/tor/torrc @@ -5,7 +5,7 @@ NATDPort 0 RunAsDaemon 0 DataDirectory /var/lib/tor HiddenServiceDir /var/lib/tor/ircd -HiddenServicePort 6667 127.0.0.1:19818 +HiddenServicePort 6668 127.0.0.1:19818 HiddenServiceMaxStreams 65535 HiddenServiceExportCircuitID haproxy CookieAuthentication 0