Skip to content

Commit

Permalink
Add information about "--section" feature to the README.md.
Browse files Browse the repository at this point in the history
  • Loading branch information
sh1r4s3 committed Sep 5, 2019
1 parent 1ba25b0 commit 89056d9
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,21 @@ With this option it is possible to set different resolv.conf files for each netw
At the end the script will also create an iptables NAT rule and setup resolv.conf if
it was mentioned in the command line arguments. The script will also automatically enable IPv4 forwarding.

This script also contains --section option. This option allows to load a specific section from the /etc/runns.conf
file. This file a plain case insensitive INI file and could contains the following options:
NetworkNamespace, InterfaceIn, InterfaceOut, Resolve.
For example:
```shell
$ cat /etc/runns.conf
[work]
NetworkNamespace=vpnWork
InterfaceIn=vpnWorkd
vpn=/etc/openvpn/work.conf
vpn=/etc/openvpn/myvps.conf
```
Each vpn option specifies configuration files for OpenVPN [13]. OpenVPN will be started as a daemon
with a "openvpn-**NetworkNamespaceName**" name in the system logger.

### clean-net
This helper script is needed to easy delete and clean network namespace created by **build-net**.
This script will check if any program is running inside the network namespace and if so it will ask to try
Expand Down Expand Up @@ -140,4 +155,6 @@ Thanks for the nice font [11] by Amazingmax which is used in the logo.

11 -- https://fonts2u.com/amazdoomright.font

12 -- https://01.org/connman
12 -- https://01.org/connman

13 -- https://openvpn.net

0 comments on commit 89056d9

Please sign in to comment.