FlexHub Forum

Help for guide and support redirects: normal, single, array

Offline massi

  • FlexHub Ambassador and Forum Stalker
  • *
  • 301
Help for guide and support redirects: normal, single, array
« on: September 13, 2011, 09:32:15 »
Hello, I ask you to help manage the various methods by which you can manage your redirects do not think I have understood. If you can kindly help me.
Thank you and good day to you all the forum ;-)

******************************************
 1 . REDIRECT NORMAL MODE !
******************************************
 normal mode:  normal hub operation with rulebased redirects

 A) first step ... setting rules ... FOR EXAMPLE ...

!set allowadc                               Value: true                           Allow ADC users  to join the hub
!set allowdht                                 Value: true                           Allow users with DHT enabled to join the hub (only works for certain clients)
!set allowfalseactive                       Value: false                          Allow passive searches from 'active' (as stated in tag) users
!set allowfalsepassive                      Value: false                          Allow active searches from 'passive' (as stated in tag) users
!set allownmdc                              Value: true                           Allow NMDC users to join the hub
!set allowpassive                           Value: true                           Allow passive users to join the hub
!set allowpinger                            Value: false                          Allow hublist pingers to connect to the hub
!set allowproxy                             Value: false                          Allow proxy users to join the hub
!set chatonly                               Value: true                           Disable all searches and downloads
!set chatonly_hideshare                     Value: true                           Hide shares when hub is set to chat only
!set maxhubs                                Value: 1000                         Maximum amount of hubs a user is allowed to be connected to
!set maxophubs                              Value: 1000                         Maximum amount of hubs where user is operator to be allowed to join the hub
!set maxpublichubs                          Value: 1000                         Maximum amount of public hubs a user is allowed to be connected to
!set maxreghubs                             Value: 1000                         Maximum amount of hubs where user is registered to be allowed to join the hub
!set maxshare                               Value: 10.00 TB                  Maximum share to be allowed to join the hub (in B, kB, MB, GB, TB)
!set maxslots                               Value: 1000                         Maximum amount of slots to be allowed to join the hub
!set maxusers                               Value: 0                               Maximum amount of users allowed in the hub
!set minshare                               Value: 0 B                            Minimum share to be allowed to join the hub (in B, kB, MB, GB, TB)
!set minshare_download                      Value: 0 B                            Minimum share to be allowed to seach and download (size in B, kB, MB, GB, TB)
!set minshare_reg                           Value: 0 B                            Minimum share to be allowed to register using !regme (in B, kB, MB, GB, TB)
!set minslots                                Value: 0                                Minimum amount of slots to be allowed to join the hub
!set passive_download                       Value: true                            Allow downloads/searches of passive users
!set reg_prefix                             Value:                                   Nickname must have this prefix to be able to register using !regme
!set regonly                                 Value: false                           Allow only registered users to join the hub
!set unregged_download                      Value: true                            Allow unregistered users to download and search

 B) second step ... setting redirect ... FOR EXAMPLE ... and ... OPTION: mode ...

