Find a file
2023-08-03 12:13:08 +08:00
.github fix CI 2023-07-31 15:03:14 +08:00
ansible ansible: add sysconf role 2023-07-14 17:01:15 +08:00
demo use UnsafeCell instead of direct casting 2023-08-03 12:13:08 +08:00
doc add proxy protocol v2 reader 2023-07-26 19:11:37 +08:00
g3bench use UnsafeCell instead of direct casting 2023-08-03 12:13:08 +08:00
g3fcgen g3fcgen version 0.5.1 2023-07-17 17:44:49 +08:00
g3keymess g3keymess: make the register process async 2023-07-28 17:23:20 +08:00
g3mkcert add license info for non-rust libraries 2023-07-13 11:18:11 +08:00
g3proxy use UnsafeCell instead of direct casting 2023-08-03 12:13:08 +08:00
g3tiles use UnsafeCell instead of direct casting 2023-08-03 12:13:08 +08:00
lib use UnsafeCell instead of direct casting 2023-08-03 12:13:08 +08:00
scripts update packages 2023-08-02 09:52:01 +08:00
.gitignore ignore more tmp files 2023-07-28 10:40:02 +08:00
Cargo.lock update packages 2023-08-03 10:21:42 +08:00
Cargo.toml use patched console to avoid dup windows dep 2023-08-02 20:38:12 +08:00
CHANGELOG.md update doc and packages 2023-06-02 22:15:28 +08:00
CODE_OF_CONDUCT.md initial commit 2023-03-09 17:55:45 +08:00
CONTRIBUTING.md update doc 2023-04-11 14:58:17 +08:00
G3-FEISHU-USER-GROUP.png rename user group image 2023-04-12 11:32:57 +08:00
LICENSE update license info 2023-04-07 11:28:57 +08:00
LICENSE-FOREIGN add license info for non-rust libraries 2023-07-13 11:18:11 +08:00
NOTICE update license info 2023-04-07 11:28:57 +08:00
README.md update doc 2023-07-25 12:03:33 +08:00
README.zh_CN.md update doc 2023-07-25 12:03:33 +08:00

minimum rustc: 1.70 License: Apache 2.0

G3 Project

中文版 README

About

This is the project we used to build enterprise-oriented generic proxy solutions, including but not limited to proxy / reverse proxy (WIP) / load balancer (TBD) / nat traversal (TBD).

Components

G3 Project is make up of many components.

The project level docs resides in the doc subdirectory, and you should see the links below for the important ones. Each component will have its own doc in its doc subdirectory.

g3proxy

A generic forward proxy solution, but you can also use it as tcp streaming / transparent proxy / reverse proxy as we have basic support built in.

See g3proxy for detailed introduction.

g3tiles

A work in progress reverse proxy solution.

g3bench

A benchmark tool, which support HTTP 1.x / HTTP 2 / HTTP 3 / TLS Handshake / DNS / Cloudflare Keyless.

See g3bench for detailed introduction.

g3mkcert

A tool to make root CA / intermediate CA / TLS server / TLS client certificates.

g3fcgen

Fake certificate generator for g3proxy.

g3keymess

A simple implementation of Cloudflare keyless server.

Target Platform

Only Linux is fully supported yet. The code will compile on FreeBSD / NetBSD / MacOS, but we haven't tested it there.

Feel free to open PRs to add support to other platforms.

Dev-env Setup Guide

Follow Dev-Setup.

Standards

Follow Standards.

Release and Packaging

We will set tags for each release of each component, in the form <name>-v<version>. You can use these tags to generate source tarballs. And we have added deb and rpm package files for each component that is ready for distribution.

If you want to do a release build:

  1. generate a release tarball

    ./scripts/release/build_tarball.sh <name>-v<version>
    

    All vendor sources will be added to the source tarball, so you can save the source tarball and build it offline at anywhere that have the compiler and dependencies installed.

  2. build the package

    For deb package:

    tar xf <name>-<version>.tar.xz
    cd <name>-<version>
    ./build_deb_from_tar.sh
    

    For rpm package:

    rpmbuild -ta ./<name>-<version>.tar.xz
    # if failed, you can run the following commands manually:
    tar xvf <name>-<version>.tar.xz ./<name>-<version>/<name>.spec
    cp <name>-<version>.tar.xz ~/rpmbuild/SOURCES/
    rpmbuild -ba ./<name>-<version>/<name>.spec
    

If you want to build a package directly from the git repo:

  • For deb package:

    ./build_deb_from_git.sh <name>
    
  • For rpm package:

    ./build_rpm_from_git.sh <name>
    

Pre-Built Packages

It is recommended to build packages by yourselves if you want to do install in production environment.

For testing purpose, we have built and uploaded some packages to cloudsmith, you will find install instructions there.

Contribution

Please check Contributing for more details.

Code of Conduct

Please check Code of Conduct for more details.

Security

If you discover a potential security issue in this project, or think you may have discovered a security issue, we ask that you notify Bytedance Security via our security center or vulnerability reporting email.

Please do not create a public GitHub issue.

License

This project is licensed under the Apache-2.0 License.