Commit Graph
1210 Commits
Author SHA1 Message Date
babarosaM33 a727596faa jconf: fix memory leak 2020-08-04 21:56:45 +08:00
zfl9 78784507f1 add tcp_tproxy option, use tproxy instead of redirect (tcp) 2020-07-18 16:23:21 +08:00
Max Lv 25be24c01f Align the report format for UDP packet 2020-06-20 06:56:31 +08:00
Max Lv e8ca659cea report suspicious UDP packet for fail2ban 2020-06-20 06:45:37 +08:00
Max Lv 3ff9d33898 Merge pull request #2698 from DDoSolitary/patch-cmake-mingw
Fix support for building with CMake and MinGW.
2020-05-02 15:15:25 +08:00
DDoSolitary 93336adf66 Fix static linking issues on Windows. 2020-05-02 13:36:38 +08:00
DDoSolitary f1f3e9d6ca Fix support for building with CMake and MinGW. 2020-05-02 13:25:11 +08:00
root 02f25e588c add ss-manager read manager_address from config.json 2020-05-02 10:57:36 +08:00
Max Lv 236c98d6d9 Merge pull request #2685 from JamisHoo/master
Also apply LIB_ONLY for dynamic library, fix #2443
2020-04-29 11:37:16 +08:00
Max Lv aa9fe8cceb Fix #2692 2020-04-27 09:44:22 +08:00
Max Lv 33a1932023 Fix #2687 2020-04-17 13:42:30 +08:00
Jamis Hoo bbb2849b60 Also apply LIB_ONLY for shared library, fix #2443 2020-04-13 22:08:43 +08:00
Jamis Hoo 138186b3db Add include_directories property for shared_libraries 2020-03-29 17:35:22 +08:00
ideal af722a4b92 Fix a tiny memory leak 2020-03-15 01:21:51 +08:00
Max Lv 6f7a6fd7e3 Merge pull request #2628 from Mygod/kill-sniparser
Remove sniparser
2020-02-20 17:50:49 +08:00
Max Lv 64d3235c67 Fix #2620 2020-02-15 11:06:42 +08:00
Max Lv 8c251b2bc5 Fix build 2020-02-12 15:48:22 +08:00
Mygod 1c818ebca7 Fix build 2020-02-11 23:55:58 -05:00
Mygod 355adddff1 Remove unused is_remote_dns option 2020-02-11 23:52:48 -05:00
Mygod 301fea635b Remove sniparser 2020-02-11 23:48:30 -05:00
babarosaM33 81bbd98d8b udprelay: exclude udp remote_recv_sendto buff full
before:
udp send buff full would not reset timeout trigger
after:
fix it
2020-02-08 17:55:07 +08:00
babarosaM33 a5111fe32f updrelay: cleanup 2020-02-07 15:11:14 +08:00
Max Lv 0686909bb0 Merge pull request #2610 from babarosaM33/bloom_reset
ppbloom: save free() and subsequent init() overhead
2020-01-29 19:54:02 +08:00
Max Lv 6f9bd72def Merge pull request #2609 from babarosaM33/bloom_slots
crypto: lower bloom filter error rate
2020-01-29 19:40:20 +08:00
babarosaM33 a5005664a7 ppbloom: save free() and subsequent init() overhead
init utilizes calloc which malloc and memset.

need cherry-pick commit of libbloom
2020-01-29 18:57:19 +08:00
babarosaM33 88c4d2aaab crypto: lower bloom filter error rate
before patch:
full bloom filter error rate before reset 1-(1-1e-6)^5e5=1-0.606=0.394

after patch:
1-(1-1e-10)^5e5=1-0.99995=5e-5
2020-01-29 16:31:14 +08:00
babarosaM33 30d5b85fe7 Revert "ppbloom:remove unnecessay bloom_check"
ppbloom_add only checks current bloom filter not both PING PONG filters

