freebsd-dev/sbin/ipfw
Andrey V. Elsukov 5c04f73e07 Add NAT64 CLAT implementation as defined in RFC6877.
CLAT is customer-side translator that algorithmically translates 1:1
private IPv4 addresses to global IPv6 addresses, and vice versa.
It is implemented as part of ipfw_nat64 kernel module. When module
is loaded or compiled into the kernel, it registers "nat64clat" external
action. External action named instance can be created using `create`
command and then used in ipfw rules. The create command accepts two
IPv6 prefixes `plat_prefix` and `clat_prefix`. If plat_prefix is ommitted,
IPv6 NAT64 Well-Known prefix 64:ff9b::/96 will be used.

  # ipfw nat64clat CLAT create clat_prefix SRC_PFX plat_prefix DST_PFX
  # ipfw add nat64clat CLAT ip4 from IPv4_PFX to any out
  # ipfw add nat64clat CLAT ip6 from DST_PFX to SRC_PFX in

Obtained from:	Yandex LLC
Submitted by:	Boris N. Lytochkin
MFC after:	1 month
Relnotes:	yes
Sponsored by:	Yandex LLC
2019-03-18 11:44:53 +00:00
..
altq.c Extended pf(4) ioctl interface and pfctl(8) to allow bandwidths of 2018-08-22 19:38:48 +00:00
dummynet.c Revert r327005 - SPDX tags for license similar to BSD-2-Clause. 2017-12-20 20:25:28 +00:00
ipfw2.c Add NAT64 CLAT implementation as defined in RFC6877. 2019-03-18 11:44:53 +00:00
ipfw2.h Add NAT64 CLAT implementation as defined in RFC6877. 2019-03-18 11:44:53 +00:00
ipfw.8 Add NAT64 CLAT implementation as defined in RFC6877. 2019-03-18 11:44:53 +00:00
ipv6.c Make multiline APPLY_MASK() macro to be function-like. 2018-11-20 18:38:28 +00:00
main.c Add NAT64 CLAT implementation as defined in RFC6877. 2019-03-18 11:44:53 +00:00
Makefile Add NAT64 CLAT implementation as defined in RFC6877. 2019-03-18 11:44:53 +00:00
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
nat64clat.c Add NAT64 CLAT implementation as defined in RFC6877. 2019-03-18 11:44:53 +00:00
nat64lsn.c Add SPDX-License-Identifier and update year in copyright. 2019-03-18 10:50:32 +00:00
nat64stl.c Add SPDX-License-Identifier and update year in copyright. 2019-03-18 10:50:32 +00:00
nat.c Revert r327005 - SPDX tags for license similar to BSD-2-Clause. 2017-12-20 20:25:28 +00:00
nptv6.c Add ability to use dynamic external prefix in ipfw_nptv6 module. 2018-11-12 11:20:59 +00:00
tables.c Fix build of r343877 2019-02-07 21:41:27 +00:00