82 Commits
Author SHA1 Message Date
eric 5bc0c4da40 v0.2.9 v0.2.9 2021-02-16 13:39:57 +08:00
eric 61ae2f5e9b inbound/tun: uses a branch of rust-tun with the endianness issue fixed 2021-02-16 13:37:08 +08:00
eric a79394937a docs: certificates should be installed when using TLS 2021-02-16 13:06:24 +08:00
eric 134b2a83a8 bin: shorthand for specifying outbound tag name 2021-02-16 10:28:54 +08:00
eric 8a7e0ce379 dispatcher: gracefully shuts down the inbound connection
Just try to reduce some error messages such as:

WebSocket protocol error: Connection reset without closing handshake
2021-02-16 10:09:54 +08:00
eric aaf761b167 option: allow options override from env vars 2021-02-15 20:23:38 +08:00
eric cff7a9b47e nat: waiting for available capacity instead of dropping downlink packets 2021-02-15 14:50:25 +08:00
eric 8154f5c2e1 refactor 2021-02-08 23:31:36 +08:00
eric f7646701ef outbound/ws: support custom headers 2021-02-08 22:54:21 +08:00
eric 00ce9b83a4 session: simplify session creation 2021-02-07 23:01:23 +08:00
eric f045e80ec3 nat: remove session upon dispatch failure 2021-02-07 22:07:55 +08:00
eric 8a55a92ccf dispatcher: handle connection shutdown result 2021-02-07 04:28:39 +08:00
eric 4a084e872f dispatcher: use semaphores for concurrent connection limiting 2021-02-07 03:45:36 +08:00
eric 36aed53e81 v0.2.8 v0.2.8 2021-02-06 07:37:14 +08:00
eric 919e069e9d nat: avoid unwraps 2021-02-06 07:03:28 +08:00
eric 83e2c2e1d1 nat: avoid blocking current task while adding UDP sessions 2021-02-06 02:23:19 +08:00
eric 297bba8eca bin: passthrough the version env variables while cross compiling 2021-02-05 22:45:18 +08:00
eric 269250f144 bin: include information of the latest commit in the version string 2021-02-05 21:35:30 +08:00
eric 0ac84b7f19 outbound/retry: added retry outbound
retry outbound allows multiple attempts on a list of outbounds.
2021-02-05 18:29:17 +08:00
eric 8f11501ae9 refactor: unifies outbound socket creation behavior for both TCP and UDP 2021-02-05 12:41:50 +08:00
eric 639a2a7740 bin: allow building multi-threaded binary by feature 2021-02-05 10:20:07 +08:00
eric 928ec6f0eb fakedns: run fakedns in exclude mode by default
This means if there are not any include or exclude filters specified,
fakedns will run in exclude mode, and since the filter list is empty,
fakedns would generate fake IP for every domain.

Because the domain sniffing feature has recently removed, fakedns is
the only builtin method to fight against DNS spoofing.
2021-02-04 18:38:10 +08:00
eric c599c798a3 refactor: remove unintended outbound handler implementations 2021-02-04 15:59:07 +08:00
eric 5b008cc811 refactor: upgrade protobuf, re-generate code 2021-02-04 15:34:17 +08:00
eric 632a4e3873 fakedns: make fake DNS fully compatible with "UDP connections" 2021-02-04 14:53:12 +08:00
eric 1ca14f7d65 dns: optimize DNS cache according to dial conditions 2021-02-03 03:41:33 +08:00
eric 87d52fb2e5 router: support port range matching 2021-02-03 00:50:34 +08:00
eric 3050cd720a refactor: move some of the hard-coded settings to the option mod 2021-01-25 09:17:00 +08:00
eric fb5d6799bd docs: more on usage of the failover outbound 2021-01-12 18:16:25 +08:00
eric 173b8adde1 dep: not ready for tokio v1.0 2021-01-06 11:59:28 +08:00
eric 82545d4a8f Refactor 2020-12-24 19:41:50 +08:00
eric a0d954e80f Update README 2020-12-20 13:52:17 +08:00
eric b2cc4d32db log: Logs inbound handler tag 2020-12-20 12:45:37 +08:00
eric d52a49ec76 failover: Add the option to cache fallback actors 2020-12-19 09:54:01 +08:00
eric 7ed5fa5c7f v0.2.7 v0.2.7 2020-12-19 07:13:43 +08:00
eric 14b11714e0 conf: Added always-fake-ip option 2020-12-19 05:08:43 +08:00
eric df48f511fb conf: Add Trojan over WebSocket over TLS (TLS + WebSockeet + Trojan) support 2020-12-19 04:57:02 +08:00
eric 1acca315ae Fix Fake DNS Include/Exclude 2020-12-18 13:52:48 +08:00
eric 807ad5ab5e Added several inbounds
* Added WebSocket inbound
* Added trojan inbound
* Added chain inbound

Similar to the chain outbound, chain inbound can be used to chain
multiple inbounds. The Nginx/CDN (TLS) + WebSocket + trojan setup is tested.

There are also breaking changes to the JSON config format.

Fake DNS now can operate in either Include or Exclude mode.

SOCKS inbound settings no longer has the `bind` option, the local_addr of
the TCP socket is used as the UDP relay address.
2020-12-18 13:08:50 +08:00
eric 02bb93c196 Add App Store link 2020-12-03 11:28:39 +08:00
eric 848458dba3 v0.2.6 v0.2.6 2020-11-24 18:25:09 +08:00
eric e9e9a189f6 Fix release 2020-11-24 18:23:55 +08:00
eycorsican 6c92d18317 Merge pull request #16 from DeamonLuck/socks_inbound
Add socks outbound support in conf
2020-11-24 17:14:09 +08:00
DaemonLuck d08557f996 Add socks outbound support in conf 2020-11-22 23:53:24 -08:00
eric 59792fcc1c v0.2.5 v0.2.5 2020-11-20 20:12:48 +08:00
eric 8846499d63 Tweak lwIP memory options 2020-11-20 20:11:57 +08:00
eric 5a353f9a4e Update README 2020-11-17 08:05:56 +08:00
eric f887f7d7ad Make TUN inbound optional 2020-11-15 07:36:53 +08:00
eric f7349cdbc0 Fix build 2020-11-15 02:00:44 +08:00
eric 15b793ec37 Sets a new waker on lwIP memory error 2020-11-14 13:49:40 +08:00