[sr-dev] git:5.3:e5262a61: nathelper: docs for nat_addr_mode parameter

Henning Westerholt hw at skalatan.de
Fri Apr 24 14:30:28 CEST 2020


Module: kamailio
Branch: 5.3
Commit: e5262a61b7fcd87ef39d3cd08c78cffc7fa48011
URL: https://github.com/kamailio/kamailio/commit/e5262a61b7fcd87ef39d3cd08c78cffc7fa48011

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Henning Westerholt <hw at skalatan.de>
Date: 2020-04-24T12:29:11Z

nathelper: docs for nat_addr_mode parameter

(cherry picked from commit 9721922e2e47f3e8403bc540ecd73b55f41d5d91)

---

Modified: src/modules/nathelper/doc/nathelper_admin.xml

---

Diff:  https://github.com/kamailio/kamailio/commit/e5262a61b7fcd87ef39d3cd08c78cffc7fa48011.diff
Patch: https://github.com/kamailio/kamailio/commit/e5262a61b7fcd87ef39d3cd08c78cffc7fa48011.patch

---

diff --git a/src/modules/nathelper/doc/nathelper_admin.xml b/src/modules/nathelper/doc/nathelper_admin.xml
index 2ab9f00ff8..9aac37722e 100644
--- a/src/modules/nathelper/doc/nathelper_admin.xml
+++ b/src/modules/nathelper/doc/nathelper_admin.xml
@@ -466,6 +466,52 @@ modparam("nathelper", "filter_server_id", 1)
 		</example>
 	</section>
 
+	<section id="nathelper.p.nat_addr_mode">
+		<title><varname>nat_addr_mode</varname> (int)</title>
+		<para>
+			If set to 0, only default private net addresses are checked by
+			nat_uac_test(). If set to 1, other reserved net addresses are
+			checked by nat_uac_test() as well.
+		</para>
+		<para>Default private net addresses are:</para>
+		<itemizedlist>
+			<listitem>
+				<para>10.0.0.0/8</para>
+			<listitem>
+			<listitem>
+				<para>172.16.0.0/12</para>
+			<listitem>
+			<listitem>
+				<para>192.168.0.0/16</para>
+			<listitem>
+			<listitem>
+				<para>100.64.0.0/10 - RFC6598 - Carrier Grade NAT</para>
+			<listitem>
+			<listitem>
+				<para>192.0.0.0/29 - RFC7335 - IPv4 Service Continuity Prefix</para>
+			<listitem>
+		<itemizedlist>
+		<para>Reserved net addresses are:</para>
+		<itemizedlist>
+			<listitem>
+				<para>192.0.0.0/24 - RFC7335 - IETF Protocol Assignments</para>
+			<listitem>
+		<itemizedlist>
+		<para>
+		<emphasis>
+			Default value is <quote>1</quote>.
+		</emphasis>
+		</para>
+		<example>
+		<title>Set <varname>nat_addr_mode</varname> parameter</title>
+		<programlisting format="linespecific">
+...
+modparam("nathelper", "nat_addr_mode", 0)
+...
+</programlisting>
+		</example>
+	</section>
+
 	</section>
 
 




More information about the sr-dev mailing list