tayga: add options for static mapping
authorHung-I Wang <redacted>
Mon, 2 Sep 2024 16:08:22 +0000 (00:08 +0800)
committerJosef Schlehofer <redacted>
Tue, 3 Sep 2024 18:53:08 +0000 (20:53 +0200)
commit8cc9191c7f063a38ffa8a531275a34c239c21f55
tree262d8ebc40ba5dc6ce22b1a3aa11c4ab4bd4ed4d
parent7ba22665d75f87083dc15a4dfe4abe4b1fd6ab99
tayga: add options for static mapping

The commit adds options for static mapping, which is essential for
464xlat(clat) usage. But be noted that routes and firewall rules have
to be configured manually, for now.

To use tayga as clat/nat46:
0. specify $ipv4_addr, $prefix, $map_{ipv4,ipv6} properly, and
   set $noroutes to 1 to prevent creating routes for nat64
1. add custom IPv4 routes to tayga, possibly with a reasonable metric
   for default route
2. add a SNAT firewall rule for processing IPv4 traffic destined for
   tayga
3. add firewall rules to allow FORWARD traffic between tayga and WAN6
4. add a $map_ipv6 route to tayga for guiding return traffic

Signed-off-by: Hung-I Wang <redacted>
ipv6/tayga/Makefile
ipv6/tayga/files/tayga-proto.sh
git clone https://git.99rst.org/PROJECT