package management over tor
play

Package management over Tor PkgsrcCon 2017 alnsn@NetBSD.org What - PowerPoint PPT Presentation

Package management over Tor PkgsrcCon 2017 alnsn@NetBSD.org What is Tor? Introducing http://pkgsrcbadj4vrrrr.onion Hidden pkgsrc mirror: NetBSD packages for amd64, arm, earm, earmv6hf, earmv7hf, earmv7hfeb, sparc64, mipsel distfiles No


  1. Package management over Tor PkgsrcCon 2017 alnsn@NetBSD.org

  2. What is Tor?

  3. Introducing http://pkgsrcbadj4vrrrr.onion Hidden pkgsrc mirror: NetBSD packages for amd64, arm, earm, earmv6hf, earmv7hf, earmv7hfeb, sparc64, mipsel distfiles No space on the server for i386, powerpc and others Not yet decided whether to keep sparc64 or mirror anoncvs

  4. Prerequisites net/tor - gateway to the hidden web www/privoxy - access to socks proxy over http proxy net/socat - only if you need ssh or cvs pkgtools/pkgin - optional but highly recommended

  5. Environment export http_proxy=http://127.0.0.1:8118 export PKG_PATH=http://pkgsrcbadj4vrrrr.onion/ pub/pkgsrc/NetBSD/amd64/7.1/All sudo doesn’t seem to export them, bear this in mind when troubleshooting

  6. /etc/tor/torrc SOCKSPort 9050 SOCKSPort 9150 OnionTrafficOnly 9053 # dns over tor, install net/dnsmasq

  7. /etc/privoxy/config forward-socks5t / 127.0.0.1:9050 . # onion traffic only: #forward-socks5t / 127.0.0.1:9150 .

  8. /etc/pkgin/repositories.conf http://pkgsrcbadj4vrrrr.onion/pub/pkgsrc/NetBSD/ amd64/7.1/All

  9. /etc/ssh/ssh_config (for cvs) Host pkgsrcbadj4vrrrr.onion ProxyCommand /usr/pkg/bin/socat STDIO SOCKS4A:127.0.0.1:%h:%p,socksport=9050

  10. Ready to vrrrr! /etc/rc.d/tor start /etc/rc.d/privoxy start pkgin install …. pkg_add http://pkgsrcbadj4vrrrr.onion/pub/ pkgsrc/NetBSD/amd64/7.1/All/ sudo-1.8.20p1.tgz

  11. Fetching sources Minimize exposure to clear net when building packages Add MASTER_SITE_OVERRIDE=http:// pkgsrcbadj4vrrrr.onion/pub/pkgsrc/distfiles/ to mk.conf Default fetch command works over http proxy curl --socks4a to go straight to socks proxy

  12. Fetching sources via socks FETCH_USING=custom FETCH_CMD=curl FETCH_BEFORE_ARGS=--socks4a 127.0.0.1:9050 ... FETCH_AFTER_ARGS=-O FETCH_RESUME_ARGS=-C - FETCH_OUTPUT_ARGS=-o

  13. Questions?

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend