Skip to content

Instantly share code, notes, and snippets.

View david415's full-sized avatar
💭
♥️Ⓐλ😼

David Stainton david415

💭
♥️Ⓐλ😼
View GitHub Profile
@david415
david415 / gist:9172399
Created February 23, 2014 14:53
dns-vpn-bridgeclient-torrc
Log notice stdout
SocksPort 8040
DataDirectory ./client-data
UseBridges 1
Bridge vpn-ponydns 127.0.0.1:4703 tundevice=tun0 tun_local_ip=10.9.6.1 tun_remote_ip=10.9.6.2 tun_netmask=255.255.255.0 dns_name=my.cute.pony.bridge.dns_root
ClientTransportPlugin vpn-ponydns exec /usr/local/bin/obfsproxy --log-min-severity=info --log-file=/var/log/tor/dawuud-obfsproxy/obfsproxy-client.log --role=vpnclient managed
@david415
david415 / gist:9172685
Created February 23, 2014 15:16
dns-vpn-bridgeserver-torrc
Log notice stdout
SocksPort 0
ORPort 7001
ExitPolicy reject *:*
DataDirectory ./bridge-data
BridgeRelay 1
PublishServerDescriptor 0
ServerTransportListenAddr vpn-ponydns 127.0.0.1:4703
@david415
david415 / gist:9991734
Last active August 29, 2015 13:58
ansible multi tor
---
- hosts: tor-relays
roles:
- { role: david415.ansible-tor,
tor_distribution_release: "wheezy",
tor_ExitPolicy: "reject *:*",
tor_instance_parent_dir: "/etc/tor/instances",
tor_instances: [ {
name: "relay1",
tor_ORPort: ["192.168.1.1:9002"],
@david415
david415 / gist:26a4ed59078d2e27376f
Last active August 29, 2015 14:00
parser for SOCKS5ClientEndpoint
#!/usr/bin/env python
from zope.interface import implementer
from twisted.plugin import IPlugin
from twisted.internet.protocol import Protocol, Factory
from twisted.internet import reactor
from twisted.internet.interfaces import IStreamClientEndpointStringParser
from twisted.internet.endpoints import clientFromString
from twisted.internet.endpoints import TCP4ClientEndpoint
#!/usr/bin/env python
from zope.interface import implements
from twisted.plugin import IPlugin
from twisted.internet.protocol import Protocol, Factory
from twisted.internet import reactor
from twisted.internet.interfaces import IStreamClientEndpointStringParser
from twisted.internet.endpoints import clientFromString
from twisted.internet.endpoints import TCP4ClientEndpoint
@david415
david415 / gist:9c6bcb1ab310788fe0b4
Created May 1, 2014 23:11
install endpoint parser in virtualenv
cd projects/virtualenv-1.11.1/
./virtualenv.py ~/virtenv-endpoints-test
. ~/virtenv-endpoints-test/bin/activate
usewithtor pip install twisted
cd ~/projects
git clone https://github.com/david415/txsocksx.git
cd txsocksx
git checkout endpoint_parsers
usewithtor python setup.py install
cd examples # CWD is now /home/human/projects/txsocksx/examples
@david415
david415 / gist:56a397d116a96248e093
Created July 6, 2014 09:06
generic tahoe client config
[node]
nickname = client
web.reveal_storage_furls = true
web.port = tcp:3456:interface=127.0.0.1
web.static = public_html
tub.location = client.fakelocation:1
[client]
introducer.furl = pb://MyTubID@tor:myHiddenService.onion:HiddenPort/introducer
shares.needed = 3
shares.happy = 5
@david415
david415 / gist:58cd168a8600bf42f338
Created August 4, 2014 20:14
Basic Tails Backups
Basic Backup Strategy for Tails users using Tahoe-LAFS
requirements:
- Tails 1.1 or higher
- connecting information to a Tahoe-LAFS grid:
@david415
david415 / gist:0d799847cf4cde2ce7bb
Created August 4, 2014 20:20
Tahoe-LAFS Cryptoparty workshop!
Crypto party Tahoe-LAFS Onion Grid Workshop
or "How you and your friends can setup an onion
grid for file sharing and file storage."
Note: This guide is written with the assumption that the user's local workstation
runs Tails with a persistent encrypted volume AND
the remote Tahoe-LAFS storage servers run Debian Wheezy Linux.
@david415
david415 / gist:c3e0079948fe59abe054
Created August 7, 2014 23:52
tahoe storage for onion grid configuration
[node]
nickname = noname
web.reveal_storage_furls = true
web.static = public_html
web.port = tcp:3456:interface=127.0.0.1
tub.port = tcp:37020:interface=127.0.0.1
# XXX
tub.location = myCuteKittyCat.onion:43000