Use syslog for non-chroot configuration, support MacOS launchd

This commit is contained in:
Vladimir Dubrovin committed 2026-04-08 19:21:31 +03:00
1 parent 44c86236cd
commit d8d3d8cc1b
11 files changed
+376 -11

No files matched your search

+49 -4
View File
@@ -21,10 +21,10 @@ Devel branch - 3proxy 10 (don't use it)
* Windows installation
3proxy --install
3proxy [path_to_config_file] --install
installs and starts proxy as Windows service
(config file should be located in the same directory)
(config file should be located in the same directory or may be optionally specified)
3proxy --remove
@@ -33,13 +33,14 @@ Devel branch - 3proxy 10 (don't use it)
* To build in Linux
install git and build-essential packages, use
With Makefile:
<pre>
git clone https://github.com/z3apa3a/3proxy
cd 3proxy
ln -s Makefile.Linux Makefile
make
sudo make install
</pre>
Default configuration (for Linux/Unix):
3proxy uses 2 configuration files:
@@ -58,15 +59,59 @@ usage: /etc/3proxy/conf/add3proxyuser.sh username password [day_limit] [bandwidt
or modify /etc/3proxy/conf/ files directly.
With CMake:
<pre>
git clone https://github.com/z3apa3a/3proxy
cd 3proxy
mkdir build && cd build
cmake ..
cmake --build .
sudo cmake --install .
</pre>
CMake does not use chroot configuration, config file is /etc/3proxy/3proxy.cfg
* For MacOS X / FreeBSD / *BSD
With Makefile:
<pre>
git clone https://github.com/z3apa3a/3proxy
cd 3proxy
ln -s Makefile.FreeBSD Makefile
make
</pre>
(binaries are in bin/ directory)
With CMake (recommended):
<pre>
git clone https://github.com/z3apa3a/3proxy
cd 3proxy
mkdir build && cd build
cmake ..
cmake --build .
sudo cmake --install .
</pre>
This installs binaries to /usr/local/bin/, configuration to /etc/3proxy/,
plugins to /usr/local/lib/3proxy/, rc scripts to rc.d for BSD and launchd plist to /Library/LaunchDaemons/ for MacOS.
Service management on macOS:
<pre>
# Load and start service
sudo launchctl load /Library/LaunchDaemons/org.3proxy.3proxy.plist
# Stop service
sudo launchctl stop org.3proxy.3proxy
# Start service
sudo launchctl start org.3proxy.3proxy
# Unload and disable service
sudo launchctl unload /Library/LaunchDaemons/org.3proxy.3proxy.plist
</pre>
Features:
1. General
+ IPv6 support for incoming and outgoing connection,