Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/npf/npfctl Improve the "Map" section.
details: https://anonhg.NetBSD.org/src/rev/7eeedfd7d249
branches: trunk
changeset: 364615:7eeedfd7d249
user: maxv <maxv%NetBSD.org@localhost>
date: Mon Aug 27 13:09:16 2018 +0000
description:
Improve the "Map" section.
diffstat:
usr.sbin/npf/npfctl/npf.conf.5 | 16 +++++++++++++---
1 files changed, 13 insertions(+), 3 deletions(-)
diffs (34 lines):
diff -r c1cca98d8112 -r 7eeedfd7d249 usr.sbin/npf/npfctl/npf.conf.5
--- a/usr.sbin/npf/npfctl/npf.conf.5 Mon Aug 27 12:46:03 2018 +0000
+++ b/usr.sbin/npf/npfctl/npf.conf.5 Mon Aug 27 13:09:16 2018 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: npf.conf.5,v 1.64 2018/08/27 12:46:03 maxv Exp $
+.\" $NetBSD: npf.conf.5,v 1.65 2018/08/27 13:09:16 maxv Exp $
.\"
.\" Copyright (c) 2009-2017 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -258,12 +258,22 @@
bi-directional NAT (combination of inbound and outbound NAT)
.El
.Pp
-The following would translate the source to the IP address specified
-by the $pub_ip for the packets on the interface $ext_if.
+The following would translate the source (10.1.1.0/24) to the IP address
+specified by $pub_ip for the packets on the interface $ext_if.
.Bd -literal
map $ext_if dynamic 10.1.1.0/24 -> $pub_ip
.Ed
.Pp
+Several NAT algorithms are available, and can be chosen using the
+.Cd algo
+keyword.
+By default, NPF will use the NAPT algorithm.
+The other available algorithms are:
+.Bl -tag -width Xnpt66XX -offset indent
+.It npt66
+IPv6-to-IPv6 network prefix translation (NPTv6).
+.El
+.Pp
Translations are implicitly filtered by limiting the operation to the
network segments specified, that is, translation would be performed only
on packets originating from the 10.1.1.0/24 network.
Home |
Main Index |
Thread Index |
Old Index