Add a bit more detailed description about a configuration

file format and about using NAT "instances".

Submitted by: "Andrey V. Elsukov" <bu7cher@yandex.ru>
This commit is contained in:
Poul-Henning Kamp 2007-12-10 07:50:07 +00:00
parent de0abf19ba
commit c80d9b5937

View File

@ -421,6 +421,26 @@ For example, the line
is synonymous with
.Fl log .
.Pp
Options can be divided to several sections. Each section applies to own
.Nm
instance. This ability allow to configure one
.Nm
process for several NAT instances. The first instance that always exists is
a "default" instance. Each another instance should begin with
.Pp
.Dl instance Ar instance_name
.Pp
At the next should be placed a configuration options. Example:
.Pp
.Dl \&# default instance
.Dl port 8668
.Dl alias_address 158.152.17.1
.Pp
.Dl \&# second instance
.Dl instance dsl1
.Dl port 8888
.Dl alias_address 192.168.0.1
.Pp
Trailing spaces and empty lines are ignored.
A
.Ql \&#