Commit Graph

245 Commits

Author SHA1 Message Date
ruti
467391bbd1 --daemon 2024-12-08 18:36:48 +03:00
ruti
fdb91ecf17 Fix tlsrec on range 2024-12-06 11:33:47 +03:00
ruti
1ed00ea6d9 Fix ip-opt if dst address is IPv6 (again)
93587ce
2024-11-19 21:28:23 +03:00
ruti
649ec06a85 Remove delay on non-Linux 2024-11-19 04:21:02 +03:00
ruti
5e8ff5ca19 Update README.md 2024-11-18 18:00:48 +03:00
ruti
0a9973a145 Lazy parsing 2024-11-16 20:59:25 +03:00
ruti
64ffb2f64d Macros for hex string gen 2024-11-14 20:44:38 +03:00
ruti
4012b14bda Ignore events until the remote connection is established 2024-11-13 17:44:46 +03:00
DANILIAMMO
a6ee6ddb92 Исправление ошибки 404 в README 2024-11-12 16:46:09 +03:00
Kirill
9d9c370d66
Fix building .o files in Makefile (#229)
* Revert "Dont use object files"

This reverts commit e9bf029077.

* recompile all objects on any headers change
2024-11-11 18:11:46 +03:00
ruti
e9bf029077 Dont use object files
Hot fix for #213,#216, maybe #228
2024-11-11 02:17:25 +03:00
ruti
890a66ee2f Add IPv4 to proto list 2024-11-10 02:39:21 +03:00
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
SashaXser
75671fa11c
Fixes from CodeQL (#223)
* Fix code scanning alert no. 4: Multiplication result converted to larger type

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>

* Fix code scanning alert no. 5: Multiplication result converted to larger type

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>

---------

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2024-11-05 18:19:32 +03:00
ruti
0a06ba41c9 Fix -R long name, remove some flags 2024-10-28 22:16:01 +03:00
ruti
c3c196e741 General socket init for TCP and UDP 2024-10-22 18:30:08 +03:00
ruti
bbe9522242 Call the post desync func only once
#212
2024-10-22 11:45:54 +03:00
ruti
9318e90e4e Remove false assert
#212
2024-10-22 10:03:56 +03:00
ruti
193c93a68f Bump version, update README.md 2024-10-20 19:33:43 +03:00
hufrea
3cfdf4f7e0
--round (#201) 2024-10-20 18:50:08 +03:00
ruti
6dca571567 Fix loop if pos count > 1 2024-10-17 09:44:18 +03:00
ruti
13b0048514 Split range 2024-10-17 08:45:50 +03:00
ruti
93587ce8c1 Set TTL for both IP versions
#146 #17
2024-10-15 21:52:18 +03:00
ruti
8116b0de61 Fix tlsrec on negative position 2024-10-15 20:07:55 +03:00
ruti
b95926d9d2 Add more offset flags 2024-10-15 04:33:20 +03:00
ruti
dbc85417af Check IPv6 support
Change family for default address only
2024-10-06 19:08:45 +03:00
ruti
c71a096168 Check IPv6 support
#175 #169
2024-10-06 19:01:40 +03:00
Kirill
322f9261cc
Fix send_fake implementation conditional (#163) 2024-09-30 13:39:10 +03:00
ruti
dcc492b8fd sizeof(struct sockaddr_ina) as the max key size 2024-09-24 21:04:30 +03:00
ruti
7dde94e3d2 compile without sa_family_t 2024-09-24 17:51:40 +03:00
ruti
e406476610 rst if exist only one group 2024-09-24 17:51:39 +03:00
Aleksey Smirnov
dca3b5693a
Separate options from service, add system service (#152) 2024-09-24 14:05:52 +03:00
ruti
77ac202f5c create empty group if a trigger is spec
#144
2024-09-23 14:56:03 +03:00
Kirill
f11f5b0d67
Use serialization for key_struct (#138)
* extend.c: use serialization for key_struct

* serialize directly from address

* fix serialize_addr return

* return error, style

---------

Co-authored-by: ruti <>
2024-09-20 15:03:00 +03:00
ruti
889391b7b1 memset struct padding 2024-09-18 15:29:53 +03:00
ruti
a9ecc83932 Transparent IPV6 2024-09-17 22:51:39 +03:00
ruti
5e5dec60f2 params.h: char -> bool 2024-09-17 22:31:46 +03:00
Lurker00
515129cccc
Bug fix: uninitialized padding eliminated (#137) 2024-09-17 22:29:47 +03:00
ruti
0a20d69537 Bump version, update README.md 2024-09-14 22:26:59 +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
9b685ecbb9 restore events after reconnect
dc6966e broke auto
2024-09-13 09:13:58 +03:00
Trevor Arjeski
ef12f43c60
linux service instructions (#128) 2024-09-11 15:53:41 +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
hufrea
950e85df2c
vmsplice instead of sendfile 2024-09-08 20:21:26 +03:00
ruti
fdcab96c5b fix integer overflow 2024-09-08 17:37:38 +03:00
ruti
663cbf8177 fix integer overflow and unhandled error 2024-09-08 16:50:21 +03:00