This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# rules.before | |
# | |
# Rules that should be run before the ufw command line added rules. Custom | |
# rules should be added to one of these chains: | |
# ufw-before-input | |
# ufw-before-output | |
# ufw-before-forward | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/default/ufw | |
# | |
# Set to yes to apply rules to support IPv6 (no means only IPv6 on loopback | |
# accepted). You will need to 'disable' and then 'enable' the firewall for | |
# the changes to take affect. | |
IPV6=yes | |
# Set the default input policy to ACCEPT, ACCEPT_NO_TRACK, DROP, or REJECT. | |
# ACCEPT enables connection tracking for NEW inbound packets on the INPUT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Log notice stdout | |
SocksPort 0 | |
ORPort 7001 | |
ExitPolicy reject *:* | |
DataDirectory ./bridge-data | |
BridgeRelay 1 | |
PublishServerDescriptor 0 | |
ServerTransportListenAddr vpn-ponydns 127.0.0.1:4703 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- 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"], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
step 1: | |
get the latest stable python virtualenv and cryptographically verify it. | |
save it to: ~/Persistent/virtualenv-x.xx.x/ | |
step 2: | |
create a virtual env to run ansible: | |
Persistent/virtualenv-x.xx.x/virtualenv.py --system-site-packages Persistent/virtenv-ansible | |
New python executable in Persistent/virtenv-ansible/bin/python | |
Installing setuptools, pip...done. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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 |