diff options
-rw-r--r-- | packages/torouter-prep/configs/sources.list | 5 | ||||
-rw-r--r-- | packages/torouter-prep/configs/torrc | 9 | ||||
-rw-r--r-- | packages/torouter-prep/src/torouter_config.sh | 6 |
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 |