aboutsummaryrefslogtreecommitdiffstats
path: root/packages/torouter-prep
diff options
context:
space:
mode:
authorArturo FilastoĢ€ <hellais@torproject.org>2011-08-19 17:27:47 +0200
committerArturo FilastoĢ€ <hellais@torproject.org>2011-08-19 17:27:47 +0200
commit73b830c7244046c4d1a9b32004a6ec18afd99d92 (patch)
tree0043c68350d876cca0362a756d13d44752b2f7f5 /packages/torouter-prep
parent0fb54f161f5344f5a7e764801e202337b6d0e451 (diff)
parent5e40918ade723becb9b3e9e388f05442fd62a4e5 (diff)
downloadtorouter-73b830c7244046c4d1a9b32004a6ec18afd99d92.tar.gz
torouter-73b830c7244046c4d1a9b32004a6ec18afd99d92.zip
Merge branch 'master' of ssh://git-rw.torproject.org/torouter
Diffstat (limited to 'packages/torouter-prep')
-rw-r--r--packages/torouter-prep/configs/sources.list5
-rw-r--r--packages/torouter-prep/configs/torrc9
-rw-r--r--packages/torouter-prep/src/torouter_config.sh6
3 files changed, 13 insertions, 7 deletions
diff --git a/packages/torouter-prep/configs/sources.list b/packages/torouter-prep/configs/sources.list
index 38ba8fe..42bc62b 100644
--- a/packages/torouter-prep/configs/sources.list
+++ b/packages/torouter-prep/configs/sources.list
@@ -21,8 +21,9 @@ deb http://deb.torproject.org/torproject.org experimental-squeeze main
deb-src http://deb.torproject.org/torproject.org experimental-squeeze main
# Tor 0.2.3.x package repo
-deb http://deb.torproject.org/torproject.org tor-0.2.3.x-squeeze main
-deb-src http://deb.torproject.org/torproject.org tor-0.2.3.x-squeeze main
+deb http://deb.torproject.org/torproject.org tor-0.2.3.x-stable main
+deb-src http://deb.torproject.org/torproject.org tor-0.2.3.x-stable main
+
# Torouter project repo
deb http://torrouter.torproject.org/torrouter torrouter main
diff --git a/packages/torouter-prep/configs/torrc b/packages/torouter-prep/configs/torrc
index 7a12e73..29a9526 100644
--- a/packages/torouter-prep/configs/torrc
+++ b/packages/torouter-prep/configs/torrc
@@ -80,7 +80,7 @@ DataDirectory /var/lib/tor
## See https://www.torproject.org/docs/tor-doc-relay for details.
### Required: what port to advertise for incoming Tor connections.
-ORPort 9001
+ORPort auto
## If you want to listen on a port other than the one advertised
## in ORPort (e.g. to advertise 443 but bind to 9090), uncomment the
## line below too. You'll need to do ipchains or other port forwarding
@@ -96,8 +96,8 @@ Nickname Torouter
## Define these to limit how much relayed traffic you will allow. Your
## own traffic is still unthrottled. Note that RelayBandwidthRate must
## be at least 20 KBytes.
-#RelayBandwidthRate 100 KBytes # Throttle traffic to 100KB/s (800Kbps)
-#RelayBandwidthBurst 200 KBytes # But allow bursts up to 200KB/s (1600Kbps)
+RelayBandwidthRate 50KB KBytes
+RelayBandwidthBurst 75KB KBytes
## Contact info to be published in the directory, so we can contact you
## if your relay is misconfigured or something else goes wrong. Google
@@ -151,9 +151,8 @@ Nickname Torouter
## won't be able to block all the bridges. Also, websites won't treat you
## differently because they won't know you're running Tor. If you can
# be a real relay, please do; but if not, be a bridge!
+BridgeRelay 1
ExitPolicy reject *:*
-ExitPolicy accept *:*
-
AvoidDiskWrites 1
diff --git a/packages/torouter-prep/src/torouter_config.sh b/packages/torouter-prep/src/torouter_config.sh
index e27c81e..12f7ab3 100644
--- a/packages/torouter-prep/src/torouter_config.sh
+++ b/packages/torouter-prep/src/torouter_config.sh
@@ -52,6 +52,9 @@ apt-get -y -t squeeze-backports install openntpd
# Install Tor and deps:
apt-get -y install tor tor-geoipdb
+# To build a 0.2.3.x Tor:
+# apt-get source tor=0.2.3.1-alpha-1~~squeeze+1
+# Debuild here...
# To build with natpmp support
apt-get -y -t experimental install libnatpmp-dev
@@ -95,6 +98,9 @@ cp $config_dir/dnsmasq.conf /etc/dnsmasq.conf
cp $config_dir/ntp.conf /etc/ntp.conf
cp $config_dir/openntpd-default /etc/default/openntpd
+# Configure ssh
+cp $config_dir/sshd_config /etc/ssh/sshd_config
+
# XXX We should configure ufw here
# XXX We should configure denyhosts