zapret4rocket/3proxy.cfg
2025-01-17 00:01:16 +03:00

60 lines
1.5 KiB
INI

# Specify valid name servers. You can locate them on your VPS in /etc/resolv.conf
#
nserver 8.8.8.8
nserver 8.8.4.4
nserver 1.1.1.1
nserver 1.0.0.1
#Leave default cache size for DNS requests:
#
nscache 65536
#Leave default timeout as well:
#
timeouts 1 5 30 60 180 1800 15 60
## Add users in below formats:
#user:CL:password
#user:CR:encrypted_password
zeefeer:CL:zeefeer
#users $/etc/3proxy/.proxyauth
#Specify daemon as a start mode
#
daemon
#Logs path and log format. Creation date will be added to a log name
#log /dev/null
#
log /var/log/3proxy/3proxy.log
logformat "- +_L%t.%. %N.%p %E %U %C:%c %R:%r %O %I %h %T"
#Compress logs using gzip
#
archiver gz /usr/bin/gzip %F
#store the logs for 30 days
rotate 1
#added authentication caching to make life easier
authcache user 60
# Start new ACLs
#enable strong authorization. To disable authentication, simply change to 'auth none'
auth strong cache
#restrict access for ports via http(s)-proxy and deny access to local interfaces
deny * * 127.0.0.0/8,192.168.0.0/24
#allow * * * 80-88,8080-8088 HTTP
#allow * * * 443,8443 HTTPS
# allow SOCKS connection to all ports
# allow * * * 1-65535 CONNECT
#allow * * * 1-65535 HTTPS
#HTTP Proxy
# Use default ACLs, don't need to flush
#proxy -n -p9999 -a
#SOCKS
flush
auth strong cache
socks -p11223
#Enable admin web-ui on specified port, only allow connection from loopback interface (127.0/8) & intranet's admin user (10/8)
#flush
#auth iponly strong cache
#allow * * 127.0.0.0/8
#allow admin * 10.0.0.0/8
#admin -p2525