and made all snotices look "nicer"
--Luke
===================================
+
+Moved cloak keys to unrealircd.conf, since the
+.network files are public domain (in general).
+Go lynch Stskeeps if you don't like it.
+--Luke
+===================================
+
+Actually added sample lines to unrealircd.conf
+for EXEMPT_ALL and CLOAK_KEY_n. Also, changed
+version number on both that and the .network
+file, as both have changed since 3.1.3.
+--Luke
#define DYNCONF_H
/* config level */
-#define DYNCONF_CONF_VERSION "1.5"
-#define DYNCONF_NETWORK_VERSION "2.2"
+#define DYNCONF_CONF_VERSION "1.6"
+#define DYNCONF_NETWORK_VERSION "2.3"
typedef struct zNetwork aNetwork;
struct zNetwork {
#
# (c) 2000 codemastr (Dominick Meglio) and the UnrealIRCd Team
-VERSION="2.2"
+VERSION="2.3"
DATE=`date "+%d %B %Y %H:%M"`
FILE="mynet.network"
EXISTS="y"
HELPCHAN="#help"
STATS_SERVER="stats.mynet.org"
INAH="1"
-CKEY_1="0"
-CKEY_2="0"
-CKEY_3="0"
SUBMIT="y"
# Checking out how to specify not to make a new line with the current OS
INAH="$cc"
fi
-echo ""
-echo "*** IMPORTANT AND NEW! ***"
-echo "What is your network's first cloak key?"
-echo $n "[$CKEY_1] -> $c"
-read cc
-if [ ! -z $cc ]; then
- CKEY_1="$cc"
-fi
-
-echo "What is your network's second cloak key?"
-echo $n "[$CKEY_2] -> $c"
-read cc
-if [ ! -z $cc ]; then
- CKEY_2="$cc"
-fi
-
-echo "What is your network's third cloak key?"
-echo $n "[$CKEY_3] -> $c"
-read cc
-if [ ! -z $cc ]; then
- CKEY_3="$cc"
-fi
-
# write the actual conf
cat > $FILE << __EOF__
Set HUB ...........: not_in_use
Set iNAH ..........: $INAH
Set net_quit ......: not_in_use
-Set cloak_key_1 ...: $CKEY_1
-Set cloak_key_2 ...: $CKEY_2
-Set cloak_key_3 ...: $CKEY_3
__EOF__
echo ""
-ver^2.2
+ver^2.3
#
# Network Configuration File Template
# -----------------------------------------
Set iNAH ..........: 0
# -- Not in use but still here --
Set net_quit ......: ic
-
-
-# These are the cloak keys for your network. They should be the same on ALL SERVERS
-# They must also be > 10000
-Set cloak_key_1 ...: 0
-Set cloak_key_2 ...: 0
-Set cloak_key_3 ...: 0
-
-ver^1.5
+ver^1.6
#
# UnrealIRCd Configuration file - unrealircd.conf
# (C) Carsten Munk 1999 - Under the GNU license
# that should be send when no DNS response is received
#
Set HOST_RETRIES ........: 2
+
+#
+# This allows exempt lines in ircd.conf to match glines
+# and akills instead of just local klines. [NEW]
+#
+Set EXEMPT_ALL ..........: 1
+
+#
+# These three cloak keys SHOULD BE THE SAME ON ALL SERVERS.
+# They are part of the algorithm that cloaks hosts for users
+# that are +x.
+#
+Set CLOAK_KEY_1 .........: 0
+Set CLOAK_KEY_2 .........: 0
+Set CLOAK_KEY_3 .........: 0
{
EXEMPT_ALL = atoi(setto);
}
+ else if (strcmp(var, "CLOAK_KEY_1") == 0)
+ {
+ CLOAK_KEY1 = ircabs(atol(setto));
+ }
+ else if (strcmp(var, "CLOAK_KEY_2") == 0)
+ {
+ CLOAK_KEY2 = ircabs(atol(setto));
+ }
+ else if (strcmp(var, "CLOAK_KEY_3") == 0)
+ {
+ CLOAK_KEY3 = ircabs(atol(setto));
+ }
#ifndef BIG_SECURITY_HOLE
else if (strcmp(var, "SETUID") == 0)
{
{
AllocCpy(helpchan, setto);
}
- else if (strcmp(var, "cloak_key_1") == 0)
- CLOAK_KEY1 = ircabs(atol(setto));
- else if (strcmp(var, "cloak_key_2") == 0)
- CLOAK_KEY2 = ircabs(atol(setto));
- else if (strcmp(var, "cloak_key_3") == 0)
- CLOAK_KEY3 = ircabs(atol(setto));
else if (strcmp(var, "STATS_SERVER") == 0)
{
AllocCpy(STATS_SERVER, setto);
strcat(errormsg, "- EXEMPT_ALL is an invalid value\n");
if (HOST_RETRIES < 0 || HOST_RETRIES > 10)
strcat(errormsg, "- HOST_RETRIES is an invalid value\n");
+ if ((CLOAK_KEY1 < 10000) || (CLOAK_KEY2 < 10000) || (CLOAK_KEY3 < 10000))
+ strcat(errormsg, "- Missing cloak keys, or they're too easy to guess. Make them > 10000\n");
#define Missing(x) !(x) || (*(x) == '\0')
if (Missing(defserv))
strcat(errormsg, "- Missing defserv field\n");
strcat(errormsg, "- Missing netdomain field\n");
if (Missing(helpchan))
strcat(errormsg, "- Missing helpchan field\n");
- if ((CLOAK_KEY1 < 10000) || (CLOAK_KEY2 < 10000) || (CLOAK_KEY3 < 10000))
- strcat(errormsg, "- Missing cloak keys, or they're too easy to guess. Make them > 10000\n");
if (Missing(STATS_SERVER))
strcat(errormsg, "- Missing STATS_SERVER field\n");
if (Missing(iConf.socksbanmessage))