forked from danieldg/janus
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjanus.conf.example
More file actions
197 lines (181 loc) · 6.26 KB
/
janus.conf.example
File metadata and controls
197 lines (181 loc) · 6.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
# Janus configuration file
#
# This is a line-based configuation file, divided into blocks for networks
# and other grouped settings.
# Set block: settings for the janus server itself
set {
# Server name - set this to a single unique word. This is used to identify
# the server in the interjanus protocol.
# This does NOT need to be a domain name; it should be short.
name iRelay
# Saved data location - this is the file which janus will load and save
# state (such as the list of shared channels) between runs
save janus.dat
# Janus nick - change this if you want a different interface nick
# ident and host are similarly settable
janus_nick iRelay
# Administrator password - if set, this enables an "admin" account with
# full access to all commands. Once you have created normal accounts,
# this should be disabled as the password is stored in plaintext.
password verysecret
# Link mode - use janus as a network partition or a transparent bridge
# link - network partition, channels must be explicitly linked
# bridge - transpaent link, all channels linked, opers are more global
lmode link
# Should we tag all networks with the network they are on?
tagall 1
# Run mode - process execution style
# mplex - Handle SSL and sockets using C; allows for perl process to be
# transparently restarted if perl's memory allocation gets too large
# uproc - Handle sockets internally to the worker process
# If "-daemon" is appended, janus will daemonize and optionally record its PID
# pidfile janus.pid
# runmode uproc-daemon
# Other parameters as defined by modules may be present here
# Example: Commands::Debug takes a date-based format for the dump files
datefmt %Y%m%d-%H%M%S
# SSL certificate. Only required if you are using an SSL server port,
# but will be presented as client certificates on connections
# These can be overridden in an individual link block
ssl_certfile janus-cert.pem
ssl_keyfile janus-key.pem
# Certificate Authority to verify certificates against - incoming and outgoing
#ssl_cafile janus-cert.pem
}
# Modules block: this is a list of modules which are loaded at startup.
# Modules can also be loaded or unloaded while janus is running.
# See README for a short description of each module.
modules {
Commands::*
Modules::Ban
Modules::KeepMode
Modules::Signals
}
# Log blocks
log log/%Y-%m-%d-%H:%M:%S {
# Type - a module in the Log package
# For "File" logs, the name is a strftime format string that will become the filename
type File
# Filter - what events to send to the log. Space-separated values
# See Log.pm for a full list; this will produce a reasonable log.
# Uncomment the filter to make a full log if you are submitting a bug report.
filter debug info warn err audit command debug_in info_in warn_in err_in hook_err
## The following settings are specific to the File type:
# Run a dump before opening the log file (for possible replays)
#dump 1
# rotate the log every N seconds
rotate 86400
# action to take on the log after closing
closeact gzip
}
# Channel log: <netid>#channel
log net#logchan {
type Channel
filter audit
style color
}
# Listen blocks: listen for incoming server connections
#
# No listen block is required if you have janus connect to your servers
#
# The type of server is determined by the IP of the incoming connection;
# one port can be used for SSL and non-SSL, and for all types of servers.
# You cannot accept incoming connections from a server if another server
# shares its IP address; use outgoing connections or alternative IPs.
listen 8005
listen 1.2.3.4:8006
# Network link block - one block is required per network
# link <netid>
link u3 {
# Server type. This is a module in the Server package
type Unreal
# Should we try to autoconnect to this network by default?
autoconnect 1
# Address to connect to. Will do a DNS lookup if needed
# Using DNS will disable incoming connections from this server
linkaddr ::1
# Port to connect to
linkport 8001
# Source address (optional, for multihomed hosts)
linkbind ::1
# Password which is sent
sendpass pass
# Password which is expected to receive
recvpass pass
# Link type: either plain or ssl. Also used for incoming connections.
linktype ssl
# For SSL links, certificate fingerprint may be checked.
# See extras/get-fp to read the fingerprint of an existing server
# This is done instead of checking the CA
ssl_fp da39a3ee5e6b4b0d3255bfef95601890afd80709
# Long name of this network
netname Test 1
# What server name is used to introduce ourselves
# Optional, defaults to NAME.janus where NAME is set above
linkname hub.janus
# Unreal-only: numerics used for janus servers. Optional, defaults to 100-600
numeric_range 40-45,70,85-190
# Untrusted: if set, don't send real IP/host to this network
# untrusted 1
}
# Link block for an InspIRCd 1.1 server
# (protocol details, module list, etc are autonegotiated on connect)
link i1 {
type Inspircd_1105
# Fallback links: Any parameter that ends in ".1" is changed depending
# on which server we are connecting to. Servers are tried in round-robin
# fashion, with server 1 always being tried first.
linkaddr.1 4.2.2.2
linkaddr.2 4.2.2.3
# other paramaters can be specified without the link suffix if they are
# the same for all fallback servers
linkport 8003
linktype plain
sendpass pass
recvpass.1 password
recvpass.2 passwurd
netname Insp Server
autoconnect 1
}
# Other server protocols link the same way.
# See the protocol module names in src/Server/
link chy {
type TS6
# TS6 takes an additional parameter for the ircd type
ircd charybdis
linkaddr 4.2.2.2
linkport 1234
linktype plain
sendpass abc
recvpass def
netname Charybdis Server
}
# Inter-janus link block
# The link id must match the set::name of the remote server
link myserver {
type InterJanus
linkaddr ::1
linkport 8009
linktype ssl
sendpass pass
recvpass ssap
netname That Other Server
autoconnect 0
ssl_certfile alt-server.cert.pem
ssl_keyfile alt-server.key.pem
}
# Relay bot link block
link cbot {
type ClientBot
linkaddr 1.2.3.4
linkport 6667
# ClientBot supports 3 link types: ssl, plain, tls.
# tls requires the server to support STARTTLS
linktype tls
nick jmirror
servpass ServerPassWord
nspass NickServPassWord
# the nick must already be registered, and the bot will not ghost anyone camping
netname A Relay Bot
autoconnect 1
}