Difference between revisions of "Enable Mibbit on Your IRC Server"

From Mibbit Wiki
Jump to: navigation, search
m (WEBIRC (Best method))
m (WEBIRC (Best method))
Line 21: Line 21:
 
** whether you want to see your server listed: public=[yes|no]
 
** whether you want to see your server listed: public=[yes|no]
 
*** case "yes": the name you want to see in the main client's Home > IRC: dropdown list   
 
*** case "yes": the name you want to see in the main client's Home > IRC: dropdown list   
You can ask a staff member ([[IRC_Operators|ircop]]) in #help to insert the data into the db (via PM) or send an email to staff@mibbit.com . '''Note:''' if there are reports that the mibbit client cannot connect the "public" entry will be removed.
+
You can ask a staff member ([[IRC_Operators|ircop]]) in #help to insert the data into the db (via PM) or send an email to staff@mibbit.com .  
 +
 
 +
'''Note:''' if there are reports that the mibbit client cannot connect the "public" entry will be removed.
  
 
=== Unrealircd ===
 
=== Unrealircd ===

Revision as of 10:48, 1 May 2009

Wiki Home | FAQ | Features | IRC Commands | IRC Modes | Widget Information | Widget: WebIRC Server Setup | URI Parameters | Wish List | Registration Information | Mibbit Staff

Home | Quick Start Guide | Live Mibbit Help



If you own an IRC server, and would like to enable people to access it from Mibbit without issues, it's simple to get setup.

First of all, anyone who uses Mibbit connects from the same IP address to your IRC server. This needs to be handled by the IRC server. The default setup for most IRC servers is to only allow 3 or so connections from any single IP, which means that only 3 Mibbitians would be able to connect to the server. There are two solutions to this.

WEBIRC (Best method)

The webirc protocol allows mibbit to send over the users real IP address and hostname to the irc server. This means that cloaks, and bans, and all other hostname/IP based things work exactly as they should. When you whois the user, it'll look like they are connecting directly from their own IP, and not through Mibbit. This is also known as a cgiirc{} block on some servers.

If you wish to set this up, please:

  • Choose a webirc password
  • Configure your servers
  • Let us know your:
    • the ircd version
    • server mask, e.g., *.blah.(net|com|org), or a list of the enabled servers (if not all servers of your network can be set up to use webirc)
    • prefered connect server or round robin and the port (if not 6667), e.g., irc.blah.net:1234 (will be used by the main client)
    • email address of the admin
    • webirc password (please use 6..20 alpha-numeric characters only)
    • whether you want to see your server listed: public=[yes|no]
      • case "yes": the name you want to see in the main client's Home > IRC: dropdown list

You can ask a staff member (ircop) in #help to insert the data into the db (via PM) or send an email to staff@mibbit.com .

Note: if there are reports that the mibbit client cannot connect the "public" entry will be removed.

Unrealircd

Example UnrealIRCd cgiirc block setup/configuration (Requires UnrealIRCd 3.2.5 or higher):

// For the main client :
cgiirc {
       type webirc;
       hostname 64.62.228.82;
       password <password>;
};

// For the widget (http://widget.mibbit.com/):
cgiirc {
       type webirc;
       hostname Template:Mibbit WIDGET IP;
       password <password>; // same as above!
};

Note: UnrealIRCd versions between 3.2.5 to 3.2.7 have cgiirc block bugs in IPv6 compiles of UnrealIRCd, Patch available here, this issue however is resolved in version 3.2.8 and up.

Read the CGI:IRC Block documentation for more information on cgiirc blocks.


For networks that are unable for some reason to use cgiirc blocks, the following will allow an unrestricted number of mibbit clients on your server(s). These blocks should not be necessary while using the cgiirc block, however adding them just in case is suggested;


Throttling blocks allows the mibbit client and widget to bypass throttle by preventing auto-throttle bans:

except throttle {
      mask 64.62.228.82;
};
except throttle {
      mask Template:Mibbit WIDGET IP;
};


The allow block will allow more specifically those unable to use cgiirc blocks to prevent having mibbit clients disconnected for maximum connections:

allow {
       ip NOBODY;
       hostname *@mibbit.com;
       class clients;
       maxperip 1000;
};

Nefarious

Sample config for Nefarious 1.2:

W:*@64.62.228.82:<password>:*::
W:*@Template:Mibbit WIDGET IP:<password>:*::

Sample config for Nefarious 1.3 up to revision 2244:

W:*@64.62.228.82:<password>:s:mibbit:"Mibbit"
W:*@Template:Mibbit WIDGET IP:<password>:s:mibbit:"Mibbit"

Sample config for Nefarious 1.3, revision 2245 and beyond:

WebIRC {
  mask = "*@64.62.228.82";
  pass = "<password>";
  flags = "s";
  ident = "mibbit";
  desc = "Mibbit";
};

WebIRC {
  mask = "*@Template:Mibbit WIDGET IP";
  pass = "<password>";
  flags = "s";
  ident = "mibbit";
  desc = "Mibbit";
};

The password field is either plain text password or if you have F:CRYPT_OPER_PASSWORD:TRUE (default) you will need to use "/mkpasswd <password>" to crypt the password before adding it to the W:Line

To check the version and revision use "/version" or "/quote version" depending on your IRC client and then look for:

u2.10.11.07+Nefarious(<version>)+[<revision> <date>].

Other

The protocol is pretty simple. The first command sent to the server is:

WEBIRC <password> cgiirc <hostname> <ip>

The server then uses the hostname and ip for that connection.

Here is the hybrid module code: m_cgiirc.c


Send any questions/requests for adding your server to the list of approved servers to tech[at]mibbit.com

Trust/session limit increase

If webirc is unavailable, mibbit sends over the users IP address and hostname. In the ident reply, we send the users IP address in hex form. We also set the users realname to be their hostname. If you use this method, you can ban individuals on their username. You just need to increase the connection limit for the Mibbit IP, and please remember NOT to k-line/ban the whole of mibbit. Ban individuals instead.

Our IP for the main client is 64.62.228.82 Our IP for the widget is Template:Mibbit WIDGET IP

Configuration examples