├── .gitignore ├── .gitmodules ├── .vscode ├── c_cpp_properties.json ├── gdb-root ├── launch.json └── settings.json ├── CMakeLists.txt ├── LICENSE ├── _clang-format ├── cgnoproxy.cmake ├── cgproxy.service.cmake ├── cgproxyd.cmake ├── cgroup-tproxy.sh ├── config.json ├── execsnoop-bcc ├── CMakeLists.txt ├── execsnoop.cpp ├── execsnoop.h └── readme.md ├── execsnoop-kernel ├── CMakeLists.txt ├── aarch64 │ └── execsnoop_kern_skel.h ├── arm64.md ├── execsnoop_kern.c ├── execsnoop_share.cpp ├── execsnoop_share.h ├── execsnoop_user.c ├── execsnoop_user_1.c ├── readme.md └── x86_64 │ └── execsnoop_kern_skel.h ├── execsnoop-libbpf ├── CMakeLists.txt ├── execsnoop.bpf.c ├── execsnoop.c ├── execsnoop.skel.h ├── execsnoop_share.cpp ├── execsnoop_share.h └── readme.md ├── man ├── cgnoproxy.1 ├── cgproxy.1 └── cgproxyd.1 ├── pack ├── CMakeLists.txt ├── postinst └── prerm ├── readme.md ├── src ├── CMakeLists.txt ├── cgproxy.hpp ├── cgproxyd.hpp ├── cgroup_attach.cpp ├── cgroup_attach.h ├── common.cmake.h ├── common.cpp ├── config.cpp ├── config.h ├── main.cpp ├── socket_client.cpp ├── socket_client.h ├── socket_server.cpp └── socket_server.h ├── test ├── CMakeLists.txt └── socket_client_test.cpp ├── tools ├── CMakeLists.txt └── cgattach.cpp └── v2ray_config ├── 00_log.json ├── 01_api.json ├── 02_dns.json ├── 03_policy.json ├── 04_routing_00.json ├── 05_inbounds_00_api.json ├── 05_inbounds_01_tproxy_ipv4lo.json ├── 05_inbounds_02_tproxy_ipv6lo.json ├── 05_inbounds_03_http.json ├── 05_inbounds_04_socks5.json ├── 06_outbounds_00_blackhole.json ├── 06_outbounds_01_freedom.json ├── 06_outbounds_02_dns.json ├── 06_outbounds_10_myproxy.json ├── 07_transport.json ├── 08_stats.json ├── 09_reverse.json ├── merge.sh ├── readme.md └── v2ray.service /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/springzfx/cgproxy/HEAD/.gitignore -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/springzfx/cgproxy/HEAD/.gitmodules -------------------------------------------------------------------------------- /.vscode/c_cpp_properties.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/springzfx/cgproxy/HEAD/.vscode/c_cpp_properties.json -------------------------------------------------------------------------------- /.vscode/gdb-root: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/springzfx/cgproxy/HEAD/.vscode/gdb-root -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/springzfx/cgproxy/HEAD/.vscode/launch.json -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/springzfx/cgproxy/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/springzfx/cgproxy/HEAD/CMakeLists.txt -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/springzfx/cgproxy/HEAD/LICENSE -------------------------------------------------------------------------------- /_clang-format: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/springzfx/cgproxy/HEAD/_clang-format -------------------------------------------------------------------------------- /cgnoproxy.cmake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/springzfx/cgproxy/HEAD/cgnoproxy.cmake -------------------------------------------------------------------------------- /cgproxy.service.cmake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/springzfx/cgproxy/HEAD/cgproxy.service.cmake -------------------------------------------------------------------------------- /cgproxyd.cmake: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec @CMAKE_INSTALL_FULL_BINDIR@/cgproxy --daemon $@ -------------------------------------------------------------------------------- /cgroup-tproxy.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/springzfx/cgproxy/HEAD/cgroup-tproxy.sh -------------------------------------------------------------------------------- /config.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/springzfx/cgproxy/HEAD/config.json -------------------------------------------------------------------------------- /execsnoop-bcc/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/springzfx/cgproxy/HEAD/execsnoop-bcc/CMakeLists.txt -------------------------------------------------------------------------------- /execsnoop-bcc/execsnoop.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/springzfx/cgproxy/HEAD/execsnoop-bcc/execsnoop.cpp -------------------------------------------------------------------------------- /execsnoop-bcc/execsnoop.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/springzfx/cgproxy/HEAD/execsnoop-bcc/execsnoop.h -------------------------------------------------------------------------------- /execsnoop-bcc/readme.md: -------------------------------------------------------------------------------- 1 | - depend [bcc](https://github.com/iovisor/bcc) 2 | 3 | - huge memory usage, at least 50M -------------------------------------------------------------------------------- /execsnoop-kernel/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/springzfx/cgproxy/HEAD/execsnoop-kernel/CMakeLists.txt -------------------------------------------------------------------------------- /execsnoop-kernel/aarch64/execsnoop_kern_skel.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/springzfx/cgproxy/HEAD/execsnoop-kernel/aarch64/execsnoop_kern_skel.h -------------------------------------------------------------------------------- /execsnoop-kernel/arm64.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/springzfx/cgproxy/HEAD/execsnoop-kernel/arm64.md -------------------------------------------------------------------------------- /execsnoop-kernel/execsnoop_kern.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/springzfx/cgproxy/HEAD/execsnoop-kernel/execsnoop_kern.c -------------------------------------------------------------------------------- /execsnoop-kernel/execsnoop_share.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/springzfx/cgproxy/HEAD/execsnoop-kernel/execsnoop_share.cpp -------------------------------------------------------------------------------- /execsnoop-kernel/execsnoop_share.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/springzfx/cgproxy/HEAD/execsnoop-kernel/execsnoop_share.h -------------------------------------------------------------------------------- /execsnoop-kernel/execsnoop_user.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/springzfx/cgproxy/HEAD/execsnoop-kernel/execsnoop_user.c -------------------------------------------------------------------------------- /execsnoop-kernel/execsnoop_user_1.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/springzfx/cgproxy/HEAD/execsnoop-kernel/execsnoop_user_1.c -------------------------------------------------------------------------------- /execsnoop-kernel/readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/springzfx/cgproxy/HEAD/execsnoop-kernel/readme.md -------------------------------------------------------------------------------- /execsnoop-kernel/x86_64/execsnoop_kern_skel.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/springzfx/cgproxy/HEAD/execsnoop-kernel/x86_64/execsnoop_kern_skel.h -------------------------------------------------------------------------------- /execsnoop-libbpf/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/springzfx/cgproxy/HEAD/execsnoop-libbpf/CMakeLists.txt -------------------------------------------------------------------------------- /execsnoop-libbpf/execsnoop.bpf.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/springzfx/cgproxy/HEAD/execsnoop-libbpf/execsnoop.bpf.c -------------------------------------------------------------------------------- /execsnoop-libbpf/execsnoop.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/springzfx/cgproxy/HEAD/execsnoop-libbpf/execsnoop.c -------------------------------------------------------------------------------- /execsnoop-libbpf/execsnoop.skel.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/springzfx/cgproxy/HEAD/execsnoop-libbpf/execsnoop.skel.h -------------------------------------------------------------------------------- /execsnoop-libbpf/execsnoop_share.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/springzfx/cgproxy/HEAD/execsnoop-libbpf/execsnoop_share.cpp -------------------------------------------------------------------------------- /execsnoop-libbpf/execsnoop_share.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/springzfx/cgproxy/HEAD/execsnoop-libbpf/execsnoop_share.h -------------------------------------------------------------------------------- /execsnoop-libbpf/readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/springzfx/cgproxy/HEAD/execsnoop-libbpf/readme.md -------------------------------------------------------------------------------- /man/cgnoproxy.1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/springzfx/cgproxy/HEAD/man/cgnoproxy.1 -------------------------------------------------------------------------------- /man/cgproxy.1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/springzfx/cgproxy/HEAD/man/cgproxy.1 -------------------------------------------------------------------------------- /man/cgproxyd.1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/springzfx/cgproxy/HEAD/man/cgproxyd.1 -------------------------------------------------------------------------------- /pack/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/springzfx/cgproxy/HEAD/pack/CMakeLists.txt -------------------------------------------------------------------------------- /pack/postinst: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | systemctl enable --now cgproxy.service 3 | -------------------------------------------------------------------------------- /pack/prerm: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | systemctl disable --now cgproxy.service 3 | -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/springzfx/cgproxy/HEAD/readme.md -------------------------------------------------------------------------------- /src/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/springzfx/cgproxy/HEAD/src/CMakeLists.txt -------------------------------------------------------------------------------- /src/cgproxy.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/springzfx/cgproxy/HEAD/src/cgproxy.hpp -------------------------------------------------------------------------------- /src/cgproxyd.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/springzfx/cgproxy/HEAD/src/cgproxyd.hpp -------------------------------------------------------------------------------- /src/cgroup_attach.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/springzfx/cgproxy/HEAD/src/cgroup_attach.cpp -------------------------------------------------------------------------------- /src/cgroup_attach.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/springzfx/cgproxy/HEAD/src/cgroup_attach.h -------------------------------------------------------------------------------- /src/common.cmake.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/springzfx/cgproxy/HEAD/src/common.cmake.h -------------------------------------------------------------------------------- /src/common.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/springzfx/cgproxy/HEAD/src/common.cpp -------------------------------------------------------------------------------- /src/config.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/springzfx/cgproxy/HEAD/src/config.cpp -------------------------------------------------------------------------------- /src/config.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/springzfx/cgproxy/HEAD/src/config.h -------------------------------------------------------------------------------- /src/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/springzfx/cgproxy/HEAD/src/main.cpp -------------------------------------------------------------------------------- /src/socket_client.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/springzfx/cgproxy/HEAD/src/socket_client.cpp -------------------------------------------------------------------------------- /src/socket_client.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/springzfx/cgproxy/HEAD/src/socket_client.h -------------------------------------------------------------------------------- /src/socket_server.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/springzfx/cgproxy/HEAD/src/socket_server.cpp -------------------------------------------------------------------------------- /src/socket_server.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/springzfx/cgproxy/HEAD/src/socket_server.h -------------------------------------------------------------------------------- /test/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/springzfx/cgproxy/HEAD/test/CMakeLists.txt -------------------------------------------------------------------------------- /test/socket_client_test.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/springzfx/cgproxy/HEAD/test/socket_client_test.cpp -------------------------------------------------------------------------------- /tools/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/springzfx/cgproxy/HEAD/tools/CMakeLists.txt -------------------------------------------------------------------------------- /tools/cgattach.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/springzfx/cgproxy/HEAD/tools/cgattach.cpp -------------------------------------------------------------------------------- /v2ray_config/00_log.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/springzfx/cgproxy/HEAD/v2ray_config/00_log.json -------------------------------------------------------------------------------- /v2ray_config/01_api.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/springzfx/cgproxy/HEAD/v2ray_config/01_api.json -------------------------------------------------------------------------------- /v2ray_config/02_dns.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/springzfx/cgproxy/HEAD/v2ray_config/02_dns.json -------------------------------------------------------------------------------- /v2ray_config/03_policy.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/springzfx/cgproxy/HEAD/v2ray_config/03_policy.json -------------------------------------------------------------------------------- /v2ray_config/04_routing_00.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/springzfx/cgproxy/HEAD/v2ray_config/04_routing_00.json -------------------------------------------------------------------------------- /v2ray_config/05_inbounds_00_api.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/springzfx/cgproxy/HEAD/v2ray_config/05_inbounds_00_api.json -------------------------------------------------------------------------------- /v2ray_config/05_inbounds_01_tproxy_ipv4lo.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/springzfx/cgproxy/HEAD/v2ray_config/05_inbounds_01_tproxy_ipv4lo.json -------------------------------------------------------------------------------- /v2ray_config/05_inbounds_02_tproxy_ipv6lo.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/springzfx/cgproxy/HEAD/v2ray_config/05_inbounds_02_tproxy_ipv6lo.json -------------------------------------------------------------------------------- /v2ray_config/05_inbounds_03_http.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/springzfx/cgproxy/HEAD/v2ray_config/05_inbounds_03_http.json -------------------------------------------------------------------------------- /v2ray_config/05_inbounds_04_socks5.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/springzfx/cgproxy/HEAD/v2ray_config/05_inbounds_04_socks5.json -------------------------------------------------------------------------------- /v2ray_config/06_outbounds_00_blackhole.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/springzfx/cgproxy/HEAD/v2ray_config/06_outbounds_00_blackhole.json -------------------------------------------------------------------------------- /v2ray_config/06_outbounds_01_freedom.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/springzfx/cgproxy/HEAD/v2ray_config/06_outbounds_01_freedom.json -------------------------------------------------------------------------------- /v2ray_config/06_outbounds_02_dns.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/springzfx/cgproxy/HEAD/v2ray_config/06_outbounds_02_dns.json -------------------------------------------------------------------------------- /v2ray_config/06_outbounds_10_myproxy.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /v2ray_config/07_transport.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /v2ray_config/08_stats.json: -------------------------------------------------------------------------------- 1 | { 2 | "stats": {} 3 | } 4 | -------------------------------------------------------------------------------- /v2ray_config/09_reverse.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /v2ray_config/merge.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/springzfx/cgproxy/HEAD/v2ray_config/merge.sh -------------------------------------------------------------------------------- /v2ray_config/readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/springzfx/cgproxy/HEAD/v2ray_config/readme.md -------------------------------------------------------------------------------- /v2ray_config/v2ray.service: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/springzfx/cgproxy/HEAD/v2ray_config/v2ray.service --------------------------------------------------------------------------------