From c80d9b59378352b28e5bccbca1f92b59d9d065fe Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Mon, 10 Dec 2007 07:50:07 +0000 Subject: [PATCH] Add a bit more detailed description about a configuration file format and about using NAT "instances". Submitted by: "Andrey V. Elsukov" --- sbin/natd/natd.8 | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/sbin/natd/natd.8 b/sbin/natd/natd.8 index 254948a02abc..8e67863f3919 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 \&#