!set rd_adc_disabled                        Value: redirecthub1                      When ADC is disabled, users with ADC will be redirected here. Own NMDC hubaddress can be used
!set rd_breakloop_enable                    Value: false                                  Break a redirect loop if a redirected users keeps reconnecting to the hub. Warning: experimental feature!
!set rd_breakloop_timeout                   Value: 120 ( 0 day(s) 00:02:00 )   Time in seconds since last redirect that a user will be considered to be in a redirect-loop
!set rd_breakloop_times                     Value: 5                                       Number of allowed reconnects before a user is considered to be in a redirect-loop
!set rd_deadend                             Value: redirecthub1                      Redirect address for users in a redirect-loop. Only used when !set rd_breakloop_enable = true
!set rd_deadendfail                         Value: redirecthub2                      Redirect address for users who are still reconnecting after being send to the deadend address
!set rd_failover                            Value: redirecthub3                      Specify failover addresses for clients to connect to when hub goes offline, always use a portnumber and use comma as separator, no spaces
!set rd_flood                                               Value: redirecthub4            Redirect address for users that are flooding
!set rd_full                                           Value: redirecthub5            Redirect address for when hub is full
!set rd_main                                Value: redirecthub6                         General redirect address
!set rd_maxhubs                             Value: redirecthub7                         Redirect address for users with too many hubs
!set rd_maxshare                            Value: redirecthub8                      Redirect address for users with too large share
!set rd_maxslots                            Value: redirecthub9                      Redirect address for users with too many slots
!set rd_minshare                            Value: redirecthub10                    Redirect address for users with too small share
!set rd_minslots                            Value: redirecthub11                    Redirect address for users with too few slots
!set rd_mode                                Value: normal  <<<<<<<<<< NORMAL MODE
!set rd_nmdc_disabled                       Value: redirecthub12                   When NMDC is disabled, users with NMDC will be redirected here. Own ADC hubaddress can be used
!set rd_passive                             Value: redirecthub13                   Redirect address for passive users if passive users aren't allowed to join. See !set allowpassive

NB. normal mode, process rules and redirect to hub1, hub2, hub3, hub4, hub5, hub6, hub7, hub8, hub9, hub10, hub11, hub12, hub13 (for example...) ... 1 rules ---> 1 redirect hub

- - - - - - >  it' correct normal mode ? < - - - - - -


***************************************
2 . REDIRECT SINGLE MODE !
***************************************

single mode: redirects everyone to main redirect address

A) first step ... setting redirects ... OPTION: main and mode ...

!set rd_main                                Value: redirecthub6       <<<<<<<<<< SINGLE REDIRECT MAIN       General redirect address

!set rd_mode                                Value: single               <<<<<<<<<< SINGLE MODE

NB. single mode, not process rules or anything but redirect to hub6 (for example...) to single address ...

- - - - - - >  it' correct singole mode ? < - - - - - -


***************************************
3 . REDIRECT ARRAY MODE !
***************************************

array mode: after processing rules it uses a list of hubs as array

A) first step ... setting rules ... FOR EXAMPLE ...

!set allowadc                               Value: true                           Allow ADC users  to join the hub
!set allowdht                                 Value: true                           Allow users with DHT enabled to join the hub (only works for certain clients)
!set allowfalseactive                       Value: false                          Allow passive searches from 'active' (as stated in tag) users
!set allowfalsepassive                      Value: false                          Allow active searches from 'passive' (as stated in tag) users
!set allownmdc                              Value: true                           Allow NMDC users to join the hub
!set allowpassive                           Value: true                           Allow passive users to join the hub
!set allowpinger                            Value: false                          Allow hublist pingers to connect to the hub
!set allowproxy                             Value: false                          Allow proxy users to join the hub
!set chatonly                               Value: true                           Disable all searches and downloads
!set chatonly_hideshare                     Value: true                           Hide shares when hub is set to chat only
!set maxhubs                                Value: 1000                         Maximum amount of hubs a user is allowed to be connected to
!set maxophubs                              Value: 1000                         Maximum amount of hubs where user is operator to be allowed to join the hub
!set maxpublichubs                          Value: 1000                         Maximum amount of public hubs a user is allowed to be connected to
!set maxreghubs                             Value: 1000                         Maximum amount of hubs where user is registered to be allowed to join the hub
!set maxshare                               Value: 10.00 TB                  Maximum share to be allowed to join the hub (in B, kB, MB, GB, TB)
!set maxslots                               Value: 1000                         Maximum amount of slots to be allowed to join the hub
!set maxusers                               Value: 0                               Maximum amount of users allowed in the hub
!set minshare                               Value: 0 B                            Minimum share to be allowed to join the hub (in B, kB, MB, GB, TB)
!set minshare_download                      Value: 0 B                            Minimum share to be allowed to seach and download (size in B, kB, MB, GB, TB)
!set minshare_reg                           Value: 0 B                            Minimum share to be allowed to register using !regme (in B, kB, MB, GB, TB)
!set minslots                                Value: 0                                Minimum amount of slots to be allowed to join the hub
!set passive_download                       Value: true                            Allow downloads/searches of passive users
!set reg_prefix                             Value:                                   Nickname must have this prefix to be able to register using !regme
!set regonly                                 Value: false                           Allow only registered users to join the hub
!set unregged_download                      Value: true                            Allow unregistered users to download and search

