Skip to content

Commit

Permalink
docs: update README
Browse files Browse the repository at this point in the history
Related: #205
Signed-off-by: black-desk <[email protected]>
  • Loading branch information
black-desk committed Oct 10, 2024
1 parent 26cb75d commit 16f53c1
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,30 @@ systemctl restart cgtproxy.service

[configuration guide]: ./docs/configuration.md

## Tips

1. cgproxy has CLI utilities `cgproxy` and `cgnoproxy`
to temporarily run program with(out) proxy.

If you use the [example configuration] of `cgtproxy`,
you can write a bash alias as this:

```bash
alias cgtproxy-direct="systemd-run --user --slice cgtproxy-direct.slice"
```

Then use it like this:

```bash
cgtproxy-direct /some/command/to/run/without/proxy
```

Go check the comments in example configuration
about the `cgtproxy-direct.slice`, `cgtproxy-drop.slice`
and `cgtproxy-proxy.slice`.

[example configuration]: ./misc/config/example.yaml

## The way how `cgtproxy` works.

Netfliter can be configured to filter network traffic [by cgroup],
Expand Down

0 comments on commit 16f53c1

Please sign in to comment.