4
mirror of git://git.acid.vegas/tools.git synced 2024-12-22 14:26:38 +00:00
tools/deploy/tor_ircd_helper
2024-01-25 23:06:20 -05:00

15 lines
584 B
Bash
Executable File

#!/bin/sh
apt-get install tor
{
echo "HiddenServiceDir /var/lib/tor/ircd"
echo "HiddenServicePort 6667 unix:/etc/tor/unrealircd/tor_ircd.socket"
echo "HiddenServicePort 6697 unix:/etc/tor/unrealircd/tor_tls_ircd.socket"
echo "#MapAddress irc.supernets.org changeme.onion"
} > /etc/tor/torrc
mkdir /etc/tor/unrealircd
chown unrealircd:debian-tor /etc/tor/unrealircd
chmod 750 /etc/tor/unrealircd
systemctl restart tor.service && systemctl enable tor.service
cat /var/lib/tor/ircd/hostname
echo "MapAddress irc1.example.net xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.onion" >> /etc/tor/torrc