mirror of
https://github.com/3proxy/3proxy.git
synced 2025-02-23 18:45:40 +08:00
Merge branch 'master' of https://github.com/3proxy/3proxy
This commit is contained in:
commit
daa2b74354
@ -8,13 +8,13 @@
|
|||||||
|
|
||||||
BUILDDIR = ../bin/
|
BUILDDIR = ../bin/
|
||||||
CC = cl
|
CC = cl
|
||||||
CFLAGS = /nologo /MT /W3 /Ox /GS /EHs- /GA /GF /D "MSVC" /D "WITH_STD_MALLOC" /D "WITH_WSAPOLL" /D "NDEBUG" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /D "_WIN32" /D "PRINTF_INT64_MODIFIER=\"I64\"" /Fp"proxy.pch" /FD /c $(VERSION) $(BUILDDATE)
|
CFLAGS = /nologo /MT /W3 /Ox /GS /EHs- /GA /GF /D "MSVC" /D "WITH_STD_MALLOC" /D "WITH_WSAPOLL" /D "NDEBUG" /D "WIN32" /D "WITH_SSL" /D "_CONSOLE" /D "_MBCS" /D "_WIN32" /D "PRINTF_INT64_MODIFIER=\"I64\"" /Fp"proxy.pch" /FD /c $(VERSION) $(BUILDDATE)
|
||||||
COUT = /Fo
|
COUT = /Fo
|
||||||
LN = link
|
LN = link
|
||||||
LDFLAGS = /nologo /subsystem:console /incremental:no /machine:I386
|
LDFLAGS = /nologo /subsystem:console /incremental:no /machine:I386
|
||||||
DLFLAGS = /DLL
|
DLFLAGS = /DLL
|
||||||
DLSUFFICS = .dll
|
DLSUFFICS = .dll
|
||||||
LIBS = ws2_32.lib advapi32.lib odbc32.lib user32.lib kernel32.lib Gdi32.lib libeay32.lib ssleay32.lib
|
LIBS = ws2_32.lib advapi32.lib odbc32.lib user32.lib kernel32.lib Gdi32.lib libcrypto_static.lib libssl_static.lib
|
||||||
LIBSOLD = libeay32MT.lib ssleay32MT.lib
|
LIBSOLD = libeay32MT.lib ssleay32MT.lib
|
||||||
LIBSPREFIX =
|
LIBSPREFIX =
|
||||||
LIBSSUFFIX = .lib
|
LIBSSUFFIX = .lib
|
||||||
|
@ -8,13 +8,13 @@
|
|||||||
|
|
||||||
BUILDDIR = ../bin64/
|
BUILDDIR = ../bin64/
|
||||||
CC = cl
|
CC = cl
|
||||||
CFLAGS = /nologo /MT /W3 /Ox /EHs- /GS /GA /GF /D "MSVC" /D "WITH_STD_MALLOC" /D "WITH_WSAPOLL" /D "NDEBUG" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /D "_WIN32" /D "PRINTF_INT64_MODIFIER=\"I64\"" /Fp"proxy.pch" /FD /c $(VERSION) $(BUILDDATE)
|
CFLAGS = /nologo /MT /W3 /Ox /EHs- /GS /GA /GF /D "MSVC" /D "WITH_STD_MALLOC" /D "WITH_SSL" /D "WITH_WSAPOLL" /D "NDEBUG" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /D "_WIN32" /D "PRINTF_INT64_MODIFIER=\"I64\"" /Fp"proxy.pch" /FD /c $(VERSION) $(BUILDDATE)
|
||||||
COUT = /Fo
|
COUT = /Fo
|
||||||
LN = link
|
LN = link
|
||||||
LDFLAGS = /nologo /subsystem:console /incremental:no /machine:x64
|
LDFLAGS = /nologo /subsystem:console /incremental:no /machine:x64
|
||||||
DLFLAGS = /DLL
|
DLFLAGS = /DLL
|
||||||
DLSUFFICS = .dll
|
DLSUFFICS = .dll
|
||||||
LIBS = ws2_32.lib advapi32.lib odbc32.lib user32.lib kernel32.lib Gdi32.lib libeay32.lib ssleay32.lib
|
LIBS = ws2_32.lib advapi32.lib odbc32.lib user32.lib kernel32.lib Gdi32.lib libcrypto_static.lib libssl_static.lib
|
||||||
LIBSOLD = libeay32.lib ssleay32.lib
|
LIBSOLD = libeay32.lib ssleay32.lib
|
||||||
LIBSPREFIX =
|
LIBSPREFIX =
|
||||||
LIBSSUFFIX = .lib
|
LIBSSUFFIX = .lib
|
||||||
|
@ -8,13 +8,13 @@
|
|||||||
|
|
||||||
BUILDDIR = ../bin64/
|
BUILDDIR = ../bin64/
|
||||||
CC = cl
|
CC = cl
|
||||||
CFLAGS = /nologo /MT /W3 /Ox /EHs- /GS /GA /GF /D "MSVC" /D "WITH_STD_MALLOC" /D "WITH_WSAPOLL" /D "NDEBUG" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /D "_WIN32" /D "PRINTF_INT64_MODIFIER=\"I64\"" /Fp"proxy.pch" /FD /c $(VERSION) $(BUILDDATE)
|
CFLAGS = /nologo /MT /W3 /Ox /EHs- /GS /GA /GF /D "MSVC" /D "WITH_STD_MALLOC" /D "WITH_WSAPOLL" /D "WITH_SSL" /D "NDEBUG" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /D "_WIN32" /D "PRINTF_INT64_MODIFIER=\"I64\"" /Fp"proxy.pch" /FD /c $(VERSION) $(BUILDDATE)
|
||||||
COUT = /Fo
|
COUT = /Fo
|
||||||
LN = link
|
LN = link
|
||||||
LDFLAGS = /nologo /subsystem:console /incremental:no /machine:arm64
|
LDFLAGS = /nologo /subsystem:console /incremental:no /machine:arm64
|
||||||
DLFLAGS = /DLL
|
DLFLAGS = /DLL
|
||||||
DLSUFFICS = .dll
|
DLSUFFICS = .dll
|
||||||
LIBS = ws2_32.lib advapi32.lib odbc32.lib user32.lib kernel32.lib Gdi32.lib
|
LIBS = ws2_32.lib advapi32.lib odbc32.lib user32.lib kernel32.lib Gdi32.lib libcrypto_static.lib libssl_static.lib
|
||||||
LIBSOLD =
|
LIBSOLD =
|
||||||
LIBSPREFIX =
|
LIBSPREFIX =
|
||||||
LIBSSUFFIX = .lib
|
LIBSSUFFIX = .lib
|
||||||
@ -28,7 +28,7 @@ REMOVECOMMAND = del 2>NUL >NUL
|
|||||||
TYPECOMMAND = type
|
TYPECOMMAND = type
|
||||||
COMPATLIBS =
|
COMPATLIBS =
|
||||||
MAKEFILE = Makefile.msvcARM64
|
MAKEFILE = Makefile.msvcARM64
|
||||||
PLUGINS = utf8tocp1251 WindowsAuthentication TrafficPlugin StringsPlugin PCREPlugin FilePlugin
|
PLUGINS = utf8tocp1251 WindowsAuthentication TrafficPlugin StringsPlugin PCREPlugin FilePlugin SSLPlugin
|
||||||
VERFILE = 3proxy.res $(VERFILE)
|
VERFILE = 3proxy.res $(VERFILE)
|
||||||
VERSIONDEP = 3proxy.res $(VERSIONDEP)
|
VERSIONDEP = 3proxy.res $(VERSIONDEP)
|
||||||
AFTERCLEAN = del src\*.res
|
AFTERCLEAN = del src\*.res
|
||||||
|
2
README
2
README
@ -1,5 +1,5 @@
|
|||||||
# 3APA3A 3proxy tiny proxy server
|
# 3APA3A 3proxy tiny proxy server
|
||||||
(c) 2002-2020 by Vladimir '3APA3A' Dubrovin <3proxy@3proxy.ru>
|
(c) 2002-2021 by Vladimir '3APA3A' Dubrovin <3proxy@3proxy.org>
|
||||||
|
|
||||||
|
|
||||||
Branches:
|
Branches:
|
||||||
|
2
authors
2
authors
@ -1 +1 @@
|
|||||||
(c) 2002-2019 by Vladimir '3APA3A' Dubrovin <vlad@3proxy.ru>
|
(c) 2002-2021 by Vladimir '3APA3A' Dubrovin <vlad@3proxy.org>
|
8
copying
8
copying
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
(c) 2000-2020 by 3APA3A (3APA3A@3proxy.ru)
|
(c) 2000-2020 by 3APA3A (3APA3A@3proxy.ru)
|
||||||
(c) 2000-2020 by 3proxy.org (https://3proxy.org/)
|
(c) 2000-2020 by 3proxy.org (https://3proxy.org/)
|
||||||
(c) 2000-2020 by Vladimir Dubrovin (vlad@3proxy.ru)
|
(c) 2000-2020 by Vladimir Dubrovin (vlad@3proxy.org)
|
||||||
|
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
@ -38,20 +38,20 @@ terms of compatible license, including:
|
|||||||
1. Apache License, Version 2.0 or (at your option) any later version
|
1. Apache License, Version 2.0 or (at your option) any later version
|
||||||
You may obtain a copy of the License at
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
https://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
2. GNU General Public License as published by
|
2. GNU General Public License as published by
|
||||||
the Free Software Foundation; either version 2 of the License, or
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
(at your option) any later version.
|
(at your option) any later version.
|
||||||
You may obtain a copy of the License at
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
http://www.gnu.org/licenses/gpl.txt
|
https://www.gnu.org/licenses/gpl.txt
|
||||||
|
|
||||||
3. GNU Lesser General Public License as published by the
|
3. GNU Lesser General Public License as published by the
|
||||||
Free Software Foundation; either version 2.1 of the License, or
|
Free Software Foundation; either version 2.1 of the License, or
|
||||||
(at your option) any later version.
|
(at your option) any later version.
|
||||||
You may obtain a copy of the License at
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
http://www.gnu.org/licenses/lgpl.txt
|
https://www.gnu.org/licenses/lgpl.txt
|
||||||
|
|
||||||
|
|
||||||
|
10
debian/3proxy.manpages
vendored
Normal file
10
debian/3proxy.manpages
vendored
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
man/3proxy.8
|
||||||
|
man/3proxy.cfg.3
|
||||||
|
man/ftppr.8
|
||||||
|
man/icqpr.8
|
||||||
|
man/pop3p.8
|
||||||
|
man/proxy.8
|
||||||
|
man/smtpp.8
|
||||||
|
man/socks.8
|
||||||
|
man/tcppm.8
|
||||||
|
man/udppm.8
|
18
debian/changelog
vendored
Normal file
18
debian/changelog
vendored
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
3proxy (0.9.3-210629140419) buster; urgency=medium
|
||||||
|
|
||||||
|
*3proxy 0.9.3 build
|
||||||
|
|
||||||
|
-- z3APA3A <3apa3a@3proxy.org> Thu, 01 Jul 2021 19:48:44 +0300
|
||||||
|
|
||||||
|
3proxy (0.9.3-1) buster; urgency=medium
|
||||||
|
|
||||||
|
*3proxy 0.9.3 initial build
|
||||||
|
|
||||||
|
-- z3APA3A <3apa3a@3proxy.org> Thu, 03 Dec 2020 21:13:58 +0300
|
||||||
|
|
||||||
|
3proxy (0.9.2-1) buster; urgency=medium
|
||||||
|
|
||||||
|
*3proxy 0.9.2 initial build
|
||||||
|
|
||||||
|
-- z3APA3A <3apa3a@3proxy.org> Thu, 19 Nov 2020 19:19:19 +0300
|
||||||
|
|
1
debian/compat
vendored
Normal file
1
debian/compat
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
9
|
4
debian/conffiles
vendored
Normal file
4
debian/conffiles
vendored
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
/usr/local/3proxy/conf/3proxy.cfg
|
||||||
|
/usr/local/3proxy/conf/add3proxyuser.sh
|
||||||
|
/usr/local/3proxy/conf/bandlimiters
|
||||||
|
/usr/local/3proxy/conf/counters
|
18
debian/control
vendored
Normal file
18
debian/control
vendored
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
Source: 3proxy
|
||||||
|
Maintainer: z3APA3A <3apa3a@3proxy.org>
|
||||||
|
Section: net
|
||||||
|
Priority: optional
|
||||||
|
Standards-Version: 4.0.0
|
||||||
|
Build-Depends: debhelper (>=10)
|
||||||
|
Homepage: https://3proxy.org/
|
||||||
|
Vcs-Git: https://github.com/z3APA3A/3proxy
|
||||||
|
Vcs-Browser: https://github.com/z3APA3A/3proxy
|
||||||
|
|
||||||
|
Package: 3proxy
|
||||||
|
Architecture: any
|
||||||
|
Depends: ${shlibs:Depends}, ${misc:Depends}
|
||||||
|
Description: tiny free proxy server
|
||||||
|
3Proxy tiny free proxy server is really tiny freeware proxy servers set.
|
||||||
|
It includes HTTP proxy with HTTPS and FTP support, SOCKSv4/SOCKSv4.5/SOCKSv5 proxy (socks/socks.exe), POP3 proxy, SMTP proxy, FTP proxy, caching DNS proxy, TCP and UDP portmappers.
|
||||||
|
You can use every proxy as a standalone program (socks, proxy, tcppm, udppm, pop3p) or use combined program (3proxy). Combined proxy additionally supports features like access control, bandwidth limiting, limiting daily/weekly/monthly traffic amount, proxy chaining, log rotation, syslog and ODBC logging, etc.
|
||||||
|
It's created to be small, simple and yet very functional.
|
20
debian/copyright
vendored
Normal file
20
debian/copyright
vendored
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||||||
|
Upstream-Name: 3proxy
|
||||||
|
Upstream-Contact: 3proxy@3proxy.org
|
||||||
|
Source: https://3proxy.org/
|
||||||
|
|
||||||
|
Files: *
|
||||||
|
Copyright: 2000-2020 3APA3A, Vladimir Dubrovin, 3proxy.org
|
||||||
|
License: BSD-3-clause or Apache or GPL-2+ or LGPL-2+
|
||||||
|
|
||||||
|
Files: src/libs/md*.*
|
||||||
|
Copyright: 1990,1991,1992 RSA Data Security, Inc
|
||||||
|
License: public-domain
|
||||||
|
|
||||||
|
Files: src/libs/regex.*
|
||||||
|
Copyright: Henry Spencer
|
||||||
|
License: public-domain
|
||||||
|
|
||||||
|
Files: src/libs/smbdes.c
|
||||||
|
Copyright: Andrew Tridgell 1998
|
||||||
|
License: GPL-2+
|
43
debian/postinst
vendored
Normal file
43
debian/postinst
vendored
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
if [ ! -f /usr/local/3proxy/conf/passwd ]; then \
|
||||||
|
touch /usr/local/3proxy/conf/passwd;\
|
||||||
|
fi
|
||||||
|
chown -R proxy:proxy /usr/local/3proxy
|
||||||
|
chmod 550 /usr/local/3proxy/
|
||||||
|
chmod 550 /usr/local/3proxy/conf/
|
||||||
|
chmod 440 /usr/local/3proxy/conf/*
|
||||||
|
if /bin/systemctl >/dev/null 2>&1; then \
|
||||||
|
/usr/sbin/update-rc.d 3proxy disable || true; \
|
||||||
|
/usr/sbin/chkconfig 3proxy off || true; \
|
||||||
|
/bin/systemctl enable 3proxy.service; \
|
||||||
|
elif [ -x /usr/sbin/update-rc.d ]; then \
|
||||||
|
/usr/sbin/update-rc.d 3proxy defaults; \
|
||||||
|
/usr/sbin/update-rc.d 3proxy enable; \
|
||||||
|
elif [ -x /usr/sbin/chkconfig ]; then \
|
||||||
|
/usr/sbin/chkconfig 3proxy on; \
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo ""
|
||||||
|
echo 3proxy installed.
|
||||||
|
if /bin/systemctl >/dev/null 2>&1; then \
|
||||||
|
/bin/systemctl stop 3proxy.service \
|
||||||
|
/bin/systemctl start 3proxy.service \
|
||||||
|
echo use ;\
|
||||||
|
echo " "systemctl start 3proxy.service ;\
|
||||||
|
echo to start proxy ;\
|
||||||
|
echo " "systemctl stop 3proxy.service ;\
|
||||||
|
echo to stop proxy ;\
|
||||||
|
elif [ -x /usr/sbin/service ]; then \
|
||||||
|
/usr/sbin/service 3proxy stop || true;\
|
||||||
|
/usr/sbin/service 3proxy start || true;\
|
||||||
|
echo " "service 3proxy start ;\
|
||||||
|
echo to start proxy ;\
|
||||||
|
echo " "service 3proxy stop ;\
|
||||||
|
echo to stop proxy ;\
|
||||||
|
fi
|
||||||
|
echo " "/usr/local/3proxy/conf/add3proxyuser.sh
|
||||||
|
echo to add users
|
||||||
|
echo ""
|
||||||
|
echo Default config uses Google\'s DNS.
|
||||||
|
echo It\'s recommended to use provider supplied DNS or install local recursor, e.g. pdns-recursor.
|
||||||
|
echo Configure preferred DNS in /usr/local/3proxy/conf/3proxy.cfg.
|
||||||
|
echo run \'/usr/local/3proxy/conf/add3proxyuser.sh admin password\' to configure \'admin\' user
|
4
debian/preinst
vendored
Normal file
4
debian/preinst
vendored
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
if [ -x /usr/sbin/useradd ]; then \
|
||||||
|
/usr/bin/getent group proxy >/dev/null || (/usr/sbin/groupadd -f -r proxy || true); \
|
||||||
|
/usr/bin/getent passwd proxy >/dev/null || (/usr/sbin/useradd -Mr -s /bin/false -g proxy -c 3proxy proxy || true); \
|
||||||
|
fi
|
16
debian/rules
vendored
Normal file
16
debian/rules
vendored
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
#!/usr/bin/make -f
|
||||||
|
|
||||||
|
%:
|
||||||
|
dh $@
|
||||||
|
|
||||||
|
override_dh_auto_build:
|
||||||
|
ln -s Makefile.Linux Makefile || true
|
||||||
|
dh_auto_build
|
||||||
|
|
||||||
|
override_dh_auto_clean:
|
||||||
|
find src/ -type f -name "*.o" -delete
|
||||||
|
find src/ -type f -name "Makefile.var" -delete
|
||||||
|
find bin/ -type f -executable -delete
|
||||||
|
rm -f Makefile
|
||||||
|
|
||||||
|
override_dh_usrlocal:
|
1
debian/source/format
vendored
Normal file
1
debian/source/format
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
3.0 (quilt)
|
@ -947,7 +947,7 @@ allowed traffic in Megabytes (MB). nocountin allows you to set exclusions.
|
|||||||
<li><A NAME="NEWVERSION">How to obtain latest 3proxy version</A>
|
<li><A NAME="NEWVERSION">How to obtain latest 3proxy version</A>
|
||||||
<p>
|
<p>
|
||||||
Latest version of 3proxy may be obtained
|
Latest version of 3proxy may be obtained
|
||||||
<A HREF="http://3proxy.org/">here</A>.
|
<A HREF="https://3proxy.org/">here</A>.
|
||||||
New version may have changes and incompatibilities with previous one in files
|
New version may have changes and incompatibilities with previous one in files
|
||||||
format or commands. Please, read CHANGELOG file and another documentation
|
format or commands. Please, read CHANGELOG file and another documentation
|
||||||
before installing new version.
|
before installing new version.
|
||||||
|
@ -1066,9 +1066,9 @@
|
|||||||
прокси-серверы для доступа к разным ресурсам. Эта возможность разбирается в
|
прокси-серверы для доступа к разным ресурсам. Эта возможность разбирается в
|
||||||
статьях
|
статьях
|
||||||
<br>Microsoft: Q296591 A Description of the Automatic Discovery Feature
|
<br>Microsoft: Q296591 A Description of the Automatic Discovery Feature
|
||||||
<br><a href="http://support.microsoft.com/default.aspx?scid=kb;EN-US;296591">http://support.microsoft.com/default.aspx?scid=kb;EN-US;296591</a>
|
<br><a href="https://support.microsoft.com/default.aspx?scid=kb;EN-US;296591">http://support.microsoft.com/default.aspx?scid=kb;EN-US;296591</a>
|
||||||
<br>Netscape: Navigator Proxy Auto-Config File Format
|
<br>Netscape: Navigator Proxy Auto-Config File Format
|
||||||
<br><a href="http://wp.netscape.com/eng/mozilla/2.0/relnotes/demo/proxy-live.html">http://wp.netscape.com/eng/mozilla/2.0/relnotes/demo/proxy-live.html</a>
|
<br><a href="https://wp.netscape.com/eng/mozilla/2.0/relnotes/demo/proxy-live.html">http://wp.netscape.com/eng/mozilla/2.0/relnotes/demo/proxy-live.html</a>
|
||||||
<li><a name="FTP"><i>Как настраивать FTP клиент</i></a>
|
<li><a name="FTP"><i>Как настраивать FTP клиент</i></a>
|
||||||
<p>
|
<p>
|
||||||
Настройка FTP клиента для работы через SOCKS прокси не отличается от настройки
|
Настройка FTP клиента для работы через SOCKS прокси не отличается от настройки
|
||||||
@ -1124,20 +1124,14 @@
|
|||||||
</p>
|
</p>
|
||||||
<li><a name="CAP"><i>Как использовать 3proxy с программой, не поддерживающей работу с прокси-сервером</i></a>
|
<li><a name="CAP"><i>Как использовать 3proxy с программой, не поддерживающей работу с прокси-сервером</i></a>
|
||||||
<p>
|
<p>
|
||||||
Можно использовать любую программу-редиректор, например,
|
Можно использовать любую программу-редиректор. 3proxy поддерживает исходящие
|
||||||
<a href="http://www.socks.permeo.com">SocksCAP</a> или
|
|
||||||
<a href="http://www.freecap.ru">FreeCAP</a>. 3proxy поддерживает исходящие
|
|
||||||
и обратные TCP и UDP соединения, но редиректоры могут иметь свои ограничения,
|
и обратные TCP и UDP соединения, но редиректоры могут иметь свои ограничения,
|
||||||
кроме того, некоторые плохо написаные приложения не поддаются "соксификации".
|
кроме того, некоторые плохо написаные приложения не поддаются "соксификации".
|
||||||
Если программе требуется обращаться к небольшому набору серверов
|
Если программе требуется обращаться к небольшому набору серверов
|
||||||
(например, игровых), то проблему можно решить с помощью портмаппинга.
|
(например, игровых), то проблему можно решить с помощью портмаппинга.
|
||||||
<li><a name="GAMES"><i>Как использовать 3proxy с играми</i></a>
|
<li><a name="GAMES"><i>Как использовать 3proxy с играми</i></a>
|
||||||
<p>
|
<p>
|
||||||
Оптимальный варинт - использовать соксификатор (<a href="#CAP">Как использовать
|
Если по каким-то причинам соксификатор не работает или недоступен,
|
||||||
3proxy с программой, не поддерживающей работу с прокси-сервером</a>).
|
|
||||||
<a href="http://www.freecap.ru/">FreeCap 3.13 </a> проверен с играми на движке
|
|
||||||
Unreal (включая Unreal Tournament), Half-Life (включая Counter-Strike) и
|
|
||||||
другими. Если по каким-то причинам соксификатор не работает или недоступен,
|
|
||||||
то необходимо использовать отображения портов (обычно игры,
|
то необходимо использовать отображения портов (обычно игры,
|
||||||
кроме mood-подобных, работают по протоколу UDP, надо использовать udppm).
|
кроме mood-подобных, работают по протоколу UDP, надо использовать udppm).
|
||||||
Нужно иметь ввиду, что для udppm требуется отдельный маппинг для каждого
|
Нужно иметь ввиду, что для udppm требуется отдельный маппинг для каждого
|
||||||
@ -1162,7 +1156,7 @@
|
|||||||
<li><a name="NEWVERSION"><i>Где взять свежую версию</i></a>
|
<li><a name="NEWVERSION"><i>Где взять свежую версию</i></a>
|
||||||
<p>
|
<p>
|
||||||
Свежую версию всегда можно взять
|
Свежую версию всегда можно взять
|
||||||
<a href="http://3proxy.ru/">здесь</a>. Обратите внимание,
|
<a href="https://3proxy.ru/">здесь</a>. Обратите внимание,
|
||||||
что в новой версии может измениться порядок лицензирования или команды
|
что в новой версии может измениться порядок лицензирования или команды
|
||||||
конфигурации, поэтому прежде чем устанавливать новую версии программы
|
конфигурации, поэтому прежде чем устанавливать новую версии программы
|
||||||
обязательно ознакомьтесь с документацией.
|
обязательно ознакомьтесь с документацией.
|
||||||
|
@ -138,7 +138,7 @@ wget to automate this task.
|
|||||||
configuration file
|
configuration file
|
||||||
.SH BUGS
|
.SH BUGS
|
||||||
Report all bugs to
|
Report all bugs to
|
||||||
.BR 3proxy@3proxy.ru
|
.BR 3proxy@3proxy.org
|
||||||
.SH SEE ALSO
|
.SH SEE ALSO
|
||||||
3proxy.cfg(3), proxy(8), ftppr(8), socks(8), pop3p(8), tcppm(8), udppm(8),
|
3proxy.cfg(3), proxy(8), ftppr(8), socks(8), pop3p(8), tcppm(8), udppm(8),
|
||||||
kill(1), syslogd(8),
|
kill(1), syslogd(8),
|
||||||
@ -148,4 +148,4 @@ https://3proxy.org/
|
|||||||
3APA3A is pronounced as \`\`zaraza\'\'.
|
3APA3A is pronounced as \`\`zaraza\'\'.
|
||||||
.SH AUTHORS
|
.SH AUTHORS
|
||||||
3proxy is designed by Vladimir 3APA3A Dubrovin
|
3proxy is designed by Vladimir 3APA3A Dubrovin
|
||||||
.RI ( 3proxy@3proxy.ru )
|
.RI ( 3proxy@3proxy.org )
|
||||||
|
@ -1055,7 +1055,7 @@ corruption and/or Content-Length chaging. Default is 1MB (1048576).
|
|||||||
|
|
||||||
.SH BUGS
|
.SH BUGS
|
||||||
Report all bugs to
|
Report all bugs to
|
||||||
.BR 3proxy@3proxy.ru
|
.BR 3proxy@3proxy.org
|
||||||
.SH SEE ALSO
|
.SH SEE ALSO
|
||||||
3proxy(8), proxy(8), ftppr(8), socks(8), pop3p(8), tcppm(8), udppm(8), syslogd(8),
|
3proxy(8), proxy(8), ftppr(8), socks(8), pop3p(8), tcppm(8), udppm(8), syslogd(8),
|
||||||
.br
|
.br
|
||||||
@ -1064,4 +1064,4 @@ Report all bugs to
|
|||||||
3APA3A is pronounced as \`\`zaraza\'\'.
|
3APA3A is pronounced as \`\`zaraza\'\'.
|
||||||
.SH AUTHORS
|
.SH AUTHORS
|
||||||
3proxy is designed by Vladimir 3APA3A Dubrovin
|
3proxy is designed by Vladimir 3APA3A Dubrovin
|
||||||
.RI ( 3proxy@3proxy.ru )
|
.RI ( 3proxy@3proxy.org )
|
||||||
|
@ -77,11 +77,11 @@ is user\'s login on this FTP server. Login itself may contain \'@\' sign.
|
|||||||
Only cleartext authentication is currently supported.
|
Only cleartext authentication is currently supported.
|
||||||
.SH BUGS
|
.SH BUGS
|
||||||
Report all bugs to
|
Report all bugs to
|
||||||
.BR 3proxy@3proxy.ru
|
.BR 3proxy@3proxy.org
|
||||||
.SH SEE ALSO
|
.SH SEE ALSO
|
||||||
3proxy(8), proxy(8), pop3p(8), socks(8), tcppm(8), udppm(8), syslogd(8),
|
3proxy(8), proxy(8), pop3p(8), socks(8), tcppm(8), udppm(8), syslogd(8),
|
||||||
.br
|
.br
|
||||||
https://3proxy.org/
|
https://3proxy.org/
|
||||||
.SH AUTHORS
|
.SH AUTHORS
|
||||||
3proxy is designed by Vladimir 3APA3A Dubrovin
|
3proxy is designed by Vladimir 3APA3A Dubrovin
|
||||||
.RI ( 3proxy@3proxy.ru )
|
.RI ( 3proxy@3proxy.org )
|
||||||
|
@ -73,11 +73,11 @@ authentication (APOP, CRAM-MD5, etc) requires challenge from server before
|
|||||||
we know which server to connect.
|
we know which server to connect.
|
||||||
.SH BUGS
|
.SH BUGS
|
||||||
Report all bugs to
|
Report all bugs to
|
||||||
.BR 3proxy@3proxy.ru
|
.BR 3proxy@3proxy.org
|
||||||
.SH SEE ALSO
|
.SH SEE ALSO
|
||||||
3proxy(8), ftppr(8), proxy(8), socks(8), tcppm(8), udppm(8), syslogd(8),
|
3proxy(8), ftppr(8), proxy(8), socks(8), tcppm(8), udppm(8), syslogd(8),
|
||||||
.br
|
.br
|
||||||
https://3proxy.org/
|
https://3proxy.org/
|
||||||
.SH AUTHORS
|
.SH AUTHORS
|
||||||
3proxy is designed by Vladimir 3APA3A Dubrovin
|
3proxy is designed by Vladimir 3APA3A Dubrovin
|
||||||
.RI ( 3proxy@3proxy.ru )
|
.RI ( 3proxy@3proxy.org )
|
||||||
|
@ -68,11 +68,11 @@ limit clients, use
|
|||||||
instead.
|
instead.
|
||||||
.SH BUGS
|
.SH BUGS
|
||||||
Report all bugs to
|
Report all bugs to
|
||||||
.BR 3proxy@3proxy.ru
|
.BR 3proxy@3proxy.org
|
||||||
.SH SEE ALSO
|
.SH SEE ALSO
|
||||||
3proxy(8), ftppr(8), socks(8), pop3p(8), tcppm(8), udppm(8), syslogd(8),
|
3proxy(8), ftppr(8), socks(8), pop3p(8), tcppm(8), udppm(8), syslogd(8),
|
||||||
.br
|
.br
|
||||||
https://3proxy.org/
|
https://3proxy.org/
|
||||||
.SH AUTHORS
|
.SH AUTHORS
|
||||||
3proxy is designed by Vladimir 3APA3A Dubrovin
|
3proxy is designed by Vladimir 3APA3A Dubrovin
|
||||||
.RI ( 3proxy@3proxy.ru )
|
.RI ( 3proxy@3proxy.org )
|
||||||
|
@ -74,11 +74,11 @@ authentication (CRAM-MD5, SPA, etc) requires challenge from server before
|
|||||||
we know which server to connect.
|
we know which server to connect.
|
||||||
.SH BUGS
|
.SH BUGS
|
||||||
Report all bugs to
|
Report all bugs to
|
||||||
.BR 3proxy@3proxy.ru
|
.BR 3proxy@3proxy.org
|
||||||
.SH SEE ALSO
|
.SH SEE ALSO
|
||||||
3proxy(8), ftppr(8), proxy(8), socks(8), tcppm(8), udppm(8), syslogd(8),
|
3proxy(8), ftppr(8), proxy(8), socks(8), tcppm(8), udppm(8), syslogd(8),
|
||||||
.br
|
.br
|
||||||
https://3proxy.org/
|
https://3proxy.org/
|
||||||
.SH AUTHORS
|
.SH AUTHORS
|
||||||
3proxy is designed by Vladimir 3APA3A Dubrovin
|
3proxy is designed by Vladimir 3APA3A Dubrovin
|
||||||
.RI ( 3proxy@3proxy.ru )
|
.RI ( 3proxy@3proxy.org )
|
||||||
|
@ -74,11 +74,11 @@ sufficient privileges). If you need to control access use
|
|||||||
instead.
|
instead.
|
||||||
.SH BUGS
|
.SH BUGS
|
||||||
Report all bugs to
|
Report all bugs to
|
||||||
.BR 3proxy@3proxy.ru
|
.BR 3proxy@3proxy.org
|
||||||
.SH SEE ALSO
|
.SH SEE ALSO
|
||||||
3proxy(8), proxy(8), ftppr(8), pop3p(8), tcppm(8), udppm(8), syslogd(8),
|
3proxy(8), proxy(8), ftppr(8), pop3p(8), tcppm(8), udppm(8), syslogd(8),
|
||||||
.br
|
.br
|
||||||
https://3proxy.org/
|
https://3proxy.org/
|
||||||
.SH AUTHORS
|
.SH AUTHORS
|
||||||
3proxy is designed by Vladimir 3APA3A Dubrovin
|
3proxy is designed by Vladimir 3APA3A Dubrovin
|
||||||
.RI ( 3proxy@3proxy.ru )
|
.RI ( 3proxy@3proxy.org )
|
||||||
|
@ -63,11 +63,11 @@ as a destination in client application. Connection is forwarded to
|
|||||||
.IR remote_host : remote_port
|
.IR remote_host : remote_port
|
||||||
.SH BUGS
|
.SH BUGS
|
||||||
Report all bugs to
|
Report all bugs to
|
||||||
.BR 3proxy@3proxy.ru
|
.BR 3proxy@3proxy.org
|
||||||
.SH SEE ALSO
|
.SH SEE ALSO
|
||||||
3proxy(8), proxy(8), ftppr(8), socks(8), pop3p(8), udppm(8), syslogd(8),
|
3proxy(8), proxy(8), ftppr(8), socks(8), pop3p(8), udppm(8), syslogd(8),
|
||||||
.br
|
.br
|
||||||
https://3proxy.org/
|
https://3proxy.org/
|
||||||
.SH AUTHORS
|
.SH AUTHORS
|
||||||
3proxy is designed by Vladimir 3APA3A Dubrovin
|
3proxy is designed by Vladimir 3APA3A Dubrovin
|
||||||
.RI ( 3proxy@3proxy.ru )
|
.RI ( 3proxy@3proxy.org )
|
||||||
|
@ -69,11 +69,11 @@ as a destination in client application. All datagrams are forwarded to
|
|||||||
.IR remote_host : remote_port
|
.IR remote_host : remote_port
|
||||||
.SH BUGS
|
.SH BUGS
|
||||||
Report all bugs to
|
Report all bugs to
|
||||||
.BR 3proxy@3proxy.ru
|
.BR 3proxy@3proxy.org
|
||||||
.SH SEE ALSO
|
.SH SEE ALSO
|
||||||
3proxy(8), proxy(8), ftppr(8), socks(8), pop3p(8), udppm(8), syslogd(8),
|
3proxy(8), proxy(8), ftppr(8), socks(8), pop3p(8), udppm(8), syslogd(8),
|
||||||
.br
|
.br
|
||||||
https://3proxy.org/
|
https://3proxy.org/
|
||||||
.SH AUTHORS
|
.SH AUTHORS
|
||||||
3proxy is designed by Vladimir 3APA3A Dubrovin
|
3proxy is designed by Vladimir 3APA3A Dubrovin
|
||||||
.RI ( 3proxy@3proxy.ru )
|
.RI ( 3proxy@3proxy.org )
|
||||||
|
2
rus.3ps
2
rus.3ps
@ -95,7 +95,7 @@ value {\n
|
|||||||
[end]
|
[end]
|
||||||
<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />\n
|
<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />\n
|
||||||
<pre><font size='-2'><b>
|
<pre><font size='-2'><b>
|
||||||
(c)3APA3A, Владимир Дубровин и <A href='http://3proxy.ru/'>3proxy.ru</A>\n
|
(c)3APA3A, Владимир Дубровин и <A href='https://3proxy.ru/'>3proxy.ru</A>\n
|
||||||
</b></font>\n
|
</b></font>\n
|
||||||
</td></tr></table></body></html>
|
</td></tr></table></body></html>
|
||||||
[end]
|
[end]
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
man/3proxy.8
|
man/3proxy.8
|
||||||
man/3proxy.cfg.3
|
man/3proxy.cfg.3
|
||||||
man/ftppr.8
|
man/ftppr.8
|
||||||
man/icqpr.8
|
|
||||||
man/pop3p.8
|
man/pop3p.8
|
||||||
man/proxy.8
|
man/proxy.8
|
||||||
man/smtpp.8
|
man/smtpp.8
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
3proxy (0.9.4-1) buster; urgency=medium
|
||||||
|
|
||||||
|
*3proxy 0.9.4 initial build
|
||||||
|
|
||||||
|
-- z3APA3A <3apa3a@3proxy.org> Fri, 02 Jul 2021 00:47:00 +0300
|
||||||
|
|
||||||
3proxy (0.9.3-1) buster; urgency=medium
|
3proxy (0.9.3-1) buster; urgency=medium
|
||||||
|
|
||||||
*3proxy 0.9.3 initial build
|
*3proxy 0.9.3 initial build
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
Name: 3proxy
|
Name: 3proxy
|
||||||
Version: 0.9.3
|
Version: 0.9.4
|
||||||
Release: 1
|
Release: 1
|
||||||
Summary: 3proxy tiny proxy server
|
Summary: 3proxy tiny proxy server
|
||||||
License: GPL/LGPL/Apache/BSD
|
License: GPL/LGPL/Apache/BSD
|
||||||
@ -51,7 +51,6 @@ make clean
|
|||||||
/usr/share/man/man3/3proxy.cfg.3
|
/usr/share/man/man3/3proxy.cfg.3
|
||||||
/usr/share/man/man8/3proxy.8
|
/usr/share/man/man8/3proxy.8
|
||||||
/usr/share/man/man8/ftppr.8
|
/usr/share/man/man8/ftppr.8
|
||||||
/usr/share/man/man8/icqpr.8
|
|
||||||
/usr/share/man/man8/pop3p.8
|
/usr/share/man/man8/pop3p.8
|
||||||
/usr/share/man/man8/proxy.8
|
/usr/share/man/man8/proxy.8
|
||||||
/usr/share/man/man8/smtpp.8
|
/usr/share/man/man8/smtpp.8
|
||||||
@ -62,7 +61,6 @@ make clean
|
|||||||
/usr/share/man/man3/3proxy.cfg.3.gz
|
/usr/share/man/man3/3proxy.cfg.3.gz
|
||||||
/usr/share/man/man8/3proxy.8.gz
|
/usr/share/man/man8/3proxy.8.gz
|
||||||
/usr/share/man/man8/ftppr.8.gz
|
/usr/share/man/man8/ftppr.8.gz
|
||||||
/usr/share/man/man8/icqpr.8.gz
|
|
||||||
/usr/share/man/man8/pop3p.8.gz
|
/usr/share/man/man8/pop3p.8.gz
|
||||||
/usr/share/man/man8/proxy.8.gz
|
/usr/share/man/man8/proxy.8.gz
|
||||||
/usr/share/man/man8/smtpp.8.gz
|
/usr/share/man/man8/smtpp.8.gz
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
3APA3A simpliest proxy server
|
3APA3A simpliest proxy server
|
||||||
(c) 2002-2016 by Vladimir Dubrovin <3proxy@3proxy.ru>
|
(c) 2002-2021 by Vladimir Dubrovin <3proxy@3proxy.org>
|
||||||
|
|
||||||
please read License Agreement
|
please read License Agreement
|
||||||
|
|
||||||
@ -12,6 +12,11 @@
|
|||||||
#ifndef NOPLUGINS
|
#ifndef NOPLUGINS
|
||||||
#include <dlfcn.h>
|
#include <dlfcn.h>
|
||||||
#endif
|
#endif
|
||||||
|
#else
|
||||||
|
#ifdef WITH_SSL
|
||||||
|
#include <openssl/applink.c>
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef DEFAULTCONFIG
|
#ifndef DEFAULTCONFIG
|
||||||
|
@ -10,7 +10,7 @@ BEGIN
|
|||||||
BEGIN
|
BEGIN
|
||||||
BLOCK "040904E4"
|
BLOCK "040904E4"
|
||||||
BEGIN
|
BEGIN
|
||||||
VALUE "Comments", "3proxy - tiny proxy server, http://3proxy.org/\0"
|
VALUE "Comments", "3proxy - tiny proxy server, https://3proxy.org/\0"
|
||||||
VALUE "CompanyName", "Vladimir Dubrovin\0"
|
VALUE "CompanyName", "Vladimir Dubrovin\0"
|
||||||
VALUE "FileDescription", "3proxy - tiny proxy server\0"
|
VALUE "FileDescription", "3proxy - tiny proxy server\0"
|
||||||
VALUE "FileVersion", RELEASE3PROXY
|
VALUE "FileVersion", RELEASE3PROXY
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
3APA3A simpliest proxy server
|
3APA3A simpliest proxy server
|
||||||
(c) 2002-2016 by Vladimir Dubrovin <3proxy@3proxy.ru>
|
(c) 2002-2021 by Vladimir Dubrovin <3proxy@3proxy.org>
|
||||||
|
|
||||||
please read License Agreement
|
please read License Agreement
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
3APA3A simpliest proxy server
|
3APA3A simpliest proxy server
|
||||||
(c) 2000-2016 by Vladimir Dubrovin <3proxy@3proxy.ru>
|
(c) 2000-2021 by Vladimir Dubrovin <3proxy@3proxy.org>
|
||||||
|
|
||||||
please read License Agreement
|
please read License Agreement
|
||||||
|
|
||||||
@ -655,8 +655,11 @@ CLEANRET:
|
|||||||
}
|
}
|
||||||
|
|
||||||
int radauth(struct clientparam * param){
|
int radauth(struct clientparam * param){
|
||||||
|
int res;
|
||||||
/*radsend(param, 0, 0);*/
|
/*radsend(param, 0, 0);*/
|
||||||
return radsend(param, 1, 0);
|
res = radsend(param, 1, 0);
|
||||||
|
if(!res && param->srv->logfunc == logradius)radsend(param, 0, 0);
|
||||||
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
void logradius(struct clientparam * param, const unsigned char *s) {
|
void logradius(struct clientparam * param, const unsigned char *s) {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
(c) 2002-2016 by Vladimir Dubrovin <3proxy@3proxy.ru>
|
(c) 2002-2021 by Vladimir Dubrovin <3proxy@3proxy.org>
|
||||||
|
|
||||||
please read License Agreement
|
please read License Agreement
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
3APA3A simpliest proxy server
|
3APA3A simpliest proxy server
|
||||||
(c) 2002-2016 by Vladimir Dubrovin <3proxy@3proxy.ru>
|
(c) 2002-2021 by Vladimir Dubrovin <3proxy@3proxy.org>
|
||||||
|
|
||||||
please read License Agreement
|
please read License Agreement
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
3APA3A simpliest proxy server
|
3APA3A simpliest proxy server
|
||||||
(c) 2002-2016 by Vladimir Dubrovin <3proxy@3proxy.ru>
|
(c) 2002-2021 by Vladimir Dubrovin <3proxy@3proxy.org>
|
||||||
|
|
||||||
please read License Agreement
|
please read License Agreement
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
(c) 2002-2016 by Vladimir Dubrovin <3proxy@3proxy.ru>
|
(c) 2002-2021 by Vladimir Dubrovin <3proxy@3proxy.org>
|
||||||
|
|
||||||
please read License Agreement
|
please read License Agreement
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
3APA3A simpliest proxy server
|
3APA3A simpliest proxy server
|
||||||
(c) 2002-2016 by Vladimir Dubrovin <3proxy@3proxy.ru>
|
(c) 2002-2021 by Vladimir Dubrovin <3proxy@3proxy.org>
|
||||||
|
|
||||||
please read License Agreement
|
please read License Agreement
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
(c) 2002-2016 by Vladimir Dubrovin <3proxy@3proxy.ru>
|
(c) 2002-2021 by Vladimir Dubrovin <3proxy@3proxy.org>
|
||||||
|
|
||||||
please read License Agreement
|
please read License Agreement
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
3APA3A simpliest proxy server
|
3APA3A simpliest proxy server
|
||||||
(c) 2002-2016 by Vladimir Dubrovin <3proxy@3proxy.ru>
|
(c) 2002-2021 by Vladimir Dubrovin <3proxy@3proxy.org>
|
||||||
|
|
||||||
please read License Agreement
|
please read License Agreement
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
3APA3A simpliest proxy server
|
3APA3A simpliest proxy server
|
||||||
(c) 2002-2020 by Vladimir Dubrovin <3proxy@3proxy.ru>
|
(c) 2002-2021 by Vladimir Dubrovin <3proxy@3proxy.org>
|
||||||
|
|
||||||
please read License Agreement
|
please read License Agreement
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
3APA3A simpliest proxy server
|
3APA3A simpliest proxy server
|
||||||
(c) 2002-2016 by Vladimir Dubrovin <3proxy@3proxy.ru>
|
(c) 2002-2021 by Vladimir Dubrovin <3proxy@3proxy.org>
|
||||||
|
|
||||||
please read License Agreement
|
please read License Agreement
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
3APA3A simpliest proxy server
|
3APA3A simpliest proxy server
|
||||||
(c) 2002-2016 by Vladimir Dubrovin <3proxy@3proxy.ru>
|
(c) 2002-2021 by Vladimir Dubrovin <3proxy@3proxy.org>
|
||||||
|
|
||||||
please read License Agreement
|
please read License Agreement
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
3APA3A simpliest proxy server
|
3APA3A simpliest proxy server
|
||||||
(c) 2002-2016 by Vladimir Dubrovin <3proxy@3proxy.ru>
|
(c) 2002-2021 by Vladimir Dubrovin <3proxy@3proxy.org>
|
||||||
|
|
||||||
please read License Agreement
|
please read License Agreement
|
||||||
|
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
3APA3A simpliest proxy server
|
(c) 2007-2021 by Vladimir Dubrovin <3proxy@3proxy.org>
|
||||||
(c) 2007-2008 by ZARAZA <3APA3A@security.nnov.ru>
|
|
||||||
|
|
||||||
please read License Agreement
|
please read License Agreement
|
||||||
|
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
3APA3A simpliest proxy server
|
(c) 2007-2021 by Vladimir Dubrovin <3proxy@3proxy.org>
|
||||||
(c) 2007-2008 by ZARAZA <3APA3A@security.nnov.ru>
|
|
||||||
|
|
||||||
please read License Agreement
|
please read License Agreement
|
||||||
|
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
/*
|
||||||
|
(c) 2002-2021 by Vladimir Dubrovin <3proxy@3proxy.org>
|
||||||
|
|
||||||
|
please read License Agreement
|
||||||
|
|
||||||
|
*/
|
||||||
|
|
||||||
#define _CRT_SECURE_NO_WARNINGS
|
#define _CRT_SECURE_NO_WARNINGS
|
||||||
|
|
||||||
@ -14,9 +20,6 @@
|
|||||||
#include <openssl/pem.h>
|
#include <openssl/pem.h>
|
||||||
#include <openssl/ssl.h>
|
#include <openssl/ssl.h>
|
||||||
#include <openssl/err.h>
|
#include <openssl/err.h>
|
||||||
#ifdef WIN32
|
|
||||||
#include <openssl/applink.c>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "../../proxy.h"
|
#include "../../proxy.h"
|
||||||
#include "my_ssl.h"
|
#include "my_ssl.h"
|
||||||
@ -104,7 +107,7 @@ void del_ext(X509 *dst_cert, int nid, int where){
|
|||||||
SSL_CERT ssl_copy_cert(SSL_CERT cert)
|
SSL_CERT ssl_copy_cert(SSL_CERT cert)
|
||||||
{
|
{
|
||||||
int err = -1;
|
int err = -1;
|
||||||
FILE *fcache;
|
BIO *fcache;
|
||||||
X509 *src_cert = (X509 *) cert;
|
X509 *src_cert = (X509 *) cert;
|
||||||
X509 *dst_cert = NULL;
|
X509 *dst_cert = NULL;
|
||||||
|
|
||||||
@ -129,16 +132,16 @@ SSL_CERT ssl_copy_cert(SSL_CERT cert)
|
|||||||
bin2hex(hash_sha1, 20, hash_name_sha1, sizeof(hash_name_sha1));
|
bin2hex(hash_sha1, 20, hash_name_sha1, sizeof(hash_name_sha1));
|
||||||
sprintf(cache_name, "%s%s.pem", cert_path, hash_name_sha1);
|
sprintf(cache_name, "%s%s.pem", cert_path, hash_name_sha1);
|
||||||
/* check if certificate is already cached */
|
/* check if certificate is already cached */
|
||||||
fcache = fopen(cache_name, "rb");
|
fcache = BIO_new_file(cache_name, "rb");
|
||||||
if ( fcache != NULL ) {
|
if ( fcache != NULL ) {
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
flock(fileno(fcache), LOCK_SH);
|
flock(BIO_get_fd(fcache, NULL), LOCK_SH);
|
||||||
#endif
|
#endif
|
||||||
dst_cert = PEM_read_X509(fcache, &dst_cert, NULL, NULL);
|
dst_cert = PEM_read_bio_X509(fcache, &dst_cert, NULL, NULL);
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
flock(fileno(fcache), LOCK_UN);
|
flock(BIO_get_fd(fcache, NULL), LOCK_UN);
|
||||||
#endif
|
#endif
|
||||||
fclose(fcache);
|
BIO_free(fcache);
|
||||||
if ( dst_cert != NULL ){
|
if ( dst_cert != NULL ){
|
||||||
return dst_cert;
|
return dst_cert;
|
||||||
}
|
}
|
||||||
@ -174,16 +177,16 @@ SSL_CERT ssl_copy_cert(SSL_CERT cert)
|
|||||||
|
|
||||||
/* write to cache */
|
/* write to cache */
|
||||||
|
|
||||||
fcache = fopen(cache_name, "wb");
|
fcache = BIO_new_file(cache_name, "wb");
|
||||||
if ( fcache != NULL ) {
|
if ( fcache != NULL ) {
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
flock(fileno(fcache), LOCK_EX);
|
flock(BIO_get_fd(fcache, NULL), LOCK_EX);
|
||||||
#endif
|
#endif
|
||||||
PEM_write_X509(fcache, dst_cert);
|
PEM_write_bio_X509(fcache, dst_cert);
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
flock(fileno(fcache), LOCK_UN);
|
flock(BIO_get_fd(fcache, NULL), LOCK_UN);
|
||||||
#endif
|
#endif
|
||||||
fclose(fcache);
|
BIO_free(fcache);
|
||||||
}
|
}
|
||||||
return dst_cert;
|
return dst_cert;
|
||||||
}
|
}
|
||||||
@ -414,50 +417,64 @@ int ssl_file_init = 0;
|
|||||||
|
|
||||||
void ssl_init(void)
|
void ssl_init(void)
|
||||||
{
|
{
|
||||||
FILE *f;
|
BIO *f;
|
||||||
static char fname[200];
|
static char fname[200];
|
||||||
|
|
||||||
if(!ssl_file_init++)pthread_mutex_init(&ssl_file_mutex, NULL);
|
if(!ssl_file_init++)pthread_mutex_init(&ssl_file_mutex, NULL);
|
||||||
|
|
||||||
pthread_mutex_lock(&ssl_file_mutex);
|
pthread_mutex_lock(&ssl_file_mutex);
|
||||||
thread_setup();
|
thread_setup();
|
||||||
|
|
||||||
SSLeay_add_ssl_algorithms();
|
SSLeay_add_ssl_algorithms();
|
||||||
SSL_load_error_strings();
|
SSL_load_error_strings();
|
||||||
|
|
||||||
sprintf(fname, "%.128s3proxy.pem", cert_path);
|
sprintf(fname, "%.128s3proxy.pem", cert_path);
|
||||||
f = fopen(fname, "r");
|
f = BIO_new_file(fname, "r");
|
||||||
if ( f != NULL ) {
|
if ( f != NULL ) {
|
||||||
PEM_read_X509(f, &CA_cert, NULL, NULL);
|
if(!(CA_cert=PEM_read_bio_X509(f, NULL, NULL, NULL))){
|
||||||
fclose(f);
|
unsigned long err;
|
||||||
|
err=ERR_get_error();
|
||||||
|
fprintf(stderr, "failed to read: %s: [%lu] %s\n", fname, err, ERR_error_string(err, NULL));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
BIO_free(f);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
fprintf(stderr, "failed to open: %s\n", fname);
|
fprintf(stderr, "failed to open: %s\n", fname);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
name = X509_get_subject_name(CA_cert);
|
name = X509_get_subject_name(CA_cert);
|
||||||
|
|
||||||
sprintf(fname, "%.128s3proxy.key", cert_path);
|
sprintf(fname, "%.128s3proxy.key", cert_path);
|
||||||
f = fopen(fname, "rb");
|
f = BIO_new_file(fname, "rb");
|
||||||
if ( f != NULL ) {
|
if ( f != NULL ) {
|
||||||
CA_key = PEM_read_PrivateKey(f, &CA_key, NULL, NULL);
|
CA_key = PEM_read_bio_PrivateKey(f, NULL, NULL, NULL);
|
||||||
fclose(f);
|
if(!CA_key){
|
||||||
|
unsigned long err;
|
||||||
|
err=ERR_get_error();
|
||||||
|
fprintf(stderr, "failed to read: %s: [%lu] %s\n", fname, err, ERR_error_string(err, NULL));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
BIO_free(f);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
fprintf(stderr, "failed to open: %s\n", fname);
|
fprintf(stderr, "failed to open: %s\n", fname);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
sprintf(fname, "%.128sserver.key", cert_path);
|
sprintf(fname, "%.128sserver.key", cert_path);
|
||||||
f = fopen(fname, "rb");
|
f = BIO_new_file(fname, "rb");
|
||||||
if ( f != NULL ) {
|
if ( f != NULL ) {
|
||||||
server_key = PEM_read_PrivateKey(f, &server_key, NULL, NULL);
|
server_key = PEM_read_bio_PrivateKey(f, &server_key, NULL, NULL);
|
||||||
fclose(f);
|
if(!server_key){
|
||||||
|
unsigned long err;
|
||||||
|
err=ERR_get_error();
|
||||||
|
fprintf(stderr, "failed to read: %s: [%lu] %s\n", fname, err, ERR_error_string(err, NULL));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
BIO_free(f);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
fprintf(stderr, "failed to open: %s\n", fname);
|
fprintf(stderr, "failed to open: %s\n", fname);
|
||||||
}
|
}
|
||||||
if(!CA_cert || !CA_key || !server_key){
|
|
||||||
fprintf(stderr, "failed to init SSL certificate / keys\n");
|
|
||||||
}
|
|
||||||
|
|
||||||
bio_err=BIO_new_fp(stderr,BIO_NOCLOSE);
|
bio_err=BIO_new_fp(stderr,BIO_NOCLOSE);
|
||||||
pthread_mutex_unlock(&ssl_file_mutex);
|
pthread_mutex_unlock(&ssl_file_mutex);
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
3APA3A simpliest proxy server
|
(c) 2007-2021 by Vladimir Dubrovin <3proxy@3proxy.org>
|
||||||
(c) 2007-2008 by ZARAZA <3APA3A@security.nnov.ru>
|
|
||||||
|
|
||||||
please read License Agreement
|
please read License Agreement
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
3APA3A simpliest proxy server
|
3APA3A simpliest proxy server
|
||||||
(c) 2002-2017 by Vladimir Dubrovin <3proxy@3proxy.ru>
|
(c) 2002-2021 by Vladimir Dubrovin <3proxy@3proxy.org>
|
||||||
|
|
||||||
please read License Agreement
|
please read License Agreement
|
||||||
|
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
3APA3A simpliest proxy server
|
(c) 2007-2021 by Vladimir Dubrovin <3proxy@3proxy.org>
|
||||||
(c) 2007-2008 by ZARAZA <3APA3A@security.nnov.ru>
|
|
||||||
|
|
||||||
please read License Agreement
|
please read License Agreement
|
||||||
|
|
||||||
|
@ -1,31 +0,0 @@
|
|||||||
3proxy 0.6 Windows Authentication Plugin Public License Agreement
|
|
||||||
|
|
||||||
This software provided "as is" without any guaranties or support.
|
|
||||||
|
|
||||||
This software is FREEWARE. You can use it under terms of current version
|
|
||||||
of GNU GPL (General Public License) available from
|
|
||||||
http://www.gnu.org/licenses/gpl.txt or under conditions below:
|
|
||||||
|
|
||||||
1. You are granted non-exclusive rights to compile, modify, use and
|
|
||||||
re-distribute this program.
|
|
||||||
2. In case this software is redistributed in binary form, source code
|
|
||||||
MUST be available for user for free.
|
|
||||||
3. In case this software redistributed embedded in hardware device or
|
|
||||||
pre-installed version of operation system and source code is not available,
|
|
||||||
documentation MUST refer to http://www.security.nnov.ru/ as a source of
|
|
||||||
software.
|
|
||||||
4. In case this software is modified or is used as a part of another project
|
|
||||||
license MUST NOT be modified.
|
|
||||||
5. Authors of this software MAY change terms of this license for future
|
|
||||||
versions of this product.
|
|
||||||
|
|
||||||
(c) 2000-2009 by 3APA3A (3APA3A@security.nnov.ru)
|
|
||||||
(c) 2000-2009 by SECURITY.NNOV (http://www.security.nnov.ru)
|
|
||||||
(c) 2000-2009 by Vladimir Dubrovin (vlad@sandy.ru)
|
|
||||||
|
|
||||||
|
|
||||||
This software uses:
|
|
||||||
RSA Data Security, Inc. MD4 Message-Digest Algorithm
|
|
||||||
RSA Data Security, Inc. MD5 Message-Digest Algorithm
|
|
||||||
|
|
||||||
$Id: copying,v 1.1 2006/02/13 16:08:03 vlad Exp $
|
|
@ -1,6 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
3APA3A simpliest proxy server
|
(c) 2007-2021 by Vladimir Dubrovin <3proxy@3proxy.org>
|
||||||
(c) 2007-2008 by ZARAZA <3APA3A@security.nnov.ru>
|
|
||||||
|
|
||||||
please read License Agreement
|
please read License Agreement
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
3APA3A simpliest proxy server
|
3APA3A simpliest proxy server
|
||||||
(c) 2002-2016 by Vladimir Dubrovin <3proxy@3proxy.ru>
|
(c) 2002-2021 by Vladimir Dubrovin <3proxy@3proxy.org>
|
||||||
|
|
||||||
please read License Agreement
|
please read License Agreement
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
3APA3A simpliest proxy server
|
3APA3A simpliest proxy server
|
||||||
(c) 2002-2016 by Vladimir Dubrovin <3proxy@3proxy.ru>
|
(c) 2002-2021 by Vladimir Dubrovin <3proxy@3proxy.org>
|
||||||
|
|
||||||
please read License Agreement
|
please read License Agreement
|
||||||
|
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
3APA3A simpliest proxy server
|
3APA3A simpliest proxy server
|
||||||
(c) 2002-2016 by Vladimir Dubrovin <3proxy@3proxy.ru>
|
(c) 2002-2021 by Vladimir Dubrovin <3proxy@3proxy.org>
|
||||||
|
|
||||||
please read License Agreement
|
please read License Agreement
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define COPYRIGHT "(c)3APA3A, Vladimir Dubrovin & 3proxy.ru\n"\
|
#define COPYRIGHT "(c)3APA3A, Vladimir Dubrovin & 3proxy.org\n"\
|
||||||
"Documentation and sources: http://3proxy.ru/\n"\
|
"Documentation and sources: https://3proxy.org/\n"\
|
||||||
"Please read license agreement in \'copying\' file.\n"\
|
"Please read license agreement in \'copying\' file.\n"\
|
||||||
"You may not use this program without accepting license agreement"
|
"You may not use this program without accepting license agreement"
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
3APA3A simpliest proxy server
|
3APA3A simpliest proxy server
|
||||||
(c) 2002-2017 by Vladimir Dubrovin <3proxy@3proxy.ru>
|
(c) 2002-2021 by Vladimir Dubrovin <3proxy@3proxy.org>
|
||||||
|
|
||||||
please read License Agreement
|
please read License Agreement
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
3APA3A simpliest proxy server
|
3APA3A simpliest proxy server
|
||||||
(c) 2002-2016 by Vladimir Dubrovin <3proxy@3proxy.ru>
|
(c) 2002-2021 by Vladimir Dubrovin <3proxy@3proxy.org>
|
||||||
|
|
||||||
please read License Agreement
|
please read License Agreement
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
3APA3A simpliest proxy server
|
3APA3A simpliest proxy server
|
||||||
(c) 2002-2016 by Vladimir Dubrovin <3proxy@3proxy.ru>
|
(c) 2002-2021 by Vladimir Dubrovin <3proxy@3proxy.org>
|
||||||
|
|
||||||
please read License Agreement
|
please read License Agreement
|
||||||
*/
|
*/
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
3APA3A simpliest proxy server
|
3APA3A simpliest proxy server
|
||||||
(c) 2002-2020 by Vladimir Dubrovin <3proxy@3proxy.ru>
|
(c) 2002-2021 by Vladimir Dubrovin <3proxy@3proxy.org>
|
||||||
|
|
||||||
please read License Agreement
|
please read License Agreement
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
3APA3A simpliest proxy server
|
3APA3A simpliest proxy server
|
||||||
(c) 2002-2016 by Vladimir Dubrovin <3proxy@3proxy.ru>
|
(c) 2002-2021 by Vladimir Dubrovin <3proxy@3proxy.org>
|
||||||
|
|
||||||
please read License Agreement
|
please read License Agreement
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
3APA3A simpliest proxy server
|
3APA3A simpliest proxy server
|
||||||
(c) 2002-2016 by Vladimir Dubrovin <3proxy@3proxy.ru>
|
(c) 2002-2021 by Vladimir Dubrovin <3proxy@3proxy.org>
|
||||||
|
|
||||||
please read License Agreement
|
please read License Agreement
|
||||||
|
|
||||||
@ -61,9 +61,9 @@ unsigned char * strings[] = {
|
|||||||
"is coded right now. What you see is a part of work that is done\n"
|
"is coded right now. What you see is a part of work that is done\n"
|
||||||
"already.\n"
|
"already.\n"
|
||||||
"<p>Please send all your comments to\n"
|
"<p>Please send all your comments to\n"
|
||||||
"<A HREF=\"mailto:3proxy@security.nnov.ru\">3proxy@security.nnov.ru</A>\n"
|
"<A HREF=\"mailto:3proxy@3proxy.org\">3proxy@3proxy.org</A>\n"
|
||||||
"<p>Documentation:\n"
|
"<p>Documentation:\n"
|
||||||
"<A HREF=\"http://3proxy.ru/\">http://3proxy.ru/</A>\n"
|
"<A HREF=\"https://3proxy.org/\">http://3proxy.org/</A>\n"
|
||||||
"</tr></td></table>",
|
"</tr></td></table>",
|
||||||
/* 36 */ NULL,
|
/* 36 */ NULL,
|
||||||
/* 37 */ NULL,
|
/* 37 */ NULL,
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
3APA3A simpliest proxy server
|
3APA3A simpliest proxy server
|
||||||
(c) 2002-2016 by Vladimir Dubrovin <3proxy@3proxy.ru>
|
(c) 2002-2021 by Vladimir Dubrovin <3proxy@3proxy.org>
|
||||||
|
|
||||||
please read License Agreement
|
please read License Agreement
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
3APA3A simpliest proxy server
|
3APA3A simpliest proxy server
|
||||||
(c) 2002-2016 by Vladimir Dubrovin <3proxy@3proxy.ru>
|
(c) 2002-2021 by Vladimir Dubrovin <3proxy@3proxy.org>
|
||||||
|
|
||||||
please read License Agreement
|
please read License Agreement
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
3APA3A simpliest proxy server
|
3APA3A simpliest proxy server
|
||||||
(c) 2002-2016 by Vladimir Dubrovin <3proxy@3proxy.ru>
|
(c) 2002-2021 by Vladimir Dubrovin <3proxy@3proxy.org>
|
||||||
|
|
||||||
please read License Agreement
|
please read License Agreement
|
||||||
|
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
#ifndef VERSION
|
#ifndef VERSION
|
||||||
#define VERSION "3proxy-0.9.3"
|
#define VERSION "3proxy-0.9.4"
|
||||||
#endif
|
#endif
|
||||||
#ifndef BUILDDATE
|
#ifndef BUILDDATE
|
||||||
#define BUILDDATE ""
|
#define BUILDDATE ""
|
||||||
#endif
|
#endif
|
||||||
#define MAJOR3PROXY 0
|
#define MAJOR3PROXY 0
|
||||||
#define SUBMAJOR3PROXY 9
|
#define SUBMAJOR3PROXY 9
|
||||||
#define MINOR3PROXY 3
|
#define MINOR3PROXY 4
|
||||||
#define SUBMINOR3PROXY 0
|
#define SUBMINOR3PROXY 0
|
||||||
#define RELEASE3PROXY "3proxy-0.9.3(" BUILDDATE ")\0"
|
#define RELEASE3PROXY "3proxy-0.9.4(" BUILDDATE ")\0"
|
||||||
#define YEAR3PROXY "2021"
|
#define YEAR3PROXY "2021"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
3APA3A simpliest proxy server
|
3APA3A simpliest proxy server
|
||||||
(c) 2002-2016 by Vladimir Dubrovin <3proxy@3proxy.ru>
|
(c) 2002-2021 by Vladimir Dubrovin <3proxy@3proxy.org>
|
||||||
|
|
||||||
please read License Agreement
|
please read License Agreement
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user