From 4e04dcf84a42a23d7d79de062cc9225a3a1a1a06 Mon Sep 17 00:00:00 2001 From: fancy Date: Thu, 14 May 2020 04:53:23 +0800 Subject: [PATCH] update readme --- readme.md | 35 +++++++++++++++++++++++++---------- 1 file changed, 25 insertions(+), 10 deletions(-) diff --git a/readme.md b/readme.md index 8ef3a57..4625fbd 100644 --- a/readme.md +++ b/readme.md @@ -79,32 +79,47 @@ mkdir build && cd build && cmake .. && make && sudo make install More config in /etc/cgproxy.conf (click to expand) ```bash -######################################################################## -## cgroup transparent proxy +################################################################################### ## any process in cgroup_proxy will be proxied, and cgroup_noproxy the opposite -## cgroup must start with slash '/' +## note, cgroup must start with slash '/' +## the value can be string or bash array +## for array, only the first element will be created if not exist +## and the rest elements will not, so won't be applied + +### global proxy with v2ray service # cgroup_proxy="/" -# cgroup_noproxy="/system.slice/v2ray.service" +# cgroup_noproxy=("/noproxy.slice" "/system.slice/v2ray.service") + +### global proxy with manual `cgnoporxy qv2ray` +# cgroup_proxy="/" +# cgroup_noproxy="/noproxy.slice" + +### default cgroup_proxy="/proxy.slice" cgroup_noproxy="/noproxy.slice" -######################################################################## + +################################################################################### ## allow as gateway for local network enable_gateway=false -######################################################################## + +################################################################################### ## listening port of another proxy process, for example v2ray port=12345 -######################################################################## -## if you set to false, it's traffic won't go through proxy, but still can go direct to internet + +################################################################################### +## if you set to false, it's traffic won't go through proxy, +## but still can go direct to internet enable_dns=true enable_tcp=true enable_udp=true enable_ipv4=true enable_ipv6=true -######################################################################## + +################################################################################### ## do not modify this if you don't known what you are doing table=100 fwmark=0x01 @@ -134,7 +149,7 @@ sudo systemctl restart cgproxy.service set `cgroup_noproxy=""` - example: `cgroup_noproxy="/system.slice/v2ray.service"` + example: `cgroup_noproxy=("/noproxy.slice" "/system.slice/v2ray.service")` - Finally, restart cgproxy service, that's all