How to set up a tcm configuration file

The tcm.cf file is the heart of the tcm, unlike early early versions of tcm, server nick etc. are not compiled into the tcm itself. This allows the ability to use the same binary on more than one server

# Username for the bot
U:db

# virtual host name if needed
##V:irc.foozle.org

# O line for the bot with password
# Sorry, the password cannot be encrypted
O:dianora:Nope

# Server for the tcm
S:irc.frizzle.net:6666

# Nick for the tcm
N:example

# Bot's IRCNAME
I:irc.frizzle.net tcm

# channel for the tcm
# Note that tcm can only sit in one channel
C:&frizzle.net
# The channel can have a key set
# C:&frizzle.net:access

# A:case:action:log to channel? <YES/NO>
#  Sets the action to take on various automated situations.
#
#   Possible values for case:
#       - cflood      <what action to take with connect flooders>
#       - vclone      <what action to take when virtual host cloners are found>
#       - flood       <what action to take when a user floods>
#       - link        <what action to take when a link looker is found>
#       - bot         <what action to take when a bot is found>
#       - ctcp        <what action to take when a ctcp flooder is found>
#       - spambot     <what action to take when a spambot is found>
#       - clone       <what action to take when clones are found>
#       - sclone      <what action to take when multi-server clones are found>
#       - drone       <what action to take when services reports drones>
#       - wingate     <what action to take when an open wingate is found>
#       - socks       <what action to take when an open soxy proxy is found>
#
#   Possible values for action:
#       - kline [time]  <kline the user using the proper message>
#       - dline         <dline the user with the same proper message>
#       - warn          <do nothing to the user, warn +w users on the tcm>
#
A:cflood:dline:Connection flooding
A:vclone:kline 180:Cloning is prohibited
A:flood:kline 180:Flooding is prohibited
A:link:kline:Link Lookers are prohibited
A:bot:kline:Bots are prohibited
A:ctcp:kline 180:CTCP Flooding is prohibited
A:spambot:kline 1440:Spamming is prohibited
A:clone:kline 1440:Cloning is prohibited
A:sclone:kline 180:clones on multiple servers
A:drone:kline:Drone bots
A:wingate:dline:Open Wingate
A:socks:dline:Open SOCKS server

# optional message to send to users who request STATS p
M:For basic information, see http://www.ircd-hybrid.org/tcm/

# email address
# clone logs etc. will get e-mailed to this address
#E:db@db.net

# port to listen on if the default is unavailable
# the default port is defined in config.h
#P:6801

# keep the tcm opers only? YES or NO
D:YES

# Test this wingate if in this class only
# NOTE:  This is EXPLICITELY needed, as Wingate and SOCKS checks
#        will ONLY be done in the classes listed here
# Multiple entries are permitted
#
W:9
# TCM also supports named classes that Hybrid-7 provides
#W:broadband

#where the userlist.cf is for this tcm
#default is etc/userlist.cf
#L:phoenix1/userlist.cf
#L:phoenix2/userlist.cf
#
# Test this wingate/socks if in this class only
#
W:9                        
W:3

tcm will only test for wingate/socks if it is in one of these listed classes, as set in W lines. i.e. Set up a class that only matches *ppp* connects, and set up the W line to only test connections in that class.

back