Author: Bleep <tomh@inxpress.net>
[ircu2.10.12-pk.git] / doc / example.conf
index 4d7f1f46ab039deb7fd7c3dec19e44a93d6393b9..8d8d023027c998b2e58d882917a10f707142797e 100644 (file)
 
 #
 # First some information about the server.
-# M:<server name>:*:<description>:<server port>:<server numeric>
+# M:<server name>:<virtual ip>:<description>:<server port>:<server numeric>
+#
+# The <virtual ip> must be either be empty, contain a "*", or contain
+# the IP address of an interface on your system. If it contains an address,
+# the address will be bound to if you have specified virtual hosting.
 #
 # The <server port> is the port that other servers can connect to.
 # Client ports need to be specified with a P: line, see below.
-# Note that P: lines can still be used to override the address
-# that a server port is bound to, use the <server port> of the M:
-# line in that case on the P: line.
 #
 # Note that <server numeric> has to be unique on the network your server
 # is running on, must be between 1 and 64, and is not updated on a rehash.
 
-M:London.UK.Eu.UnderNet.org:*:[127.0.0.1] University of London, England:4400:1
+# M:London.UK.Eu.UnderNet.org:127.0.0.1:University of London, England:4400:1
+M:London.UK.Eu.UnderNet.org:*:University of London, England:4400:1
 
 #
 # This sets information that can be retrieved with the /ADMIN command.
@@ -335,40 +337,13 @@ O:*@*.cs.vu.nl:VRKLKuGKn0jLs:Niels::10
 # is located behind a firewall, you may want to make another hole in it
 # for this port.
 #
-# P:<ipmask, or path>:[<interface>|*]::<client port number>
-#
-# or
-#
-# P:<ipmask, or path>:[<interface>|*]::<server port>
-#
-# where <server port> is the port specified on the M: line.
-#
+# P:<hostmask, or path>:::<client port number>
 
-# Listen on port 6667 and 6668, use the default interface
-# (that is: the interface specified on the commandline with
-#  -w <interface IP#>, or the interface of the IP# that the
-#  M: line resolves too (or ALL interfaces if it doesn't
-#  resolve)).
 P::::6667
 P::::6668
-# Only accept clients from 168.* on port 6666
-P:168.*:::6666
-
-# Listen on port 7700 for clients that connect to "127.0.0.1"
-# where "127.0.0.1" can be the IP number of any of your interfaces.
-P::127.0.0.1::7700
-# Bind to all interfaces:
-P::*::6669
-
-# Open a client UNIX port on /tmp/.ircd
+P:*.nl:::6666
 P:/tmp/.ircd:::6667
 
-# Listen on loopback and eth0 (192.168.1.1) for other servers:
-P::192.168.1.1::4400   # <<--- The last P: line not specifying 127.0.0.1
-                       #       is uses as IP# for _outgoing_ connections.
-P::127.0.0.1::4400
-# where 4400 is the server port (as specified on the M: line)
-
 #
 # Well, you have now reached the end of this sample configuration file
 # If you have any questions, feel free to mail <doco-com@undernet.org>