Main Menu

dc++

Started by Dr Sadako, June 17, 2004, 06:11:25 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Dr Sadako

I know that the ftp drained a lot of bandwidth from crosswired but what if we setup a DC++hub? It is not very bandwidth demanding and we could keep it within the inner circle.

?
-=[dMw]=-Dr "Doc" Sadako

"Gravitation is not responsible for people falling in love." Albert Einstein

OldBloke

Don't see why not. I'll look into it.
"War without end. Well, what was history if not that? And how would having the stars change anything?" - James S. A. Corey

Dr Sadako

QuoteOriginally posted by OldBloke@Jun 17 2004, 06:31 PM
Don't see why not. I'll look into it.
Any news?


http://www.dcplusplus.com/
-=[dMw]=-Dr "Doc" Sadako

"Gravitation is not responsible for people falling in love." Albert Einstein

Dr Sadako

Had a chat with a friend of mine and he suggested the following program: Yoshi Hub.

http://www.dcdev.net/yhub/

He runs it on his own machine and when I was on it and dowloaded at 900 kB/s the hub itself used 0 (zero) bandwidth!!

Here is a swedish forum page on how to set it up. I can translate if you like.
http://forum.directconnect.se/showthread.php?t=1315
-=[dMw]=-Dr "Doc" Sadako

"Gravitation is not responsible for people falling in love." Albert Einstein

OldBloke

Sorry Sadako. I've only had a chance to have a quick look so far and Yoshi was one of the hub solutions I looked at.

A translation would be a good idea. Thanks.  :)
"War without end. Well, what was history if not that? And how would having the stars change anything?" - James S. A. Corey

Dr Sadako

Getting started with YHub

Index
1. Introduction
2. Basic settings
3. Configuration
3.1 Configuring of a regular public hub
3.2 Configuring of a regular public hub with ISP/IP-kontroll
3.3 Configuring of a regular private hub
4. Concluding remarks

1. Introduction
So you want to run a hub? Then you have come right. This guide will discuss the setup you will need to run a serious hub. The most advanced settings are left out as you don't need them to get started and it is a basic guide.

The first thing you need to do is to download the latest version of Yhub from http://www.dcdev.net/yhub/ and install it.

2. Basic Settings
Before you start the program we are going to have a look at the installation folder. There are three folders within it: docs, saves and texts. 'Saves' contains all info about the hub and all changes to the settings are saved in this folder. 'Docs' includes some shortcuts to info/help that is worth looking at.
In 'texts' there are allready textgiles that you can call/access from the mainchat window of the hub. The command is + e.g. "+rules" will access the file rules.txt and print it in mainchat. You can create your own textfiles and put them in the 'texts' folder. The 'motd.txt' file is the welcome message once you connect to the hub, if you chose to use this setting.



Before the real guide begins you need an image of what each of the most important functions do and that is explained below. To start Yhub will probably give you an even better overview.

Control:
Start/Stop: Starts or shutdowns the hub.
Auto start hub: If selected the hub will start when the program starts.
Lock hub: Locks the hub. No one can log on after this.
Use threads: This fucntion determines how the hub will handle logins, one at the time or many simultaneously. The latter will require more of the hub computer and if the it is allready at a high load don't use the simultaneous feature.
Reload textfiles: If you add a text file(s) that you want to call in mainchat you tick this and the hub will read it/them.
Start/stop auto update: Starts or stops the statistics recorded of the hub.

Hub settings:
Max users: Sets the max number of users allowed in to the hub at the same time. Pull the slider. :)
TCP port: The standard port tobe used by the users connecting to the hub. 411 is the standard setting and if that is to be used nothing needs to be entered after the adress when connecting.
QuoteExample

If 411 is used:
deadmen.co.uk

If something else than 411 is used e.g.
deadmen.co.uk:1411
2nd port: Yhub allows you to have an extra port as some ISPs don't allow all ports. Works the same way as 'TCP port' above.
Auto start hub: If selected the hub will start when the program starts. (same as above)
Hub name: Here you enter the name of the hub.
Welcome: A short welcome message that is sent prior to the motd.txt.
Default hub limits: Various setting possibilities. Here you select minimum size of share, allowed number of upload slots etc etc.
Redirect options: Here you can enter various other hub adresses if the user that connect doesn't reach the set rules in 'default hub limits'. This is nothing you need to touch unless you are involved in a larger network of hubs.
Show MOTD: MOTD stand for 'message of the day'. If you need to give the users more information at login about rules etc, you should do it here. The message is entered in the motd.txt in the 'texts' folder.
Use public registration: Here you decide if the hub is to be registered in the public lists of hubs or not. If you would like to register there are more settings in the 'register' tab.
Allow registered users only: Decides if the hub is public or private. If ticked only registered users are allowed in.
Allow passive mode: Decides if users are allowed to join the hub in passive mode i.e. users without a static IP. Users in passive mode will strain the hub computer more.
Use ISP/IP: If you want to control that certain ISP/IP-series are allowed to enter tick this box. More settings will unfold and you get lots of advanced settings.

Accounts:
Allow registered users only: Decides if the hub is public or private. If ticked only registered users are allowed in. (same as above)
Add/Save: Here ypu add the information when adding a new user. You select a profile, user name and a password. You can add when the account expires and lock it to certain IP series.

Profiles:
Here you add the different profiles you want use when adding users. Some of the settings are hidden in Optional Commands. You select what permissions each profile have by ticking the boxes.

