Skip to content

Commit

Permalink
Clarify multiple port accessibility
Browse files Browse the repository at this point in the history
Clarify how to use multiple -f flags for multiple ports in a single namespace
  • Loading branch information
jramseygreen authored Mar 24, 2024
1 parent 53ce8fc commit 9170a83
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions USERGUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,29 @@ Note for same daemons you may need to use the `-k` keep-alive option in
case the process ID changes (you will then need to manually kill the
daemon after finishing).
If you need to allow multiple incoming connections to TCP ports inside the namespace, you can specify multiple `-f $PORT` arguments. For example if you wanted to allow ports 8080, 8081 and 8082:
```bash
$ vopono -v exec -k -f 8080 -f 8081 -f 8082 --provider azirevpn --server norway "program_a -flag"
```
Note that this will only work on the first call to create the network namespace in question.
#### Starting further programs with vopono using an existing network namespace
Let's say you've already ran
```bash
$ vopono -v exec -k -f 8080 -f 8081 --provider azirevpn --server norway "program_a -flag"
```
where `program_a` is accessible over port 8080. Now if you want to add another program `program_b` which will be accessible over port 8081, and ensure it uses the same VPN tunnel, you can simply specify the same server (or custom config):
```bash
$ vopono -v exec -k --provider azirevpn --server norway "program_b -flag"
```
This will bind `program_b` to the existing network namespace used for `program_a` which already has the necessary port for `program_b` specified at creation of the network namespace.
#### transmission-daemon
For example, to launch `transmission-daemon` that is externally
Expand Down

0 comments on commit 9170a83

Please sign in to comment.