This reverts commit 9ae59819be.
2020-01-29 16:09:10 +08:00
kuangniu 0f87d7cb68 Fix sockopt level. 2020-01-24 14:06:45 +09:00
Max Lv 4214894f5d Fix a typo 2020-01-20 16:43:25 +08:00
Max Lv 4f577a0d31 Fix #2600 2020-01-19 18:13:18 +08:00
Max Lv d31fba3deb Fix #2599 2020-01-19 18:04:18 +08:00
Max Lv 0318168938 Merge pull request #2596 from babarosaM33/master
server: replace memmove with idx
2020-01-19 13:12:58 +08:00
Max Lv ddd0df53f7 Merge pull request #2598 from babarosaM33/udprelay
udprelay: fix more tos
2020-01-19 13:03:36 +08:00
babarosaM33 8c03d25314 udprelay: fix more tos 2020-01-19 12:07:50 +08:00
babarosaM33 247d53098c server: replace memmove with idx 2020-01-19 09:46:18 +08:00
Max Lv bebdcbedd7 Merge pull request #2592 from babarosaM33/master
refine tos setsockopt in redir and udprelay
2020-01-18 07:31:38 +08:00
babarosaM33 4d617adfb0 refine tos setsockopt in redir and udprelay
make tos setup working at ipv4 and ipv6
2020-01-17 19:16:02 +08:00
Max Lv 5eeff4df48 Merge pull request #2590 from babarosaM33/master
server: fix setTosFromConnmark typo
2020-01-17 14:19:06 +08:00
babarosaM33 b48dcddc6c server: fix setTosFromConnmark typo
Server made a connection to remote, remote replied with that connection.

nf_conntrack module would not check reply-dst and reply-src by default.

more information please refer to https://www.spinics.net/lists/netfilter/msg57842.html

As a result, src and dst should be swapped to make nf_conntrack find the connection.
2020-01-17 13:10:47 +08:00
Max Lv 8811ec27af Merge pull request #2586 from babarosaM33/master
crypto: md5 hash works without hmac mode
2020-01-15 17:18:48 +08:00
babarosaM33 3908f3ac85 crypto: md5 hash works without hmac mode
setup mbedtls_md_context_t with hmac disabled to save some memory.
2020-01-15 12:20:18 +08:00
Max Lv 40ba7c7fde Merge pull request #2582 from babarosaM33/master
ppbloom:remove unnecessay bloom_check
2020-01-13 14:51:22 +08:00
babarosaM33 9576dcea54 initialize after pass check
if check failes, no need to initialize crypto.
2020-01-13 13:39:02 +08:00
babarosaM33 9ae59819be ppbloom:remove unnecessay bloom_check
bbloom_add and bbloom_check are in fact the same function.
let's make bbloom_add return collision information.
2020-01-13 13:24:52 +08:00
Mygod 80b887d16e Warn users when using stream ciphers 2020-01-12 23:09:52 +08:00
babarosaM33 7fe555c756 Remove unnecessary memmove
Before patch, after one chunk decoded, we do a memmove.
After patch, after all complete chunk decoded, we do a memmove.
2020-01-08 04:33:35 +08:00
Roger Shimizu a7d57ab9d5 Fix of PATH_MAX for GNU/Hurd
PATH_MAX is not defined on each platform, and should be avoided.

Info:
- https://www.gnu.org/software/hurd/community/gsoc/project_ideas/maxpath.html
- https://www.gnu.org/software/hurd/hurd/porting/guidelines.html#PATH_MAX_tt_MAX_PATH_tt_MAXPATHL
2019-12-04 01:20:53 +09:00
igor 0b737a9525 Fix redir default cipher 2019-11-30 22:17:32 +08:00
eric 16bd9af3a4 Fix QoS 2019-11-16 07:06:08 +08:00
Max Lv 6d73201b9a Fix #2539 2019-11-10 19:58:21 +08:00