@@ -45,28 +45,34 @@ Currently supported target are:
45
45
46
46
## Usage
47
47
48
- [ Install] ( ./docs/install.md ) cgtproxy,
49
- then enable and start the systemd service by:
48
+ 1 . [ Install] ( ./docs/install.md ) cgtproxy;
50
49
51
- ``` bash
52
- # Run the line below if you have old cgtproxy running as systemd service already.
53
- # systemctl daemon-reload
54
- systemctl enable --now cgtproxy.service
55
- ```
50
+ 2 . Enable and start the systemd service by:
56
51
57
- You could check the nft rules generated by default (empty) configuration by:
52
+ ``` bash
53
+ # Run the line below if you have old cgtproxy running as systemd service already.
54
+ # systemctl daemon-reload
55
+ systemctl enable --now cgtproxy.service
56
+ ```
57
+
58
+ You could check the nft rules generated by default (empty) configuration by:
58
59
59
- ``` bash
60
- sudo nft list ruleset
61
- ```
60
+ ``` bash
61
+ sudo nft list ruleset
62
+ ```
62
63
63
- Write your own configuration file according to the [ configuration guide] ,
64
- place it on /etc/cgtproxy/config.yaml then restart systemd service by:
64
+ The nft rule set is generated with [ the builtin default configuration] .
65
65
66
- ``` bash
67
- systemctl restart cgtproxy.service
68
- ```
66
+ 3 . Write your own configuration file according to the [ configuration guide] ,
67
+ place it at ` /etc/cgtproxy/config.yaml `
68
+
69
+ 4 . Restart systemd service by:
70
+
71
+ ``` bash
72
+ systemctl restart cgtproxy.service
73
+ ```
69
74
75
+ [ the builtin default configuration ] : https://pkg.go.dev/github.com/black-desk/cgtproxy/pkg/cgtproxy/config#pkg-constants
70
76
[ configuration guide ] : ./docs/configuration.md
71
77
72
78
## Tips
0 commit comments