File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,30 @@ systemctl restart cgtproxy.service
43
43
44
44
[ configuration guide ] : ./docs/configuration.md
45
45
46
+ ## Tips
47
+
48
+ 1 . cgproxy has CLI utilities ` cgproxy ` and ` cgnoproxy `
49
+ to temporarily run program with(out) proxy.
50
+
51
+ If you use the [ example configuration] of ` cgtproxy ` ,
52
+ you can write a bash alias as this:
53
+
54
+ ``` bash
55
+ alias cgtproxy-direct=" systemd-run --user --slice cgtproxy-direct.slice"
56
+ ```
57
+
58
+ Then use it like this:
59
+
60
+ ``` bash
61
+ cgtproxy-direct /some/command/to/run/without/proxy
62
+ ```
63
+
64
+ Go check the comments in example configuration
65
+ about the ` cgtproxy-direct.slice ` , ` cgtproxy-drop.slice `
66
+ and ` cgtproxy-proxy.slice ` .
67
+
68
+ [ example configuration ] : ./misc/config/example.yaml
69
+
46
70
## The way how ` cgtproxy ` works.
47
71
48
72
Netfliter can be configured to filter network traffic [ by cgroup] ,
You can’t perform that action at this time.
0 commit comments