Commit graph

88 commits

Author SHA1 Message Date
ruti
276073ddea More pedantic code 2024-11-09 18:07:27 +03:00
ruti
38f4fe169e More details in logs 2024-11-09 16:20:13 +03:00
ruti
c3c196e741 General socket init for TCP and UDP 2024-10-22 18:30:08 +03:00
hufrea
3cfdf4f7e0
--round (#201) 2024-10-20 18:50:08 +03:00
ruti
a9ecc83932 Transparent IPV6 2024-09-17 22:51:39 +03:00
ruti
e02ce91363 auto-mode option (#127)
* trigger auto if connetion closes/resets after several packets

* send RST if remote connection is reset

* change cache value struct
2024-09-14 15:47:57 +03:00
Lurker00
193737173b
Delete broken event, log "pull is full" error (#132)
* Delete event with closed socket

* Log "pull is full" error

* Error logging inside add_event and init_pool
2024-09-13 22:23:04 +03:00
ruti
dc6966ec1c ignore events until connection is established 2024-09-10 22:52:15 +03:00
Lurker00
02a9e046fd
Transparent proxy mode (#114)
* Transparent proxy

* Typo errors

* long long -> intmax_t for printing time_t

---------

Co-authored-by: vel21ripn <>
Co-authored-by: Konstantin Saliy <ksaliy@s-terra.ru>
2024-09-10 21:10:11 +03:00
Lurker00
1d6c0a132e Handle SIGTERM 2024-09-10 16:57:19 +03:00
ruti
663cbf8177 fix integer overflow and unhandled error 2024-09-08 16:50:21 +03:00
ruti
7700791053 Style 2024-08-22 17:53:17 +03:00
Kirill
ff65b9f780
NetBSD Support / Portability fixes (#75)
* Use socket to detect family on NetBSD

* Switch to _DEFAULT_SOURCE for CPPFLAGS

* fix using signed char for detecting its type
2024-08-19 15:35:13 +03:00
ruti
9a9fc8a9aa Set TTL before connect (UDP) 2024-08-16 19:10:09 +03:00
ruti
e203aacc2c Set TTL before connect 2024-08-14 15:20:35 +03:00
ruti
d61756dd95 fix headers, sa_size macros, replace getopt_long_only 2024-08-12 23:40:36 +03:00
dartvader316
64639d6661 fix dereferencing type-punned pointer warning 2024-08-07 15:52:56 +03:00
dartvader316
ff4f811692 fix ssize_t print format 2024-08-07 14:44:12 +03:00
dartvader316
632e6b038b fix headers 2024-08-07 14:25:26 +03:00
dartvader316
f884b549d2 fix usage of some misaligned pointers 2024-08-05 19:49:51 +03:00
ruti
dcf5ed727c Minor 2024-07-29 22:14:57 +03:00
ruti
380f91058c Port filter 2024-07-29 16:08:35 +03:00
ruti
83128935b8 UDP desync support 2024-07-29 12:26:42 +03:00
ruti
f4c55af73a UDP one dst 2024-07-23 14:50:17 +03:00
ruti
c023a8d8a8 Bump version, minor 2024-07-19 01:53:25 +03:00
ruti
4d965ebff3 Subdomain, logs 2024-07-18 23:59:44 +03:00
ruti
4b13c2127a Handle POLLOUT if connection is closed 2024-05-17 14:06:29 +03:00
ruti
1052a85d2c Fix tunneling after many EAGAIN, remove ip-opt on Windows 2024-05-14 05:07:01 +03:00
ruti
6555d60d6b handle split request 2024-05-11 17:23:34 +03:00
ruti
e3be71ea46 set POLLRDHUP flag 2024-05-10 02:30:17 +03:00
ruti
9429008264 UDP: remove events from TCP socket 2024-05-04 22:57:38 +03:00
ruti
6651427f3a remove arg from mod_etype, fix auto if TFO enabled 2024-05-04 22:18:43 +03:00
ruti
0f67d56be4 fix: conev add/del race 2024-05-04 19:42:19 +03:00
ruti
1a1bc7d96f fix: conev add/del race 2024-05-04 18:58:23 +03:00
ruti
e1b952cef6 fix: ignore closed connection, don't use mmap in ftob 2024-05-04 16:31:47 +03:00
lufog
7fb9164fc7 Fix build with LLVM-MinGW 2024-05-02 19:36:29 +03:00
ruti
8e8bd2d527 missed fd closing 2024-04-28 17:57:40 +03:00
ruti
e3cfd9e9d3 protect_path, free mapped file 2024-04-28 02:50:46 +03:00
ruti
4be8bd33f0 two sockets for UDP, ignore dst and proto 2024-04-26 01:15:02 +03:00
ruti
a48a2e87a3 UDP, --proto, dst custom port 2024-04-23 08:47:27 +03:00
ruti
3b65b275b1 avl, --hosts, --dst 2024-04-16 20:55:41 +03:00
ruti
87d1a28893 save IP along with port 2024-04-09 14:06:34 +03:00
ruti
f4599b0e15 move detect to auto 2024-04-04 04:19:40 +03:00
ruti
50c350c6ae replace --tr with --detect 2024-04-03 22:51:02 +03:00
ruti
6f82bb1eff remove --mss 2024-04-01 07:28:46 +03:00
ruti
6f8176a053 get addr for md5sig with getpeername 2024-03-28 23:28:09 +03:00
ruti
a909f44b35 --mss, fix cache 2024-03-28 20:42:43 +03:00
ruti
dbbdb005a1 --tr to group 2024-03-28 01:52:52 +03:00
ruti
e031e7d235 --md5sig, --ip-opt for IPv4 only 2024-03-26 17:15:34 +03:00
ruti
56a9043dd6 Check not sent bytes, --ip-opt 2024-03-21 01:01:36 +03:00