Vladimir Dubrovin
c98621aeef
Always select between IPV6_BOUND_IF and IP_BOUND_IF
2022-06-29 10:35:17 +03:00
Vladimir Dubrovin
3dc698eccd
Fix compilation issues
2022-06-29 10:18:36 +03:00
Vladimir Dubrovin
c1beceb24b
Support IP_BOUND_IF on MacOS
2022-06-28 12:50:48 +03:00
Vladimir Dubrovin
4ad05d1565
add handleredirect() to symbols
2022-06-24 10:44:28 +03:00
Vladimir Dubrovin
55d1bbe155
Grace delay feature added
...
`proxy -g8000,3,10`
First parameter is average read size we want to keep, second parameter is
minimal number of packets in the same direction to apply algorythm,
last value is delay added after polling and prior to reading data.
An example above adds 10 millisecond delay before reading data if average
polling size is below 8000 bytes and 3 read operations are made in the same
direction. It's specially usefule with splice. `logdump 1 1` is useful
to see how grace delays work, choose delay value to avoid filling the read
pipe/buffer (typically 64K) but keep the request sizes close to chosen average
on large file upload/download.
2022-05-19 18:51:02 +03:00
Vladimir Dubrovin
8a8622b30f
FIX: SSLPlugin for tcppm
2022-05-19 15:42:18 +03:00
Vladimir Dubrovin
1cf169b7ae
FIX: SSLPlugin with SOCKS
2022-05-19 13:26:52 +03:00
Vladimir Dubrovin
d20e76bbc9
FIX: SSLPlugin with http proxy
2022-05-19 11:49:19 +03:00
Vladimir Dubrovin
468124f55c
Fix SSLPlugin with HTTP proxy
2022-05-18 18:14:24 +03:00
Vladimir Dubrovin
17f07f2053
Update udppm.c
2022-04-25 16:45:49 +03:00
Vladimir Dubrovin
6d77141ecc
Update socks.c
2022-04-25 13:09:55 +03:00
Vladimir Dubrovin
7e681bbacd
Update common.c
...
Process failed connect more correcly
2022-04-07 20:19:49 +03:00
Vladimir Dubrovin
266e62644c
Fix RADIUS Login-Service/Login-TCP-Port length
2022-02-22 15:45:23 +03:00
Vladimir Dubrovin
f53b0eb985
fix invalid length in previous commit
2021-11-25 12:21:06 +03:00
Vladimir Dubrovin
bd1dcacf73
Fix domain name reply processing on connect request for parent proxy
2021-11-24 22:53:14 +03:00
Vladimir Dubrovin
e1448b9eb1
connlim error code corrected (should return 10)
2021-11-24 18:22:04 +03:00
Vladimir Dubrovin
70b14394b0
Change minumum DNS cache time to 1 sec
2021-10-30 13:43:20 +03:00
Vladimir Dubrovin
6c1b711fc9
do not ignore Makefile from plugins
2021-10-29 19:26:20 +03:00
Vladimir Dubrovin
461fae12e7
set logfunc after configuration reload
2021-10-29 19:12:03 +03:00
Vladimir Dubrovin
daa2b74354
Merge branch 'master' of https://github.com/3proxy/3proxy
2021-10-21 19:57:06 +03:00
Vladimir Dubrovin
bec6e589fb
extNat implemented incorrectly, removing current support
2021-10-21 19:57:02 +03:00
Vladimir Dubrovin
f9347c2f8b
Allow all-zero IP and port for BIND and UDP ASSOC
2021-10-21 19:56:09 +03:00
z3apa3a
5fa261e91e
Send accounting start packet if log radius is enabled
2021-07-02 18:38:21 +03:00
z3apa3a
b15d5bf681
Commit as 0.9.4
2021-07-02 12:01:43 +03:00
z3apa3a
e1b4e50242
Copyright update
2021-07-02 11:50:33 +03:00
z3apa3a
1fca6ada82
Use self-built openssl for Windows
2021-07-01 19:55:20 +03:00
z3apa3a
d7eb9fb82f
better error handling on splice()
2021-05-18 11:34:57 +03:00
z3apa3a
1bd6eff0e6
Update sockmap.c
2021-05-17 18:12:50 +03:00
z3apa3a
e642100271
Merge branch 'master' of https://github.com/3proxy/3proxy
2021-05-15 18:42:30 +03:00
z3apa3a
aac5c9fff9
More accurate error handling on socket mapping
2021-05-15 18:42:17 +03:00
Vladimir Dubrovin
e235ada0de
Make SSLPlugin to compile under *nix
2021-05-11 13:53:41 +03:00
Vladimir Dubrovin
7335bc2fb6
Do not change error code >10 on redirection
2021-04-29 14:01:07 +03:00
z3apa3a
3f4c267a25
Use logic operation instead of binary where appropriate
2021-04-22 17:59:10 +03:00
z3apa3a
6279e86086
Do not terminate connection on POLLHUP if there is a data to read
2021-04-22 16:59:07 +03:00
z3apa3a
cc2979ee5b
use uint16 instead of char
2021-04-22 11:26:18 +03:00
z3apa3a
bad85a3d51
Support IPv6 subnets in parent extip
2021-04-21 20:39:57 +03:00
z3apa3a
36f16fb899
Better connection error handling in 'proxy'
2021-04-21 17:35:17 +03:00
z3apa3a
5f550c9107
change code for getpeername() error
2021-04-21 16:36:34 +03:00
Vladimir Dubrovin
681182b1e5
Fix: '-' sign incorrectly parsed in hostname ACL, bandlim race condition on configuration reload
2021-04-15 12:26:34 +03:00
z3APA3A
c30065256f
Use so._closesocket instead of socket (compilation issues on non-Windows)
2021-01-20 17:55:09 +03:00
z3APA3A
cbe0c2f511
parentretries command added
2021-01-19 14:40:18 +03:00
z3APA3A
1f2bdd7b80
Update version.h
...
version year update
2021-01-19 14:37:36 +03:00
z3APA3A
0c902525e5
commit as 0.9.3
2020-12-03 21:14:59 +03:00
z3APA3A
129d26475e
Fixed: counters incorectly shown in webadmin, contall/nocountall are not applied
2020-12-02 20:08:03 +03:00
z3APA3A
29f8867a9e
fix the compilation warning
2020-12-02 11:13:55 +03:00
z3APA3A
1225dbced7
hostname (%n) may by incomlete in log on long record
2020-11-29 12:47:58 +03:00
z3APA3A
5498a79115
add builddate (if defined) to rc
2020-11-24 20:43:30 +03:00
z3APA3A
9c7fc9fddc
correct clean
2020-11-24 20:05:49 +03:00
z3APA3A
4d63f957c2
Fix for connect back
2020-11-23 18:58:33 +03:00
z3APA3A
7aaa9c18dd
build rc file from res
2020-11-22 02:14:53 +03:00
z3APA3A
72923879a3
Make rc file non-version specific
2020-11-21 18:36:39 +03:00
z3APA3A
05bc297ea7
Fixed SSLPlugin handling
2020-11-19 23:22:15 +03:00
z3APA3A
f23b6b0d96
export pcre_options
2020-11-19 02:52:47 +03:00
z3APA3A
d2dcf4bb69
better dat filters handling
2020-11-19 02:30:19 +03:00
z3APA3A
1ff0fabf15
switching version to 0.9.2
2020-11-18 18:45:32 +03:00
z3APA3A
e013cc2ab8
remove unneeded fseek
2020-11-18 17:55:23 +03:00
z3APA3A
99a744abda
Few bugfixes
2020-11-18 16:10:07 +03:00
z3APA3A
36f8cde2fb
remove unused float variable
2020-11-13 11:39:13 +03:00
z3APA3A
f64cd475af
Do not set sigmask for thread in standalone service
2020-11-13 11:01:14 +03:00
z3APA3A
fd1b7ce2a2
Commit as 0.9.1
2020-11-13 02:56:03 +03:00
z3APA3A
021314d6f5
Fix bandlim handling
2020-11-11 17:40:46 +03:00
z3APA3A
ff67464aa1
Do not fail users without argument
2020-11-11 17:35:06 +03:00
z3APA3A
596dee0c5b
typo corrected
2020-11-05 17:43:03 +03:00
z3APA3A
32d5dc05c3
More accurate bandlim hangling
2020-11-05 16:09:13 +03:00
z3APA3A
3a31da9b3d
fixed error in previous commit
2020-11-03 14:48:55 +03:00
z3APA3A
9356db8de6
Minor memory handling changes
2020-11-03 13:39:56 +03:00
z3APA3A
dbbbe59ef2
Fix acl copy / auth copy out-of-memory error
2020-11-03 11:16:04 +03:00
z3APA3A
c1c5875356
better memory allocation errors handling, countall/nocountall corrected
2020-11-03 02:05:18 +03:00
z3APA3A
b81089f22e
More correct handling of insufficient memory
2020-11-02 18:59:13 +03:00
z3APA3A
ee0eac51d6
Remove RDHUP processing
...
Do not actually need it, may lead to connection closed before all data
read
2020-11-02 16:10:04 +03:00
z3APA3A
b2f82ed04f
More accurate conditions in sockmap's main event loop
2020-10-19 13:11:44 +03:00
z3APA3A
01ec2f12d5
fail portmapping if name can not be resolved
2020-10-16 23:13:07 +03:00
z3APA3A
624c3e6ae1
correct IPv6 parsing where hostname is expected
2020-10-16 22:51:02 +03:00
z3APA3A
3f2659cb0f
Use MAXFAILATTEMPT to limit socket failuers
2020-10-15 16:44:32 +03:00
z3APA3A
aeb0f4caa5
Better handle socket closing
2020-10-15 16:27:39 +03:00
z3APA3A
22555b58ec
Do not sigmask main thread for standalone services
2020-10-15 16:00:43 +03:00
z3APA3A
a8b000b7f1
Allow to specify binding address for RADIUS
2020-10-15 12:21:46 +03:00
z3APA3A
9f6a8460ac
limit failed mapping attempts to 13
2020-10-15 01:17:10 +03:00
z3APA3A
637cb2e76d
adding guard for polling loop to prevent CPU exhastion in the case of system misbihavior
2020-10-14 18:58:52 +03:00
z3APA3A
47affa0add
Correct returning 98 code from socksmap
2020-10-14 16:15:11 +03:00
z3APA3A
eb829b062b
Major code refactoring
...
- sockmapping rewritten from stratch to minimilse polling. poll() is now
only called if blocking is actually expected, splice pipes are now
polled if splice fails, buffers flushing is much more accurate.
- logging code moved to separate files
- signal masks added to client threads to prevent unneeded interruptions
- bandwidth limitation will not delay the thread after client or server
shutdown
2020-10-09 15:42:34 +03:00
z3APA3A
3dd1969657
Move logging to log.c
2020-10-07 19:03:59 +03:00
z3APA3A
ebd7b34159
-N(NAT_address) option added for socks
2020-10-07 11:21:01 +03:00
z3APA3A
d0725163d1
countall / nocountall ssupport added
2020-10-06 14:29:08 +03:00
z3APA3A
cc6ec2445c
Do not overwrite connection for HTTP "upgade"
2020-08-18 18:43:22 +03:00
z3APA3A
1075370594
Don't terminate connection on datagram sending issue in SOCKSv5 UDP ASSOCIATE
2020-08-08 13:56:34 +03:00
z3APA3A
1fd759d327
Correct typo (name resolution could fail on some platforms)
2020-08-07 12:14:03 +03:00
z3APA3A
c30b4637a5
Do not resolve hostname to IP on ACL destination
2020-08-06 17:57:50 +03:00
z3APA3A
8c511a19e9
Do not resolve hostname to IP on ACL destination
2020-08-06 17:56:28 +03:00
z3APA3A
3b5fa46e27
Change Proxy-authorization to Proxy-Authorization for compatiblity with RFC ignorant upstreams
2020-07-02 18:34:37 +03:00
z3APA3A
19eef46d7e
Compile error in last commit corrected
2020-06-23 11:17:32 +03:00
z3APA3A
c532958b9f
Do not cache external port
2020-06-17 16:14:34 +03:00
z3APA3A
1e7e94d7ac
corrected 'acl' and 'ext' cach types added with previous commit
...
acl - allows to bind cache entry to ACL to prevent caching
authentication for different services
ext - allows to cache external address
both options are useful with RADIUS
2020-06-17 16:09:28 +03:00
z3APA3A
859713d10f
Fail if can not bind to device
2020-06-17 16:05:23 +03:00
z3APA3A
9eac5c13a8
Correct wildcard hostname compare and make it case-insensitve where possible
2020-04-11 11:34:08 +03:00
z3APA3A
041134007d
Correct ip/network/hostname parsing in ACLs
2020-04-11 09:58:47 +03:00
z3APA3A
9996856698
Send Basic vs basic for Basic HTTP auth to deal with reportedly broken implementation
2019-10-16 11:29:07 +03:00
z3APA3A
22cf9254c5
rename memory functions in pluginlink
2019-09-03 20:46:47 +03:00
z3APA3A
e7e7d2fddf
"limit" support in authcache to bind sessions to ip
2019-08-21 15:20:43 +03:00
z3APA3A
336b411ea2
do not use "my" prefix for memory functions in pluginlink
2019-08-19 12:35:36 +03:00