summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2007-12-10 07:50:07 +0000
committerphk <phk@FreeBSD.org>2007-12-10 07:50:07 +0000
commit4b233f446d120efc64079b297144518f13074bcb (patch)
tree88bbf7cc28987df03fcc9eefc7f3d9be870aef1d
parent08954540f840d7da2963bbfea3f07480e5b0b7d2 (diff)
downloadFreeBSD-src-4b233f446d120efc64079b297144518f13074bcb.zip
FreeBSD-src-4b233f446d120efc64079b297144518f13074bcb.tar.gz
Add a bit more detailed description about a configuration
file format and about using NAT "instances". Submitted by: "Andrey V. Elsukov" <bu7cher@yandex.ru>
-rw-r--r--sbin/natd/natd.820
1 files changed, 20 insertions, 0 deletions
diff --git a/sbin/natd/natd.8 b/sbin/natd/natd.8
index 254948a..8e67863 100644
--- a/sbin/natd/natd.8
+++ b/sbin/natd/natd.8
@@ -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 \&#
OpenPOWER on IntegriCloud