From 13d9e782925b831675375b78e97cce97647cc52d Mon Sep 17 00:00:00 2001 From: acidvegas Date: Sun, 1 Oct 2023 00:10:32 -0400 Subject: [PATCH] Configs updated for hidden service usage --- doc/conf/unrealircd.link.conf | 30 +++++++++++++++------ doc/conf/unrealircd.remote.conf | 48 ++++++++++++++++++--------------- 2 files changed, 48 insertions(+), 30 deletions(-) diff --git a/doc/conf/unrealircd.link.conf b/doc/conf/unrealircd.link.conf index 5226bba..5fbb198 100644 --- a/doc/conf/unrealircd.link.conf +++ b/doc/conf/unrealircd.link.conf @@ -1,11 +1,13 @@ -include "https://USERNAME:PASSWORD@HOSTNAME:PORT/badwords.conf"; -include "https://USERNAME:PASSWORD@HOSTNAME:PORT/except.conf"; -include "https://USERNAME:PASSWORD@HOSTNAME:PORT/ircd.conf"; -include "https://USERNAME:PASSWORD@HOSTNAME:PORT/modules.conf"; -include "https://USERNAME:PASSWORD@HOSTNAME:PORT/opers.conf"; -include "https://USERNAME:PASSWORD@HOSTNAME:PORT/snomasks.conf"; -include "https://USERNAME:PASSWORD@HOSTNAME:PORT/spamfilter.conf"; +include "https://USERNAME:PASSWORD@hub.supernets.org:PORT/badwords.conf"; +include "https://USERNAME:PASSWORD@hub.supernets.org:PORT/except.conf"; +include "https://USERNAME:PASSWORD@hub.supernets.org:PORT/ircd.conf"; +include "https://USERNAME:PASSWORD@hub.supernets.org:PORT/modules.conf"; +include "https://USERNAME:PASSWORD@hub.supernets.org:PORT/opers.conf"; +include "https://USERNAME:PASSWORD@hub.supernets.org:PORT/snomasks.conf"; +include "https://USERNAME:PASSWORD@hub.supernets.org:PORT/spamfilter.conf"; + me { name "example.supernets.org"; info "SuperNETS IRC Network"; sid XXX; } + listen { ip *; port 6697; @@ -23,4 +25,16 @@ listen { certificate "tls/irc.crt"; key "tls/irc.key"; } -} \ No newline at end of file +} + +listen { + file "/etc/tor/unrealircd/tor_ircd.socket"; + mode 0777; + spoof-ip 127.0.0.2; +} +listen { + file "/etc/tor/unrealircd/tor_tls_ircd.socket"; + mode 0777; + spoof-ip 127.0.0.2; + options { tls; } +} diff --git a/doc/conf/unrealircd.remote.conf b/doc/conf/unrealircd.remote.conf index 8396221..feae3a8 100644 --- a/doc/conf/unrealircd.remote.conf +++ b/doc/conf/unrealircd.remote.conf @@ -33,12 +33,6 @@ allow { mask { 127.0.0.2; } class tor; maxperip 100; globa listen { ip *; port 6660–6669; options { clientsonly; } } listen { ip *; port 7000; options { clientsonly; } } listen { ip *; port REDACTED; options { serversonly; tls; } } -#listen { -# file "/etc/tor/unrealircd/tor_ircd.socket"; -# mode 0777; -# spoof-ip 127.0.0.2; -# options { tls; } -#} #require authentication { # mask { *@127.0.0.2; } @@ -235,25 +229,15 @@ set { manual-ban-target ip; hide-idle-time { policy always; } whois-details { - bot { everyone none; self full; oper full; } - channels { everyone none; self full; oper full; } - oper { everyone none; self full; oper full; } - reputation { everyone full; self full; oper full; } - server { everyone none; self full; oper full; } - swhois { everyone full; self full; oper full; } + bot { everyone none; self full; oper full; } + channels { everyone none; self full; oper full; } + oper { everyone none; self full; oper full; } + reputation { everyone full; self full; oper full; } + server { everyone none; self full; oper full; } + swhois { everyone full; self full; oper full; } } } -set known-users { - auto-join "#superbowl"; -} - -set unknown-users { - auto-join "#blackhole"; - static-quit "EMO-QUIT"; - static-part "EMO-PART"; -} - hideserver { disable-map yes; disable-links yes; @@ -265,3 +249,23 @@ security-group known-users { identified yes; reputation-score 10000; } + +security-group tor { + ip 127.0.0.2; +} + +set known-users { + auto-join "#superbowl"; +} + +set unknown-users { + auto-join "#blackhole"; + static-quit "EMO-QUIT"; + static-part "EMO-PART"; +} + +set tor { + auto-join "#tor"; + static-quit "EMO-QUIT"; + static-part "EMO-PART"; +}