Created
May 21, 2020 11:57
-
-
Save prescience-data/edd9946b9a229ec61fa17e25542f55ca to your computer and use it in GitHub Desktop.
Demo config for 3proxy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/3proxy | |
system "echo 3proxy up!" | |
# you may use system to execute some external command if proxy starts | |
nserver 9.9.9.9 | |
nserver 149.112.112.112 | |
nscache 65536 | |
timeouts 1 5 30 60 180 1800 15 60 | |
users {YOUR_DESIRED_USERNAME}:CL:{YOUR_PASSWORD} | |
# <CR> is md5-crypt and <CL> is cleartext | |
#daemon | |
# now we will not depend on any console (daemonize). daemon must be given | |
# before any significant command on *nix. | |
service | |
# service is required under NT if you want 3proxy to start as service | |
log C:\Users\{YOUR_WINDOWS_USERNAME}\Proxy\logs\%Y%m%d.log D | |
logformat "- +_L%t.%. %Y-%m-%d %N.%p %E %U %C:%c %R:%r %O %I %h %T" | |
archiver rar rar a -df -inul %A %F | |
rotate 30 | |
# sharing access to internet | |
external 192.168.0.10 # <--- USE YOUR DESIRED IP HERE | |
# external is address 3proxy uses for outgoing connections. 0.0.0.0 means any | |
# interface. Using 0.0.0.0 is not good because it allows to connect to 127.0.0.1 | |
internal 127.0.0.1 | |
# internal is address of interface proxy will listen for incoming requests | |
# 127.0.0.1 means only localhost will be able to use this proxy. This is | |
# address you should specify for clients as proxy IP. | |
# You MAY use 0.0.0.0 but you shouldn't, because it's a chance for you to | |
# have open proxy in your network in this case. | |
########### DNSPR ########### | |
auth none | |
# no authentication is requires | |
dnspr | |
########### SOCKS5 ########### | |
auth strong | |
flush | |
allow proxy_user | |
maxconn 20 | |
socks | |
# for socks we will use password authentication and different access control - | |
# we flush previously configured ACL list and create new one to allow users | |
# test and 3APA3A to connect from any location |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment