Author: Run <carlo@alinoe.com>
[ircu2.10.12-pk.git] / doc / example.conf
index c1893eec6fe3f392ef868a8a908995ca3f5b76d0..4d7f1f46ab039deb7fd7c3dec19e44a93d6393b9 100644 (file)
@@ -38,6 +38,9 @@
 #
 # 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.
@@ -332,13 +335,40 @@ 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:<hostmask, or path>:::<client port number>
+# 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.
+#
 
+# 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
-P:*.nl:::6666
+# 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:/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>