{{tag>privacy internet chatrooms guides}} ====== How to setup a weechat relay with Tor ====== Using [[Tor]] as a means for a [[Weechat]] relay is a nice way to have a private connection to your home [[PC]]'s [[IRC]] session without having to port forward. ===== Weechat ===== In a weechat session: /relay add weechat 9000 /set relay.network.bind_address "::" /set relay.network.allowed_ips "127.0.0.1" /set relay.network.allow_empty_password on /save ===== Tor ===== Add these lines to your ''torrc'', usually in ''/etc/tor/torrc'' or ''/usr/local/etc/tor/torrc'': HiddenServiceDir /var/lib/tor/weechat/ HiddenServicePort 9000 127.0.0.1:9000 In a shell, as root: mkdir /var/lib/tor/weechat chown debian-tor:debian-tor /var/lib/tor/weechat # Change debian-tor to whoever is the owner of /var/lib/tor chmod 700 /var/lib/tor/weechat Then restart Tor and you're finished.