Je ne fais plus les présentations…tout
le monde connaît les services Epona. Il s'agit des services NickServ,
BotServ, ChanServ, HostServ…dans plusieurs langues, français inclus.
Je vous l'accorde, la configuration ne va pas être si simple qu'un CService…mais
bon, ils sont plus stables:)
Ils sont compatibles avec Bahamut, UnrealIrcd, Dreamforge, UltimateIrcd, Sequana…et
j'en passe.
Pour installer les services
Epona, procédons comme cela : (étant loggué en SSH) :-
tar zxvf epona-1.4.14.tar.gz
- cd epona-1.4.14
- ./configure
Une fois le ./configure
fait, une série de questions apparaît. Voici un exemple pour savoir
comment y répondre (ce n'est qu'un exemple, libre à vous de changer
cette configuration) :
In what directory do you
want the binaries to be installed?
Press Return for the default, or enter a new value.
[/home/hellhound/services]
/home/sites/Ircdz/services does not exist. Create it?
Tapez : Le répertoire
de votre choix
Where do you want the data
files to be installed?
[/home/hellhound/services]
Tapez : Le répertoire
de votre choix
Which group should all Services
data files be owned by? (If Services
should not force files to be owned by a particular group, just press
Return.)
[]
Tapez : Entrée
What should the default
umask for data files be (in octal)?
(077 = only accessible by owner; 007 = accessible by owner and group)
[077]
Tapez : Entrée
Which of the following is
closest to the type of server on your IRC
network?
1) DreamForge 4.6.7 [this is an old IRCd, you should upgrade to Bahamut]
2) Bahamut 1.4.27 or later
3) UnrealIRCd 3.1.1 or later
4) UltimateIRCd 2.8.2 or later
5) Sequana 0.2.0 or later
[no default]
Tapez : Lle chiffre qui
vous concerne
Do you want to use the MD5
message-digest algorithm to encrypt passwords?
(Selecting "yes" protects your passwords from being stolen if someone
gains access to the Services databases, but makes it impossible to recover
forgotten passwords.)
NOTICE: this should be considered an EXPERIMENTAL feature.
[no]
Tapez : Entrée
If you are switching from
another services package that is listed there,
enter its associated number to be able to convert your old databases using
the given parameter on the command line the first time you launch Epona.
If no conversion is needed, type no.
1) ircservices 4.4.x (using -is44)
[no] Please enter a valid option number, or no.
[no]
Tapez : Entrée
Do you want to compile Epona
with threading support?
If you want to use the proxy detector, you MUST have this.
If you encounter problems during compilation, you should disable
it anyways.
[no]
Tapez : Entrée
End of interactive configuration.
Searching for a suitable
compiler... great, found gcc!
Testing default compiler flags (-O2)... looks good.
Let's see what libraries are lying around... -lnsl -lresolv -lbsd
Looking for OS specific needs...
Looking for a 16-bit integer type... short
Looking for a 32-bit integer type... int
Checking for presence of include files (it's okay if some aren't there):
strings.h... present
sys/select.h... present
sys/sysproto.h... not present
Seeing if your system defines int16/int32... not found (this is good).
How to complain when something goes wrong... ah, strerror() is here.
Looking for other routines we want that you don't have...
Checking how to install files... looks like "install" will work.
Checking how to copy directories... /bin/cp -dpr
Creating sysconf.h... done.
Creating Makefile.inc... done.
Saving configuration results in config.cache... done.
All done! Now run "make" (or possibly "gmake") to compile
Services. See
the INSTALL, README and FAQ files if you have any problems.
Ensuite, taper :
- make
- make install
Une fois cela fait, rendez
vous en FTP dans le répertoire /services, uploader le fichier exemple.conf,
éditer le & renommer le en services.conf . Voici un exemple de configuration
:
##################
#
# Remote server configuration
#
##################
RemoteServer irc.tchat-fr.net
6667 link
##################
#
# Services identification and pseudoclient names
#
##################
ServerName "services.tchat-fr.net"
ServerDesc "http://www.ctchat-fr.net/"
ServiceUser "Services@tchat-fr.net"
NickServName "NickServ" "Nickname Server"
ChanServName "ChanServ" "Channel Server"
MemoServName "MemoServ" "Memo Server"
BotServName "BotServ" "Bot Server"
HelpServName "HelpServ" "Help Server"
OperServName "OperServ" "Operator Server"
GlobalName "Global" "Global Noticer"
#DevNullName "DevNull" "/dev/null -- message sink"
##################
#
# Services data filenames
#
##################
PIDFile services.pid
MOTDFile services.motd
NickServDB nick.db
ChanServDB chan.db
BotServDB bot.db
OperServDB oper.db
NewsDB news.db
ExceptionDB exception.db
##################
#
# Network information
#
##################
HelpChannel "#Help"
NetworkDomain "tchat-fr.net"
NetworkName "tchat-fr"
##################
#
# Basic functionality
#
##################
StrictPasswords
BadPassLimit 5
BadPassTimeout 1h
UpdateTimeout 5m
ExpireTimeout 30m
ReadTimeout 5s
WarningTimeout 4h
TimeoutCheck 3s
KeepLogs 7
KeepBackups 3
ForceForbidReason
UseMail
SendMailPath "/usr/sbin/sendmail -t"
SendFrom services@tchat-fr.net
RestrictMail
MailDelay 5m
##################
#
# Proxy detection
#
##################
ProxyThreads 5
ProxyCheckWingate
ProxyCheckSocks4
ProxyCheckSocks5
ProxyCheckHTTP1
ProxyCheckHTTP2
ProxyCheckHTTP3
ProxyTimeout 15s
ProxyTestServer "1.2.3.4" 6667
ProxyExpire 30d
ProxyCacheExpire 1d
ProxyAkillReason "You're using an insecure proxy. See http://proxy.tchat-fr.net/config.html
for information about how to config your proxy in a safe manner."
WallProxy
ProxyMax 50
##################
#
# NickServ configuration
#
##################
NSForceEmail
NSDefSecure
NSDefHideEmail
NSDefMemoSignon
NSDefMemoReceive
NSDefLanguage 2
NSRegDelay 30s
NSExpire 21d
NSMaxAliases 16
NSAccessMax 32
NSEnforcerUser enforcer@localhost.net
NSReleaseTimeout 1m
NSListMax 50
NSGuestNickPrefix "Guest"
NSSecureAdmins
NSStrictPrivileges
##################
#
# ChanServ configuration
#
##################
CSDefKeepTopic
CSDefPeace
CSDefSecure
CSDefSecureFounder
CSDefSignKick
CSDefXOP
CSMaxReg 20
CSExpire 14d
CSDefBantype 2
CSAccessMax 1024
CSAutokickMax 32
CSAutokickReason "User has been banned from the channel"
CSInhabit 15s
CSListMax 50
##################
#
# MemoServ configuration
#
##################
MSMaxMemos 20
MSSendDelay 3s
MSNotifyAll
##################
#
# BotServ configuration
#
##################
BSMinUsers 1
BSBadWordsMax 32
BSKeepData 10m
BSGentleBWReason
##################
#
# OperServ configuration
#
##################
ServicesRoot "HellHound"
LogMaxUsers
AutoKillExpiry 30d
SGLineExpiry 30d
SQLineExpiry 30d
SZLineExpiry 30d
KillClonesAkillExpire 30m
WallGetpass
WallSetpass
WallForbid
WallDrop
LimitSessions
DefSessionLimit 3
MaxSessionLimit 100
ExceptionExpiry 1d
SessionLimitExceeded "The session limit for your host %s has been exceeded."
MaxSessionKill 15
SessionAutoKillExpiry 30m
Et voila. C'était
pas si dur, si ? :) Remettez services.conf dans le répertoire /services
& en SSH taper ./services . Si tout est configuré correctement, vos
services Epona devraient se lancer…
Source : csadmin.net