From 2f44331e17a1673580725cf9fb097b82e6393502 Mon Sep 17 00:00:00 2001 From: "geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b" Date: Mon, 7 Mar 2005 20:03:07 +0000 Subject: [PATCH] BUILD : 1.7.8 (606) BUGS : NOTES : Removed proxy detector code from the core, threads stuff still there. Needs good testing git-svn-id: svn://svn.anope.org/anope/trunk@606 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@454 5417fbe8-f217-4b02-8779-1006273d7864 --- Changes | 1 + Changes.conf | 132 ++++++++ Changes.lang | 16 + data/example.conf | 131 -------- docs/WIN32.txt | 13 +- include/extern.h | 38 +-- include/services.h | 27 -- lang/cat.l | 58 ---- lang/de.l | 51 --- lang/en_us.l | 46 --- lang/es.l | 58 ---- lang/fr.l | 60 ---- lang/gr.l | 58 ---- lang/hun.l | 44 --- lang/it.l | 57 ---- lang/nl.l | 52 --- lang/pl.l | 44 --- lang/pt.l | 45 --- lang/ru.l | 44 --- lang/tr.l | 58 ---- makefile.inc.win32 | 7 - src/Makefile | 7 +- src/config.c | 52 --- src/init.c | 8 - src/main.c | 4 - src/makefile.win32 | 5 +- src/misc.c | 9 + src/mysql.c | 51 +-- src/operserv.c | 55 +-- src/proxy.c | 809 --------------------------------------------- src/rdb.c | 5 +- src/users.c | 6 - version.log | 6 +- 33 files changed, 179 insertions(+), 1878 deletions(-) delete mode 100644 src/proxy.c diff --git a/Changes b/Changes index 651281c85..992857298 100644 --- a/Changes +++ b/Changes @@ -30,6 +30,7 @@ Provided by Anope Dev. - 2005 01/30 F ChanServ help to reflect the avaiable commands. [ #00] 01/30 F ChanServ used some commands that were not valid on all ircds. [ #00] 01/30 F Compiling modules under Mac OSX. [#285] +03/07 R Removed Proxy Detector from core. [ #00] Provided by crazytoon - 2005 02/05 A Updated German language file. [ #00] diff --git a/Changes.conf b/Changes.conf index 39a272caa..97a27b05e 100644 --- a/Changes.conf +++ b/Changes.conf @@ -27,6 +27,138 @@ Anope Version S V N ** DELETED CONFIGURATION DIRECTIVES ** +########################################################################### +# +# Proxy detection +# +########################################################################### + +# Note: if ProxyDetect is not set, all parameters after it in this section +# are optional. + +# ProxyDetect [OPTIONAL] +# +# Enables insecure proxy detection. Services will automatically +# scan each incoming user and akill those that use insecure proxy. +# +# Anope currently supports detection of Wingate (port 23), SOCKS4/5 +# (port 1080), and HTTP proxy (ports 3128 and 8080). It uses the +# protocol of each proxy type to connect to an IRC server, it does +# not only check if the port is open (so your users may still have +# an open telnet server on their port 23 for example). +# +# WARNING: You should get the authorization of the administrator of +# the computer which runs the proxy detector before enabling it; not +# all administrators will accept it. Also note that in certain +# countries, port scanning is prohibited. +# +# This feature requires threading support to be compiled into Anope. + +#ProxyDetect + +# ProxyThreads [REQUIRED] +# +# Sets the number of threads Services will launch when starting. Each +# thread will have the responsibility to scan queued hostname for +# proxies. +# +# This value must be set depending of the number of users you have +# on your network. The more threads are used, the more simultaneous +# checks can be done. Remember however, that threads are +# resource-consuming. +# +# WARNING: On Linux, each thread takes a background process, and there +# is an additional process used for thread management; this is a problem +# if you are limited in the number of background process you can use +# (on a paid shell for example). + +ProxyThreads 5 + +# ProxyMessage... [RECOMMENDED] +# +# Sets the notices that will be sent out to users before Services +# scan them for proxy. You may not use all of them, but just as much as +# necessary. + +ProxyMessage1 "I will now detect if you're using an insecure proxy." +ProxyMessage2 "If you see a connection on port 23, 1080, 3128 or 8080 from" +ProxyMessage3 "my.box.net, please disregard it, as it is the detector in action." +ProxyMessage4 "See http://proxy.myirc.net/ for information about our proxy policy." +#ProxyMessage5 "Enter" +#ProxyMessage6 "whatever" +#ProxyMessage7 "you want" +#ProxyMessage8 "here." + +# ProxyCheck... [OPTIONAL] +# +# Determines what types of proxy Anope will try to find (respectively +# Wingate on port 23, SOCKS4 on port 1080, SOCKS5 on port 1080, HTTP +# proxy on port 3128, HTTP proxy on port 8080 and HTTP proxy on port +# 80). + +ProxyCheckWingate +ProxyCheckSocks4 +ProxyCheckSocks5 +ProxyCheckHTTP1 +ProxyCheckHTTP2 +ProxyCheckHTTP3 + +# ProxyTimeout