Difference between revisions of "Connect"

From twofo wiki
Jump to navigation Jump to search
Line 49: Line 49:


If you use another Direct Connect client such as LinuxDC or DC++ under WINE, you will need to install Stunnel. You can get Stunnel from http://www.stunnel.org/ or your package manager/repositories depending on your distro. Once installed make the following changes to /etc/stunnel/stunnel.conf.
If you use another Direct Connect client such as LinuxDC or DC++ under WINE, you will need to install Stunnel. You can get Stunnel from http://www.stunnel.org/ or your package manager/repositories depending on your distro. Once installed make the following changes to /etc/stunnel/stunnel.conf.
A preconfigured copy of stunnel.conf is available at http://www.twofo.co.uk/resources/stunnel.conf
A preconfigured copy of stunnel.conf is available at http://www.twofo.co.uk/resources/stunnel.conf



Revision as of 13:21, 2 April 2008

Getting Started

twofo is a Direct Connect hub. This means that you will need a suitable Direct Connect client for you computer in order to connect. These clients are available for many operating systems, including Windows, Linux and MacOS.

Available Clients:

Windows - DC++ - A basic guide to using DC++ can be found at http://www.b.ali.btinternet.co.uk/DCPlusPlus/gettingStarted.html

Linux - Valknut , LinuxDC++

MacOS - MacDC++ , Valknut, Shakespeer - Scroll down for instructions on how to use stunnel with these clients.

Connecting from Off Campus

Connect to hub.twofo.co.uk:4144 (Please do not use stunnel, it confuses other users into thinking you are on campus). This connects on the standard port which typically is not blocked by ISPs. We ask that people off campus set up their client so that the client speed is not set to LAN(T1) or LAN(T3). Other speeds, such as 28.8k, Cable, DSL, 0.1, 0.2 etc are OK. This is to make it easier for other users to distinguish off campus users from on campus when on the hub.

You WILL need port forwarding set up to use DC++ from off campus and behind a router. Please see this guide

Connecting from the Campus Residential Network

Windows Users

The traffic shaper on resnet prevents a normal connection from DC++, so in order to connect you will have to use a program called stunnel

The easiest way to do this is to follow the steps below:

  1. Download the rar file from http://astropointier.googlepages.com/stunnel.rar (or http://astropointier.googlepages.com/stunnel.zip for if you don't have winrar installed)
  2. Extract ALL the files into a folder.
  3. Then run the stunnel.exe.
  4. Once the icon is in the tray, just set DC++ to connect to localhost:8000 (File -> Quick Connect) and it takes you straight onto twofo.

Once connected you can type /fav in the main chat window to add twofo to your favourite hubs.


If you wish, you can of course download stunnel yourself from http://www.stunnel.org/ , but you would have to configure it yourself to connect to the SSL server hub.twofo.co.uk:4146


YOU WILL HAVE TO BE IN ACTIVE MODE (on the latest versions of DC++, this is called "Direct Connection") AND HAVE THE CORRECT IP IN DC++ IN ORDER TO SEARCH AND DOWNLOAD. You can find your IP at http://checkip.dyndns.org/

There is an extensive guide to any other problems you may have downloading here

It is a very good idea to consider setting up your firewall to block Off Campus connections to DC++ when on campus. Guides to doing this can be found here


Linux Users

If you use Valknut you can simply add a Bookmark to your Hub List for twofo - Address: hub.twofo.co.uk:4146 and then under 'Profile' make sure you've ticked the 'Secure Socket Layer' (SSL) box. (Same as the guide for Valknut for mac users below)

If you use another Direct Connect client such as LinuxDC or DC++ under WINE, you will need to install Stunnel. You can get Stunnel from http://www.stunnel.org/ or your package manager/repositories depending on your distro. Once installed make the following changes to /etc/stunnel/stunnel.conf.

A preconfigured copy of stunnel.conf is available at http://www.twofo.co.uk/resources/stunnel.conf

Under 'Service-level configuration' add the following lines:


[twofo]

connect = hub.twofo.co.uk:4146

accept = 127.0.0.1:8000


Now you need to modify the existing lines:

"cert = /etc/stunnel/mail.pem" should be changed to ";cert = /etc/stunnel/mail.pem"

";client = yes" should be changed to "client = yes"


(You can pick any high numbered port you like instead of 8000)

Next open a root terminal and type the command:


stunnel4


Or you could type the following command (should ideally work without modifying the configuration in the stunnel.conf file)


stunnel -c -d 8000 -r hub.twofo.co.uk:4146


Finally, open your Direct Connect client and connect to 'localhost:8000'

Mac Users

The easiest way is to download Valknut for Mac OS X, http://snaggledworks.com/software/valknut/ choose the latest version and either the 10.3 (Panther) or 10.4 Tiger DMG. Then customise your settings, making sure you share at least 5GB of data. Add a bookmark with a profile and tick the "Secure Socket Layer" option: this will save you from installing stunnel (a nightmare), set the host as: hub.twofo.co.uk:4146by doing the following:

1. Open the hub list (Action menu -> Hub list), if it's not already open

2. Click the "Bookmarks" tab

3. Right click anywhere in the bookmarks list and choose "Add" to bring up the add bookmark dialog

4. Put "hub.twofo.co.uk:4146" in the "Host" box

5. Tick the box next to "Profile", so that the Profile button gets enabled

6. Press the Profile button. The dialog gets bigger, and a "Secure Socket Layer" checkbox appears

7. Tick the "Secure Socket Layer" box.

This works for sure on Panther Mac OS 10.3.9 and Intel 10.4

DrJS


The alternative to get this working might just work for Intel Mac,

Programs you will need installed to your Applications Folder:

Darwine 0.9.10 UnRARx 2.0 ShakesPeer 0.9.2 the stunnel from the forums (http://astropointier.googlepages.com/stunnel.rar)


Check Darwine is setup correctly by running notepad.exe in the Sample Applications folder within Darwine. If it is, notepad will open up...

use UnRARx to unpack the stunnel program into a new folder in Applications, and execute the stunnel.exe file. The only way you will know if this has loaded is by the Darwine status window... Once you see it there you're all set to connect to the hub!

Next set ShakesPeer to share some files, wait for them to hash, then connect to 127.0.0.1:8000

and Voila its all set!

ToFFiE