├── .dockerignore ├── .editorconfig ├── .github ├── FUNDING.yml ├── dependabot.yml └── workflows │ ├── build.yml │ ├── release.yml │ ├── rust-clippy.yml │ └── spelling.yml ├── .gitignore ├── .vscode └── settings.json ├── CODE_OF_CONDUCT.md ├── Cargo.lock ├── Cargo.toml ├── Dockerfile ├── LICENSE ├── README.md ├── _typos.toml ├── config ├── config.d │ ├── hosts │ └── rule_gfw.yaml └── config.yaml └── src ├── cli.rs ├── config ├── dns_table.rs ├── hosts.rs ├── load.rs ├── mod.rs └── setting.rs ├── dns ├── dns_handler.rs ├── dns_server.rs ├── mod.rs └── server.rs ├── gateway ├── mod.rs ├── nat.rs ├── proxy.rs ├── relay_tcp.rs └── server.rs ├── logger.rs ├── main.rs └── metrics.rs /.dockerignore: -------------------------------------------------------------------------------- 1 | /.cargo 2 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yinheli/kungfu/HEAD/.editorconfig -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yinheli/kungfu/HEAD/.github/FUNDING.yml -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yinheli/kungfu/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.github/workflows/build.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yinheli/kungfu/HEAD/.github/workflows/build.yml -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yinheli/kungfu/HEAD/.github/workflows/release.yml -------------------------------------------------------------------------------- /.github/workflows/rust-clippy.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yinheli/kungfu/HEAD/.github/workflows/rust-clippy.yml -------------------------------------------------------------------------------- /.github/workflows/spelling.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yinheli/kungfu/HEAD/.github/workflows/spelling.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yinheli/kungfu/HEAD/.gitignore -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yinheli/kungfu/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yinheli/kungfu/HEAD/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /Cargo.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yinheli/kungfu/HEAD/Cargo.lock -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yinheli/kungfu/HEAD/Cargo.toml -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yinheli/kungfu/HEAD/Dockerfile -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yinheli/kungfu/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yinheli/kungfu/HEAD/README.md -------------------------------------------------------------------------------- /_typos.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yinheli/kungfu/HEAD/_typos.toml -------------------------------------------------------------------------------- /config/config.d/hosts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yinheli/kungfu/HEAD/config/config.d/hosts -------------------------------------------------------------------------------- /config/config.d/rule_gfw.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yinheli/kungfu/HEAD/config/config.d/rule_gfw.yaml -------------------------------------------------------------------------------- /config/config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yinheli/kungfu/HEAD/config/config.yaml -------------------------------------------------------------------------------- /src/cli.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yinheli/kungfu/HEAD/src/cli.rs -------------------------------------------------------------------------------- /src/config/dns_table.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yinheli/kungfu/HEAD/src/config/dns_table.rs -------------------------------------------------------------------------------- /src/config/hosts.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yinheli/kungfu/HEAD/src/config/hosts.rs -------------------------------------------------------------------------------- /src/config/load.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yinheli/kungfu/HEAD/src/config/load.rs -------------------------------------------------------------------------------- /src/config/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yinheli/kungfu/HEAD/src/config/mod.rs -------------------------------------------------------------------------------- /src/config/setting.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yinheli/kungfu/HEAD/src/config/setting.rs -------------------------------------------------------------------------------- /src/dns/dns_handler.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yinheli/kungfu/HEAD/src/dns/dns_handler.rs -------------------------------------------------------------------------------- /src/dns/dns_server.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yinheli/kungfu/HEAD/src/dns/dns_server.rs -------------------------------------------------------------------------------- /src/dns/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yinheli/kungfu/HEAD/src/dns/mod.rs -------------------------------------------------------------------------------- /src/dns/server.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yinheli/kungfu/HEAD/src/dns/server.rs -------------------------------------------------------------------------------- /src/gateway/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yinheli/kungfu/HEAD/src/gateway/mod.rs -------------------------------------------------------------------------------- /src/gateway/nat.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yinheli/kungfu/HEAD/src/gateway/nat.rs -------------------------------------------------------------------------------- /src/gateway/proxy.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yinheli/kungfu/HEAD/src/gateway/proxy.rs -------------------------------------------------------------------------------- /src/gateway/relay_tcp.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yinheli/kungfu/HEAD/src/gateway/relay_tcp.rs -------------------------------------------------------------------------------- /src/gateway/server.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yinheli/kungfu/HEAD/src/gateway/server.rs -------------------------------------------------------------------------------- /src/logger.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yinheli/kungfu/HEAD/src/logger.rs -------------------------------------------------------------------------------- /src/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yinheli/kungfu/HEAD/src/main.rs -------------------------------------------------------------------------------- /src/metrics.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yinheli/kungfu/HEAD/src/metrics.rs --------------------------------------------------------------------------------