? Editing: Post:21.body Save Delete Cancel
Content changed Sign & Publish new content

KanjaZero

My nerdy blog.

Follow in NewsfeedFollowing

Latest comments:

Add new post

Title

21 hours ago · 2 min read ·
3 comments
Body
Read more

Not found

Installing ZeroNet on OpenBSD

on Jun 22, 2017 · 1 min read

Let's just cover real quick how to install ZeroNet on OpenBSD and start it then how to get it to go through tor. All done in 3 minutes!


## Let's install the pre-required packages
pkg_add -v python-2.7 py-gevent py-msgpack
## Let's fetch ZeroNet from github
ftp https://github.com/HelloZeroNet/ZeroNet/archive/master.tar.gz
## open the ZeroNet tarball
tar zvfz master.tar.gz
## get into the directory and start it!
cd ./ZeroNet-master/
python2.7 zeronet.py --ui_ip '192.168.X.11'

The --ui_ip is to allow this to be reachable from the vLAN interface (from another computer) since it's running on a headless server.
To run it with tor, it's also pretty straight forward:

## install and configure tor
pkg_add -v tor
vi /etc/tor/torrc
## uncomment the lines below in /etc/tor/torrc
ControlPort 9051
CookieAuthentication 1
## start tor
rcctl start tor
## allow the group from the user that will run zeronet to rw the control_auth_cookie
## quick and ugly way to do this for testing purpose is to just:
chgrp usergroup /var/tor/ && chmod 750 /var/tor/
chgrp usergroup /var/tor/control_auth_cookie && chmod 660 /var/tor/control_auth_cookie
## then we're good to start zeronet from the folder when you've untar it
cd /wherever/Zeronet-master
python2.7 zeronet.py --tor_controller 127.0.0.1:9051 --tor_proxy 127.0.0.1:9050 --ui_ip '192.168.X.11'

PS: I should provide a less naughty way to adjust the auth_cookie permission...in the meantime this still works

#zeronet #tor #openbsd #howto

3 Comments:

user_name1 day ago
Reply
Body
grimsdottiron Jun 22, 2017
Reply

kanja0: Thank you for your comment... glad you like it. I will publish another quick article on how to configure pf to push the ZeroNet + Tor through a VPN with dnscrypt_proxy (not much left to leak...) #parano #chasingtheperfectsetup #openforcomments

Sounds good ! I've no experience with pf(4) so far so that's a topic I would enjoy to read about ! Now you remind me I should Invest some time in setting up a kill switch or some strict outbound firewall rules for my newly setup VPN, not that it goes down or anything so far but it would be better. #paranotoo :)

kanja0on Jun 22, 2017
Reply

grimsdottir: Super interesting, specially about the tor part which seems surprisingly easy actually. For what it's worth, FreeBSD has a binary package of ZeroNet available via pkg(8)

Thank you for your comment... glad you like it. I will publish another quick article on how to configure pf to push the ZeroNet + Tor through a VPN with dnscrypt_proxy (not much left to leak...) #parano #chasingtheperfectsetup #openforcomments

grimsdottiron Jun 22, 2017
Reply

Super interesting, specially about the tor part which seems surprisingly easy actually. For what it's worth, FreeBSD has a binary package of ZeroNet available via pkg(8)

This page is a snapshot of ZeroNet. Start your own ZeroNet for complete experience. Learn More