ISP/IP:
Allow registered users only: Decides if the hub is public or private. If ticked only registered users are allowed in. (same as above)
Use ISP/IP: If you want to control that certain ISP/IP-series are allowed to enter tick this box. More settings will unfold and you get lots of advanced settings. (same as above)
Allow connections from not in list: Allows anyone to log on to the hub even if they don't fall into the specified IP-ranges set in the list. They will follow the settings found in 'hub settings'
Case sensitive prefix comparision: Makes the username case sensitive.
Add ISP: Here you add if you want ot have specific settings for certain ISPs. If you want them to have the same settings as everyone else untick all boxes except 'allow passive mode', which you need to decide here as well. Then you hit add/save to add the ISP.
Add IP: Here you add the IP-series to be connected to each ISP. Yhub supports 'wildcards' i.e. 217.215.* will add all with that IP series beginning.

Register:
Use public registration: Here you decide if the hub is to be registered in the public lists of hubs or not. (same as above)
Hub information: Here you enter the hub adress and a short description.
Register host information: If you select one of the hub lists in the left menu you will acquire information about name, adress etc. In the same way you can add other lists if you want the hub to be seen by adding info about them.

Will continue in next post.
-=[dMw]=-Dr "Doc" Sadako

"Gravitation is not responsible for people falling in love." Albert Einstein

Dr Sadako

3. Configuration

You have these three choices:
  • Public hub
  • Public hub with ISP/IP-control
  • Private hub
3.1 Configuration of a regular public hub

Control:
Here is not really anything the you need to use but 'auto start hub' seems reasonable to use. If not you will need to manually start the hub everytime you start the hub computer. Adding a shortcut to yhub.exe in autostart is something you should do. 'Use Threads' is a function that works for some but not for others. Tick it and see if it works (if you want to use it).

Hub settings:
Here also is a lot that you can select yourself. The max number of users depends on the hub computer but also the internet connection speed to the computer.
With 0.5 Mbit you should be able to hold 200 users (probably more) but you should try it out depending on what suits you.
You select all the rules in 'Default hub limits' and it is down to you what you like.
I strongly suggest the use of prefixes in the user names. A hub looks more serious when all users have prefixes in their names (e.g. [1Mbit]Sadako, [BT]OldBloke, etc). It also helps the user to what to expect when uploading/downloading to/from a user. I agree with this and is very useful. /Sadako
'Redirect Options' are only interesting if you are a part of a larger network of multiple hubs.
In 'Miscellaneous' I suggest that you tick all except 'Allow registered users only' and 'Use ISP/IP'.
'Allow passive mode' is entirely up to you if you want to use it or not, but you should allow it as many don't have a static ip.

Profiles/Accounts:
You have now entered the settings needed. Fix the profiles you want to use under'profiles'. Then remove the standard users supplied when installing (Yoshiâ,,¢ och [YHub]Yoshi) and add the user you want to be registered
You can add new members later on by using different commands within the hub. It doesn't matter if you add them in different ways.



Register:
Now all you have to do is to get the hub adress on a public hub list so people know that you exist. This was allready done in 'hub settings' but it is worth looking at it here as well.
In the menu on the left you see the hublists you are able to select and all are active by default. If you decide to deselect one list you mark it in the list and then select 'Use this public registration server'.



3.1 Configuration of a regular public hub with ISP/IP-kontroll

This is almost the same as above but you control which ISP or IPs that are allowed to enter. I will only adress the new settings required.

The difference is that you need to tick 'use ISP/IP'. When this is done the tedious part comes. You need to select all ISP that are allowed in and you need to get all of their IP-series. It is very time consuming and if you know anyone who can give you the IP-series you are blessed. In 'add ISP' you add the name to be shown in the menu and the prefix the users need to use when connecting from a certain ISP. You can specify certain rules for each ISP (which is really good for number of upload slots allowed /Sadako). If you want them to follow the general rules for the hub untick all boxes and decide if you want to allow passive mode or not.

To add a IP-series to an ISP use 'add IP' that selects the ISP and the IP-series to be allowed. Remember that Yhub uses ' wildcards' which makes life easier.



3.3 Configuration of a private hub

Many parts of this configuration is repetition of parts described in the public hub settings above.


Control:
Here is not really anything the you need to use but 'auto start hub' seems reasonable to use. If not you will need to manually start the hub everytime you start the hub computer. Adding a shortcut to yhub.exe in autostart is something you should do. 'Use Threads' is a function that works for some but not for others. Tick it and see if it works (if you want to use it).


Hub settings:
Here also is a lot that you can select yourself. The max number of users depends on the hub computer but also the internet connection speed to the computer.
But now you will run a private hub and that means that the only one to login are registered users and by that the max users doens't matter as much as before.
What rules you decide to have in'default hub limits' is entirely up to you. Do you trust your members and let them break the rules from time to time you let all be unticked in this section. If you don't trust them you can limit their freedom a bit here, but you can also restrict them by the profile you register them under.
In 'Miscellaneous' I suggest you tick all but 'Use public registratio' and 'Use ISP/IP'.

'Allow passive mode' is entirely up to you if you want to use it or not, but you should allow it as many don't have a static ip.

Profiles/Accounts:
You have now entered the settings needed. Fix the profiles you want to use under'profiles'. Then remove the standard users supplied when installing (Yoshiâ,,¢ och [YHub]Yoshi) and add the user you want to be registered
You can add new members later on by using different commands within the hub.

As it is a private hub you don't have (or shouldn't) add it to a public hub list. Go back to the first tab and start the hub.



4. Concluding Remarks

Lots of yaddi yaddi that isn't relevant for us./Sadako The only useful thing in this section is:

If you enter '§h'  main chat you will get a list of all you can access in the profile you have been added into.


I hope I have translated this into understandable English (the Swedish wasn't that great to begin with).
-=[dMw]=-Dr "Doc" Sadako

"Gravitation is not responsible for people falling in love." Albert Einstein