changeset 623:cf5e211d7711 draft

added tor2dns to resdb in contrib
author d3v11 <d3v11@d3v11.ano>
date Mon, 19 Sep 2011 20:16:17 -0500
parents 2e337ecdfacd
children 6a354b106560
files contrib/tor2dns/tor2dns/README contrib/tor2dns/tor2dns/run contrib/tor2dns/tor2dns/serve contrib/tor2dns/tor2dns/wimi.com
diffstat 4 files changed, 57 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/contrib/tor2dns/tor2dns/README	Mon Sep 19 20:16:17 2011 -0500
@@ -0,0 +1,34 @@
+DESCRIPTION:
+	tor2dns is a quick solution to non-free
+	and centralized dns.
+
+DEPENDS:
+	tor, daemontools, python
+
+INSTALL:
+
+mkdir /var/lib/tor/tor2dns
+echo 'HiddenServiceDir /var/lib/tor/tor2dns' >> /etc/tor/torrc
+echo 'HiddenServicePort 8053 127.0.0.1:8053' >> /etc/tor/torrc
+
+#See note below, you may need to use the commented line.
+#chown debian-tor /var/lib/tor/tor2dns
+
+/etc/init.d/tor restart
+mkdir /services/tor2dns
+tar -xvf tor2dns.tar.gz --directory='/services'
+cd /
+ln -s /services/tor2dns /service
+echo 'new dns link >>> http://'`cat /var/lib/tor/tor2dns/hostname`
+
+POST INSTALL:
+	You will want to make sure port fowarding is turned on, on
+	port 8053 of your router, you may also need to adjust your
+	firewall. you can test for success by opening your browser
+	with tor enabled and going to the link given @ the end of
+	your installation. :-) enjoy.
+
+NOTE:
+	On some systems /var/lib/tor/tor2dns will need a special owner
+	like "debian-tor". If tor2dns fails for you please troubleshoot
+	your logs, port fowarding, etc.
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/contrib/tor2dns/tor2dns/run	Mon Sep 19 20:16:17 2011 -0500
@@ -0,0 +1,13 @@
+#!/bin/bash
+GETIP() {
+        while true; do
+        wget `cat ../wimi.com` -O index.html
+        sleep 5m
+        done
+        }
+
+[ -e SHARE ] || mkdir SHARE
+cd SHARE
+../serve &
+GETIP
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/contrib/tor2dns/tor2dns/serve	Mon Sep 19 20:16:17 2011 -0500
@@ -0,0 +1,9 @@
+#!/usr/bin/python
+import SimpleHTTPServer
+import SocketServer
+
+PORT = 8053
+
+Handler = SimpleHTTPServer.SimpleHTTPRequestHandler
+httpd = SocketServer.TCPServer(("", PORT), Handler)
+httpd.serve_forever()
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/contrib/tor2dns/tor2dns/wimi.com	Mon Sep 19 20:16:17 2011 -0500
@@ -0,0 +1,1 @@
+http://automation.whatismyip.com/n09230945.asp