From 4b233f446d120efc64079b297144518f13074bcb Mon Sep 17 00:00:00 2001 From: phk Date: Mon, 10 Dec 2007 07:50:07 +0000 Subject: 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(+) (limited to 'sbin/natd') 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 \&# -- cgit v1.1