B) second step ... setting redirects ... OPTION: mode ...

!set rd_mode                                Value: array               <<<<<<<<<< ARRAY MODE

NB. array mode, after processing rules it uses a list of hubs as array

to create a list of array ...  !addredirect hub1  !addredirect hub2  !addredirect hub3 ... etc ...

in array list for example ... now i've hub1, hub2, hub3

random redirect to this three hubs ... after processing rules ...

- - - - - - >  it' correct array mode ? < - - - - - -


See you later ... Massimiliano ;-)
« Last Edit: September 13, 2011, 09:37:42 by massi »

Offline LadyStardust

  • *****
  • 257
  • aka Puma
Re: Help for guide and support redirects: normal, single, array
« Reply #1 on: September 13, 2011, 13:06:02 »
Steps you taking to set up redirecting system are OK. Here is a guide how to use redirects: http://www.flexhub.org/forum/index.php?topic=253.0

Can you specify your questions a bit more... detailed please? :)
Best regards,
LS

Offline massi

  • FlexHub Ambassador and Forum Stalker
  • *
  • 301
Re: Help for guide and support redirects: normal, single, array
« Reply #2 on: September 13, 2011, 13:23:13 »
Thanks Lady, I thought I did not understand or that there were errors in my process ... Now I will also look at the link ... thanks for the support ;-)

Offline LadyStardust

  • *****
  • 257
  • aka Puma
Re: Help for guide and support redirects: normal, single, array
« Reply #3 on: September 13, 2011, 15:15:40 »
You can also try in practice how it works, and give us some feedback. Thanks  :)
Best regards,
LS

Offline massi

  • FlexHub Ambassador and Forum Stalker
  • *
  • 301
Re: Help for guide and support redirects: normal, single, array
« Reply #4 on: September 13, 2011, 16:25:30 »
Certainly Lady ... :)
Have patience, I'll give you one last example just to see properly, and make no mistakes during the settings in the hub ... please tell me if it's just my reasoning ...

It' correct ... for example ...

hub1 settings:

!set rd_mode array
!set rd_minshare 1GB
!set rd_minslots 2

hub1 commands in mainchat:

!addredirect hub2  
!addredirect hub3
!addredirect hub4

now, my array list in hub1 ...

hub2
hub3
hub4

and hub1 for user under 1GB share - 2 slot redirect random to hub2, hub3, hub4

it's correct ? or not ?

Massimiliano ;-)

Offline FlipFlop™

  • FlexHub Developer
  • *****
  • 505
Re: Help for guide and support redirects: normal, single, array
« Reply #5 on: September 13, 2011, 23:40:00 »
With those settings in hub1, it will redirect like this:

- ALL users with less than 1Gb share: will be redirected to the rd_minshare address
- ALL users with less than 2 slots: will be redirected to the rd_minslots address
- ALL other users: will be redirected to the array list (hub2, hub3, hub4)

Only profiles with an override for 'redirect' will be able to login in hub1, all other users will be redirected according to the explanation above, because hub1 is in array mode.
Check the new FlexHubList!           Add awesome statistics like this for your hub!

This post is a natural product. The slight variations in spelling and grammar enhance its individual character and beauty and in no way are to be considered flaws or defects.

Offline massi

  • FlexHub Ambassador and Forum Stalker
  • *
  • 301
Re: Help for guide and support redirects: normal, single, array
« Reply #6 on: September 13, 2011, 23:46:46 »
Thanks ... now it's all clear ;-)

night night :D