Commit Graph

316 Commits (master)

Author SHA1 Message Date
ginuerzh e27d2bc593 set smux version to 1 2023-10-24 20:49:19 +08:00
ginuerzh 3144d61ecd generate random tunnel ID 2023-10-20 23:57:43 +08:00
ginuerzh e4b68d385a fix race condition 2023-10-19 23:50:27 +08:00
ginuerzh a91300d078 get real client ip for http forwarding 2023-10-18 21:23:38 +08:00
ginuerzh b8785eb71e fix race condition when forwarding http 2023-10-18 19:20:43 +08:00
ginuerzh 67fcd929be fix http traffic forwarding 2023-10-18 14:33:38 +08:00
ginuerzh 48c262bf71 fix websocket for forward handler 2023-10-17 23:26:04 +08:00
ginuerzh 05c35005e9 fix websocket for forward handler 2023-10-17 23:06:02 +08:00
ginuerzh f6112773a1 default to smux version 2 for tunnel 2023-10-17 22:16:28 +08:00
ginuerzh 61002b7c9c add mux config 2023-10-17 21:56:29 +08:00
ginuerzh f8a19e0829 fix http handler for tunnel 2023-10-16 23:56:36 +08:00
ginuerzh b1ace73943 update forward handler 2023-10-16 23:17:51 +08:00
ginuerzh 3d0e993498 fix compile error for serial 2023-10-15 23:57:49 +08:00
ginuerzh 9cbc875965 add tunnel handler and connector 2023-10-15 15:40:49 +08:00
dependabot[bot] 139b934fc6 Bump golang.org/x/net from 0.15.0 to 0.17.0
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.15.0 to 0.17.0.
- [Commits](https://github.com/golang/net/compare/v0.15.0...v0.17.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-14 21:07:47 +08:00
ginuerzh c1d9228eee add auther for metrics 2023-10-09 21:30:43 +08:00
ginuerzh 2ea7dc250a fix #239 2023-10-08 22:05:39 +08:00
ginuerzh be33046c16 add proxy protocol support for relay tunnel and rtcp 2023-10-08 19:50:12 +08:00
ginuerzh d85b8d487b fix socks5 connector 2023-10-04 16:37:10 +08:00
ginuerzh ab8d77bb5e fix issue #280 2023-09-30 17:55:22 +08:00
ginuerzh 8a699e1906 add reload and plugin support for hop 2023-09-28 21:05:44 +08:00
ginuerzh 0d41f5edc8 update go.sum 2023-09-21 21:55:23 +08:00
ginuerzh 87364d2494 add client addr for auth plugin 2023-09-21 20:01:25 +08:00
ginuerzh 6982b8af63 add HTTP based plugin 2023-09-20 22:58:48 +08:00
ginuerzh 0b1540b23a add client ID for plugin service 2023-09-19 22:39:42 +08:00
ginuerzh 1bbeeb7e66 add unix/serial dialer and connector 2023-09-18 23:18:27 +08:00
ginuerzh 5d4db6e377 add recorder for serial handler 2023-09-18 21:13:52 +08:00
ginuerzh 05d06a2718 add recorder for serial handler 2023-09-18 09:43:44 +08:00
ginuerzh 3883a4493a add support for unix domain socket 2023-09-16 23:15:49 +08:00
ginuerzh c73c98974c add support for serial(COM) port redirector 2023-09-16 21:50:54 +08:00
dependabot[bot] 6ee632cee2 Bump github.com/gin-gonic/gin from 1.9.0 to 1.9.1
Bumps [github.com/gin-gonic/gin](https://github.com/gin-gonic/gin) from 1.9.0 to 1.9.1.
- [Release notes](https://github.com/gin-gonic/gin/releases)
- [Changelog](https://github.com/gin-gonic/gin/blob/master/CHANGELOG.md)
- [Commits](https://github.com/gin-gonic/gin/compare/v1.9.0...v1.9.1)

---
updated-dependencies:
- dependency-name: github.com/gin-gonic/gin
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-15 23:44:45 +08:00
ginuerzh 8e2060582e add timeout for sniffing 2023-05-21 15:54:57 +08:00
dependabot[bot] 410b4ddf53 Bump github.com/gin-gonic/gin from 1.8.2 to 1.9.0
Bumps [github.com/gin-gonic/gin](https://github.com/gin-gonic/gin) from 1.8.2 to 1.9.0.
- [Release notes](https://github.com/gin-gonic/gin/releases)
- [Changelog](https://github.com/gin-gonic/gin/blob/master/CHANGELOG.md)
- [Commits](https://github.com/gin-gonic/gin/compare/v1.8.2...v1.9.0)

---
updated-dependencies:
- dependency-name: github.com/gin-gonic/gin
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-10 17:17:53 +08:00
ginuerzh 0b6474d836 increase transport buffer size 2023-05-01 14:06:37 +08:00
ginuerzh 4b6d6e7e7c add token for plugin 2023-04-20 19:07:55 +08:00
ginuerzh b2434dd05b add plugin system 2023-04-18 20:55:04 +08:00
ginuerzh 3d15dedab2 add async option for dns handler 2023-04-14 19:17:10 +08:00
ginuerzh 4847f9ee9f add support for windows service 2023-03-31 14:51:08 +08:00
ginuerzh a88b44d01d fix #174: load default CA from ca.pem 2023-03-21 20:25:13 +08:00
ginuerzh 45f1cc2efc fix #188 2023-03-20 18:31:47 +08:00
ginuerzh bfa1530ef6 fix grpc dialer 2023-03-08 00:01:36 +08:00
ginuerzh f02c9810f2 update go.mod 2023-02-26 13:54:17 +08:00
ginuerzh fda6214c12 fix #180: add default server name for tls client config 2023-02-26 13:48:42 +08:00
dependabot[bot] acb8c5bd53 bump golang.org/x/net from 0.5.0 to 0.7.0
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.5.0 to 0.7.0.
- [Release notes](https://github.com/golang/net/releases)
- [Commits](https://github.com/golang/net/compare/v0.5.0...v0.7.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-26 13:43:20 +08:00
ginuerzh a379565412 fix relay connect handler 2023-02-14 18:57:06 +08:00
dependabot[bot] 69089b790f Bump github.com/pion/dtls/v2 from 2.1.5 to 2.2.4
Bumps [github.com/pion/dtls/v2](https://github.com/pion/dtls) from 2.1.5 to 2.2.4.
- [Release notes](https://github.com/pion/dtls/releases)
- [Commits](https://github.com/pion/dtls/compare/v2.1.5...v2.2.4)

---
updated-dependencies:
- dependency-name: github.com/pion/dtls/v2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-14 09:48:22 +08:00
ginuerzh 1c2d9b2a5b relay: fix routing for http traffic from entrypoint 2023-02-12 20:44:50 +08:00
ginuerzh 8d852b62cf relay: add direct routing for tunnel 2023-02-06 21:18:35 +08:00
ginuerzh a80dec0dc1 go1.20 2023-02-04 18:48:20 +08:00
ginuerzh 62ca8ff2de add tunnel option for relay 2023-02-02 23:28:04 +08:00
ginuerzh b8504f7f28 update go.mod 2023-02-02 20:00:12 +08:00
ginuerzh 95a2f0d649 add UDP support for reverse proxy tunnel 2023-02-02 19:20:22 +08:00
ginuerzh 3d01f74f7c fix nil route panic 2023-01-31 18:08:50 +08:00
ginuerzh 6b05bcb0ab add auth support for forwarder node 2023-01-31 14:07:20 +08:00
ginuerzh 799c95bfb4 forward non-HTTP traffic based on host 2023-01-30 21:10:59 +08:00
ginuerzh de0a584175 fix http traffic forwarding 2023-01-30 14:40:40 +08:00
ginuerzh 381b1c9bf5 fix http traffic forwarding 2023-01-29 23:33:54 +08:00
ginuerzh ed7d72bfd8 update go.mod 2023-01-29 20:53:33 +08:00
ginuerzh 98aef6ba90 forwarder: add http node settings 2023-01-29 20:33:58 +08:00
ginuerzh dfde6efdeb relay: add private tunnel 2023-01-29 11:57:57 +08:00
ginuerzh 8858598cf0 update go.mod 2023-01-20 10:29:39 +08:00
ginuerzh cf49a3ae46 add webapi for ingress 2023-01-15 17:46:24 +08:00
ginuerzh fa47726c3d add tunnel feature for relay 2023-01-14 13:18:45 +08:00
ginuerzh c351b849e6 case-insensitive metadata key 2023-01-11 22:28:43 +08:00
ginuerzh 44fca4e04c grpc: cancel stream when done 2022-12-30 19:38:51 +08:00
ginuerzh a795923980 fix dtls 2022-12-23 18:58:24 +08:00
ginuerzh d3283d6278 tun: support multiple IPs 2022-12-22 17:52:05 +08:00
ginuerzh 4b3e711adb update grpc 2022-12-21 18:21:23 +08:00
ginuerzh 258d9f5b26 fix traffic limiter 2022-12-19 19:38:38 +08:00
ginuerzh 2f0da6993b v3.0.0-rc.1 2022-12-02 17:58:32 +08:00
ginuerzh 39cb9c65d9 grpc.dialer: do not resolve server address 2022-12-01 19:24:52 +08:00
ginuerzh df3533b4ef don't resolve server addr for tun handler 2022-11-25 18:17:11 +08:00
ginuerzh 2400e29fe0 add dtls tunnel 2022-11-18 18:27:25 +08:00
ginuerzh 41bb4cdbb0 add http3 reverse proxy 2022-11-12 17:16:43 +08:00
ginuerzh 4a192bc1b3 add wildcard supports for vhost 2022-11-12 13:45:27 +08:00
ginuerzh f17b2d2e96 add vhost for port forwarding 2022-11-11 22:25:52 +08:00
ginuerzh 68c311a7d1 fix compile error 2022-11-05 16:39:11 +08:00
ginuerzh 1c9974340b fix traffic limiter 2022-11-05 16:29:57 +08:00
ginuerzh 09c12b013c add hooks for service 2022-11-03 21:32:12 +08:00
ginuerzh b86d7ee06d add log rotation 2022-10-20 21:10:25 +08:00
ginuerzh 7f924fdeb6 fix proxy protocol 2022-09-28 11:53:25 +08:00
ginuerzh 5d797eac43 add hop 2022-09-22 18:59:56 +08:00
ginuerzh e8071d9b65 update limiter 2022-09-14 20:06:14 +08:00
ginuerzh 50cf4edd1f add direct dialer and connector #63 2022-09-08 22:43:29 +08:00
ginuerzh 3d5f0f93fd added proxy protocol for listener 2022-09-08 21:33:19 +08:00
ginuerzh aa754f8515 add rate limiter 2022-09-05 22:51:57 +08:00
ginuerzh 180214a124 update selector 2022-09-04 13:25:56 +08:00
ginuerzh baa6f0cea0 fix bug #92 2022-09-03 17:34:12 +08:00
ginuerzh ca0de58757 update selector 2022-09-02 21:55:25 +08:00
ginuerzh 5acccebe7b improve CIDR matcher 2022-08-31 20:22:44 +08:00
ginuerzh 850bb1379f fine-grained node bypass control 2022-08-25 21:38:13 +08:00
ginuerzh 9e404471a6 add list support for reference to auther, admission and bypass 2022-08-23 21:51:46 +08:00
ginuerzh 166317a7d0 add keepalive for tun 2022-08-22 22:15:32 +08:00
ginuerzh 77d9e3798c update tun handler 2022-08-21 13:56:53 +08:00
ginuerzh 5cbba69ae2 update go.mod 2022-08-20 21:43:21 +08:00
ginuerzh 8a8cbdd9e1 change tun from water to wireguard 2022-08-20 21:31:12 +08:00
ginuerzh fb5f57fa80 fix #77 2022-08-19 22:29:07 +08:00
ginuerzh 5603af2fcf add support for linux/riscv64, windows/arm64 2022-08-18 14:54:16 +08:00
ginuerzh 8ae4e43fc3 fix #76 2022-08-18 13:24:43 +08:00
ginuerzh 96b3b7e962 add standard socks5 udp relay 2022-07-29 22:59:42 +08:00
ginuerzh 85de11ae46 update metrics usage 2022-07-29 21:21:39 +08:00
ginuerzh 3a409fea42 update go.mod 2022-07-27 21:11:20 +08:00
ginuerzh 84255850b6 fix resolver for ipv6 2022-05-01 20:56:08 +08:00
ginuerzh 54e0091c38 improve loader 2022-04-21 23:33:27 +08:00
ginuerzh 3418dd0f00 v3.0.0-beta.2 2022-04-13 22:38:08 +08:00
ginuerzh 21463c0e9b update kcp 2022-04-13 21:32:29 +08:00
ginuerzh 11077eaa75 add loader for hosts 2022-04-12 22:27:04 +08:00
ginuerzh 9cd94cb68b add recorder 2022-04-11 23:16:56 +08:00
ginuerzh 37ef13655d add file and redis loader 2022-04-11 00:06:07 +08:00
ginuerzh 961646fb46 fix panic 2022-04-08 21:20:42 +08:00
ginuerzh 666846d352 fix ssh in cmd mode 2022-04-07 23:04:46 +08:00
ginuerzh c70521ddab update go.mod 2022-04-05 22:57:52 +08:00
ginuerzh 7c91dfb56f update go.mod 2022-04-05 17:57:26 +08:00
ginuerzh 4b88c240f8 update README 2022-04-04 21:01:58 +08:00
ginuerzh 1b31c80d2c update imports 2022-04-04 12:47:07 +08:00
ginuerzh 810f9f4d8f fix compile error 2022-04-02 21:39:52 +08:00
ginuerzh 5fe56cb63f fix redirect 2022-04-01 21:42:12 +08:00
ginuerzh 733655625a add tproxy support 2022-03-31 21:11:49 +08:00
ginuerzh 670a118c6d fix redirect 2022-03-29 23:07:56 +08:00
ginuerzh cb0d81f938 update README.md 2022-03-18 21:20:27 +08:00
ginuerzh 7b5913123f update dependency 2022-03-17 22:59:58 +08:00
ginuerzh bb7fb31e3d update metrics 2022-03-16 21:28:03 +08:00
ginuerzh 7fd8720f38 fix compile error 2022-03-16 20:46:26 +08:00
ginuerzh 815341dbfa fix go.mod 2022-03-16 20:40:52 +08:00
ginuerzh 2864480296 move pkg to github.com/go-gost/core 2022-03-16 20:38:26 +08:00
ginuerzh 0a41b70ef4 update go.mod 2022-03-15 15:59:48 +08:00
ginuerzh 2e40afe535 update Listener interface 2022-03-15 10:23:57 +08:00
ginuerzh a2d62d1753 move metrics module to github.com/go-gost/metrics 2022-03-14 22:07:36 +08:00
ginuerzh 749d802a12 move config and api modules to individual repo 2022-03-14 21:34:55 +08:00
ginuerzh 695c720d26 add extended features from github.com/go-gost/x 2022-03-14 20:34:31 +08:00
ginuerzh 5c5af49b0e mv non-core components to extended repo 2022-03-14 17:43:37 +08:00
ginuerzh 4007e80811 fix tap 2022-03-12 19:23:19 +08:00
ginuerzh 8d8785f534 add keepalive for websocket 2022-03-03 22:21:38 +08:00
ginuerzh 0aee4f0ebd update for go1.18 2022-02-25 13:08:05 +08:00
ginuerzh f1eaef8d69 add web api 2022-02-08 23:46:54 +08:00
ginuerzh c6cb681044 add grpc tunnel 2022-01-30 20:29:31 +08:00
ginuerzh b7dd9dea3f add pht(s) 2022-01-15 23:35:12 +08:00
ginuerzh 9b3d7e1110 add dns handler 2021-12-29 23:45:58 +08:00
ginuerzh 8600ee7c5d add dns listener 2021-12-21 21:54:33 +08:00
ginuerzh a853d99d92 add tun listener 2021-12-19 23:20:35 +08:00
ginuerzh 10bcc59370 add ssh dialer 2021-12-18 21:22:36 +08:00
ginuerzh 6c1522dace add udp redirect listener 2021-12-17 15:00:13 +08:00
ginuerzh bfe5eae172 add mtls dialer 2021-12-17 11:02:39 +08:00
ginuerzh c7f5da6ac7 add obfs dialer 2021-12-16 22:26:13 +08:00
ginuerzh a52cd9a4c2 add kcp dialer 2021-12-16 19:03:56 +08:00
ginuerzh c651743ea2 add http2 transport 2021-12-14 21:52:11 +08:00
ginuerzh efbabd4052 add sni connector 2021-11-26 17:20:10 +08:00
ginuerzh 5b97b878fb add sni handler 2021-11-25 23:08:03 +08:00
ginuerzh 98ef6c7492 add bind for relay 2021-11-23 23:23:16 +08:00
ginuerzh 7beb5bf6d7 add chain.Chainable interface 2021-11-23 21:44:32 +08:00
ginuerzh ece51cb0b8 update cmd 2021-11-22 23:57:07 +08:00
ginuerzh 8185d1124f add relay proxy 2021-11-18 22:54:23 +08:00
ginuerzh cae199dbd9 add ssu connector 2021-11-09 23:34:19 +08:00
ginuerzh 92dc87830f update ssu 2021-11-08 22:06:42 +08:00
ginuerzh 10f53e18a0 add socks5 udp relay 2021-11-08 15:26:23 +08:00
ginuerzh 16f34d3e94 add socks5 udp relay 2021-11-07 23:39:35 +08:00
ginuerzh e8f040cbdf add socks 2021-11-05 23:36:50 +08:00
ginuerzh e2995ece96 add bypass 2021-10-31 22:26:27 +08:00
ginuerzh 16ddfba1d1 add config 2021-10-29 13:35:44 +08:00
ginuerzh 3351aa5974 add chain 2021-10-26 21:07:46 +08:00
ginuerzh ce13b2a82a add obfs http/tls listener 2021-07-06 09:53:39 +08:00
ginuerzh 7de1a38023 add quic listener 2021-04-11 19:06:20 +08:00
ginuerzh f478584932 add kcp listener 2021-04-11 17:40:29 +08:00
ginuerzh f6bd34f7a3 add mux support for tls & ws listeners 2021-04-11 14:33:17 +08:00
ginuerzh 4e04e7ed86 add tls and ws listener 2021-03-31 23:24:51 +08:00
ginuerzh b74e4cc8a4 initial commit 2021-03-30 22:34:01 +08:00