Commit Graph
100 Commits
Author SHA1 Message Date
Shelikhoo 9c9c45fe4f Add Test for the KDF value 2021-02-22 13:25:12 +00:00
Shelikhoo 0024c6e028 Fix incorrect HMac Chaining, further checking needed 2021-02-22 13:20:36 +00:00
38da831b75 Feature: Fake DNS support (#406)
* Add fake dns

A new config object "fake" in DnsObject for toggling fake dns function

Compare with sniffing, fake dns is not limited to http and tls traffic.
It works across all inbounds. For example, when dns request come
from one inbound, the local DNS server of v2ray will response with a
unique fake IP for every unique domain name. Then later on v2ray
received a request to one of the fake IP from any inbounds, it will
override the request destination with the previously saved domain.

By default, v2ray cache up to 65535 addresses. The old records will
be discarded bases on LRU. The fake IP will be 240.x.x.x

* fix an edge case when encounter a fake IP in use

* Move lru to common.cache package

* Added the necessary change to obtain request IP from sniffer

* Refactor the code so that it may stop depending on global variables in the future.

* Replace string manipulation code with more generic codes, hopefully this will work for both IPv4 and IPv6 networks.

* Try to use IPv4 version of address if possible

* Added Test Case for Fake Dns

* Added More Test Case for Fake Dns

* Stop user from creating a instance with LRU size more than subnet size, it will create a infinite loop

* Move Fake DNS to a separate package

* Generated Code for fakedns

* Encapsulate Fake DNS as a Instance wide service

* Added Support for metadata sniffer, which will be used for Fake DNS

* Dependency injection for fake dns

* Fake DNS As a Sniffer

* Remove stub object

* Remove global variable

* Update generated protobuf file for metadata only sniffing

* Apply Fake DNS config to session

* Loading for fake dns settings

* Bug fix

* Include fake dns in all

* Fix FakeDns Lint Condition

* Fix sniffer config

* Fix lint message

* Fix dependency resolution

* Fix fake dns not loaded as sniffer

* reduce ttl for fake dns

* Apply Coding Style

* Apply Coding Style

* Apply Coding Style

* Apply Coding Style

* Apply Coding Style

* Fix crashed when no fake dns

* Apply Coding Style

* Fix Fake DNS do not apply to UDP socket

* Fixed a bug prevent FakeDNS App Setting from become effective

* Fixed a caveat prevent FakeDNS App Setting from become effective

* Use log comparison to reduce in issue when it comes to really high value typical for ipv6 subnet

* Add build tag for fakedns

* Removal of FakeDNS specific logic at DNS client: making it a standard dns client

* Regenerate auto generated file

* Amended version of configure file

* Bug fixes for fakeDNS

* Bug fixes for fakeDNS

* Fix test: remove reference to removed attribute

* Test: fix codacy issue

* Conf: Remove old field support

* Test: fix codacy issue

* Change test scale for TestFakeDnsHolderCreateMappingAndRollOver

* Test: fix codacy issue

Co-authored-by: yuhan6665 <1588741+yuhan6665@users.noreply.github.com>
Co-authored-by: loyalsoldier <10487845+Loyalsoldier@users.noreply.github.com>
Co-authored-by: kslr <kslrwang@gmail.com>
2021-02-08 18:18:52 +08:00
Xiaokang WangandGitHub 999165bf93 Update deb.yml 2020-11-21 14:40:27 +00:00
Xiaokang WangandGitHub 61112d8af7 Workaround for muti-json's hard coded override method (#409)
* Simple workaround for muti-json unable to automatically understand new config options.

* Update jsonem.go
2020-11-21 02:50:46 +08:00
Xiaokang WangandGitHub fb0aadeea9 Transfer VSign and related project to V2Fly and share under the same license as v2ray-core (#392)
* Move VSign to V2Fly

* Use transfered V2BuildAssist  project
2020-11-08 03:11:45 +08:00
Xiaokang WangandGitHub 3684dc15de Merge pull request #351 from v2fly/dev-fix-mutijson-dep
Fix json parsing dependency introduced by mutijson config
2020-10-26 15:44:58 +00:00
Shelikhoo 9391f7c377 Apply Coding Style 2020-10-23 19:51:39 +01:00
Shelikhoo 0aee8053e8 Merge branch 'master' of github.com:v2fly/v2ray-core 2020-10-23 17:02:59 +01:00
Shelikhoo fd2638c522 Fix json parsing dependency introduced by mutijson config 2020-10-23 15:04:03 +01:00
Shelikhoo e2e266114a Fix incorrect IV usage which slightly reduced security 2020-09-12 16:27:40 +08:00
Shelikhoo 8c82fd3e6d update version 2020-08-29 10:31:15 +08:00
Shelikhoo 0fdc818231 Update VSign Version 2020-08-29 10:27:23 +08:00
Shelikhoo e97b9b5f3c Merge branch 'master' of github.com:v2fly/v2ray-core 2020-08-26 17:10:03 +08:00
Shelikhoo a40727a3dc added drain for ss and improved vmess drain 2020-08-26 13:51:23 +08:00
Shelikhoo d2266bb52c Alias for ext: to reduce ambiguous ext: used without context 2020-07-11 09:24:03 +08:00
Shelikhoo b02a781ab9 Update Version 2020-07-05 16:40:59 +08:00
Shelikhoo 1be3d52787 Allow VSign function to be disabled if V2Ray is included in a package and should be verified by the package manager. 2020-07-05 08:55:10 +08:00
Shelikhoo 3952f81b49 Update Signing key 2020-07-05 08:52:29 +08:00
Shelikhoo b23c4fce05 Adopt to new signature key and format (Fix) 2020-07-04 21:04:38 +08:00
Shelikhoo 432bc627bb Adopt to new signature key and format 2020-07-04 20:28:15 +08:00
Shelikhoo 8c415a791b Merge branch 'master' of github.com:v2fly/v2ray-core 2020-07-04 13:53:17 +08:00
Shelikhoo 437a66b7de Added Unit Test for VMessAEAD 2020-07-04 13:48:47 +08:00
Shelikhoo ad1927e6f9 Actually Request the SIGN 2020-07-03 16:07:15 +08:00
Shelikhoo 9928eca26f Fix bug with tag name extract 2020-07-03 14:55:31 +08:00
Xiaokang WangandGitHub a5fa0f5afd Merge pull request #43 from v2fly/dev-cimanifest
Generate and Sign Manifest
2020-07-03 13:14:20 +08:00
Shelikhoo 40e21fde1d Added Signing Request 2020-07-03 00:34:15 +08:00
Shelikhoo 9142c0d9a8 Generate manifest on tag release 2020-07-02 20:27:34 +08:00
Shelikhoo d2064b0021 Bug fix 2020-07-02 19:40:44 +08:00
Shelikhoo dadcda034d Generate Manifest for bleeding edge release 2020-07-02 19:10:38 +08:00
Shelikhoo e4acbcee8f Allow the use of Browser Bridge 2020-06-28 15:54:53 +08:00
Shelikhoo 218d6204b8 Fix test break on socks TestSocksConformance, use ip instead of hostname 2020-06-28 13:59:26 +08:00
Shelikhoo f19f95af35 Update AEAD design to rely more on AEAD 2020-06-26 20:15:37 +08:00
Xiaokang WangandGitHub 327a6ee1f7 Merge pull request #18 from darhwa/enhance_http_outbound
使http outbound支持连接https与http/2代理服务器
2020-06-25 16:25:44 +08:00
Xiaokang WangandGitHub dd106b7cda Merge pull request #35 from DuckSoft/patch-2
dohdns.go: multiple typo fixes
2020-06-25 16:10:46 +08:00
Shelikhoo d6cad0b426 Update Version 2020-06-19 22:24:58 +08:00
Shelikhoo 38868e0469 Fix context layering in Shadowsocks UDP 2020-06-19 17:52:39 +08:00
Shelikhoo 3e13d79af7 Fix TProxy Process Logic 2020-06-18 13:40:48 +08:00
Shelikhoo 85bd352bc1 propagate context 2020-06-18 12:37:10 +08:00
Shelikhoo 73616ab9e2 branch context instead of layer it 2020-06-18 12:01:37 +08:00
Shelikhoo 9e62f4a934 Merge branch 'master' of github.com:v2fly/v2ray-core
# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.
2020-06-18 11:20:18 +08:00
Shelikhoo a26534c79c Allow client to submit a context in v2ray.New 2020-06-18 11:19:05 +08:00
Xiaokang WangandGitHub 4eeb913c9a Update core.go 2020-06-10 18:17:18 +08:00
Xiaokang WangandGitHub 448d24496c Merge pull request #10 from rprx/patch-1
Update Golang version to 1.14.4
2020-06-10 18:15:46 +08:00
Xiaokang WangandGitHub e920d39b11 Update core.go
Update Version
2020-06-10 18:13:43 +08:00
Xiaokang WangandGitHub e4ec9807a2 Merge pull request #12 from zhuobixin/master
LocalAddr() should return local address
2020-06-10 17:45:08 +08:00
Shelikhoo 8988dc32b9 Update Version 2020-06-10 11:15:28 +08:00
Shelikhoo aece8a6a86 Added Seed to mKCP, encrypts the packets 2020-06-09 08:36:40 +08:00
Shelikhoo d06a4d1f50 Added TestsEnabled Settings to enable VMessAEAD test 2020-06-08 16:50:50 +08:00
Shelikhoo 00103d1f73 Fix tests 2020-06-08 16:16:50 +08:00
Shelikhoo 09b81b78c3 regenerate pb data 2020-06-08 16:16:32 +08:00
Shelikhoo da0b63bc12 allow user to define tests enable for this server 2020-06-08 14:20:31 +08:00
Shelikhoo 870ff52775 Apply Coding Style 2020-06-08 13:25:33 +08:00
Shelikhoo 8c886b4b46 Apply Coding Style 2020-06-08 13:21:59 +08:00
Shelikhoo a58b20b5b8 Reserve sign bit 2020-06-08 10:23:59 +08:00
Shelikhoo 78d7b4f183 Check replay only for AEAD connection, and later 2020-06-06 20:54:29 +08:00
Shelikhoo 9fc37646b6 Check replay only for AEAD connection 2020-06-06 20:51:01 +08:00
Shelikhoo 6a29fa5fe2 Enable AEAD by Default 2020-06-06 20:37:30 +08:00
Shelikhoo 8d489f6c7c Make taint acquire lesser lock 2020-06-06 19:22:27 +08:00
Shelikhoo 6007e4cc6f Detailed AEAD Auth Error 2020-06-06 18:57:49 +08:00
Shelikhoo 9bf07b1f26 VMess AEAD Experiment 2020-06-06 17:11:30 +08:00
Shelikhoo b610fc0a70 make error less sensitive 2020-06-03 16:32:58 +08:00
Shelikhoo d31a067fc3 Release Version 2020-06-03 16:09:16 +08:00
Shelikhoo b760ac149d Merge branch 'master' of github.com:v2fly/v2ray-core 2020-06-03 16:06:23 +08:00
Shelikhoo 221a13e658 Early detection of non http traffic to match web server behavior 2020-06-03 15:44:25 +08:00
Shelikhoo 087a62ef3d Fixed HTTP response not adjusted based on request 2020-06-03 15:16:03 +08:00
Shelikhoo 38e89bd2c7 VMess will Drain Connection On Auth failure 2020-06-03 11:25:47 +08:00
Shelikhoo 220b783caa Align Timeout Value 2020-06-03 09:12:45 +08:00
Shelikhoo 8f45736dd3 drain replayed connection 2020-06-02 20:02:08 +08:00
Shelikhoo 34c13f3b27 Detailed code and output 2020-06-02 18:18:31 +08:00
Shelikhoo 944c45a776 Fix not update behavior seed 2020-06-02 18:01:43 +08:00
Shelikhoo 5e59534333 Fix when rolled number is zero 2020-06-02 17:30:48 +08:00
Shelikhoo 13cef19430 Increase Drain Pool 2020-06-02 17:11:51 +08:00
Shelikhoo ca032dd00f Drain Connection Based on uuid based behavior seed(skip auth info drain for now) 2020-06-02 15:16:17 +08:00
Shelikhoo d671780804 Drain Connection Based on Uuid based Behavior seed 2020-06-02 14:47:54 +08:00
Shelikhoo a1e4c9bc70 Release 4.23.3 (Bug fix) 2020-06-01 17:49:50 +08:00
Shelikhoo e0aa18b6f3 Drain Connection with invalid checksum before closing. Emergency fix for weakness described in https://github.com/v2ray/v2ray-core/issues/2523 2020-06-01 16:40:54 +08:00
Shelikhoo 3f6ef26a00 Merge branch 'master' of github.com:v2fly/v2ray-core 2020-03-23 12:37:13 +08:00
Shelikhoo c7d9abfb48 Update MacOS Version 2020-03-23 11:46:13 +08:00
Shelikhoo e61b44ff78 Fix Test Parse flag before flag defined by V2 in main 2020-03-23 11:34:53 +08:00
Shelikhoo 30116d6433 Merge branch 'master' of github.com:v2fly/v2ray-core 2019-12-29 16:57:09 +08:00
Shelikhoo 6f22e67df4 Remove legacy release script 2019-12-29 16:55:28 +08:00
Shelikhoo 78d940ddac Added Armv6 file into release zip 2019-12-29 12:48:57 +08:00
Shelikhoo 78e4d60a91 Added Armv6 file into release zip 2019-12-26 20:14:21 +08:00
Shelikhoo 4448d37c2b Merge branch 'master' of github.com:v2ray/v2ray-core 2019-12-26 19:34:48 +08:00
Shelikhoo 275e2d5af7 Fix build error, blaim golang.org/x/crypto@v0.0.0-20190308221718-c2843e01d9a2 2019-10-30 21:36:12 +08:00
Shelikhoo 95f808ccd8 Fix merge error 2019-10-30 20:24:38 +08:00
Shelikhoo aecf18af0c Fix merge error 2019-10-30 20:15:31 +08:00
Shelikhoo 35e9da8ca6 Merge branch 'master' of github.com:v2ray/v2ray-core
This are significant amount of change introduced in this merge, needs 
additional testing.
2019-10-30 20:03:11 +08:00
Shelikhoo b258ca7290 Set core version 2019-10-30 18:46:33 +08:00
Shelikhoo d1881e2bc6 Output Release ID 2019-10-30 17:04:17 +08:00
Shelikhoo 0e39a08e10 Fix X file mode 2019-10-30 15:53:04 +08:00
Shelikhoo a43cd8acf5 Auto Release for Tag build 2019-10-30 15:03:29 +08:00
Shelikhoo 7a9f446272 Added Tag into build trigger 2019-10-30 12:32:35 +08:00
Xiaokang WangandGitHub adc9073d3d Merge pull request #1810 from winguse/patch-1
fix segment fault when use api remote config
2019-08-15 12:51:33 +08:00
Xiaokang WangandGitHub 54c7483964 Merge pull request #1794 from v2fly/sysstat
add StatsService.GetSysStats
2019-07-14 13:17:58 +08:00
Xiaokang WangandGitHub aa3c337041 Merge pull request #1793 from lucifer9/h2c
add server side h2c (http2 without TLS protection) support
2019-07-10 08:49:10 +08:00
Shelikhoo 8cf38342e9 Delay Closing Connection so that test have chance to complete(Additional) 2019-06-07 12:05:06 +08:00
Shelikhoo dd8e957f59 Delay Closing Connection so that test have chance to complete 2019-06-07 10:01:23 +08:00
Shelikhoo a32d6416e5 Fix test break for windows: better error handling 2019-06-06 22:14:50 +08:00