Skip to content

Commit 44e4849

Browse files
authored
Merge pull request #263 from jramseygreen/master
Clarify multiple port accessibility
2 parents 53ce8fc + 9170a83 commit 44e4849

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

USERGUIDE.md

+23
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,29 @@ Note for same daemons you may need to use the `-k` keep-alive option in
332332
case the process ID changes (you will then need to manually kill the
333333
daemon after finishing).
334334
335+
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:
336+
337+
```bash
338+
$ vopono -v exec -k -f 8080 -f 8081 -f 8082 --provider azirevpn --server norway "program_a -flag"
339+
```
340+
341+
Note that this will only work on the first call to create the network namespace in question.
342+
343+
#### Starting further programs with vopono using an existing network namespace
344+
345+
Let's say you've already ran
346+
347+
```bash
348+
$ vopono -v exec -k -f 8080 -f 8081 --provider azirevpn --server norway "program_a -flag"
349+
```
350+
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):
351+
352+
```bash
353+
$ vopono -v exec -k --provider azirevpn --server norway "program_b -flag"
354+
```
355+
356+
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.
357+
335358
#### transmission-daemon
336359
337360
For example, to launch `transmission-daemon` that is externally

0 commit comments

Comments
 (0)