From be852526b8c8f1628bf0b0c3ea548ef8da1e0843 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Mon, 22 Jul 2024 12:06:04 +0200 Subject: [PATCH] [openwrt] start nat64 configuration script --- openwrt/openwrt-nat64-bootstrap.sh | 33 ++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100755 openwrt/openwrt-nat64-bootstrap.sh diff --git a/openwrt/openwrt-nat64-bootstrap.sh b/openwrt/openwrt-nat64-bootstrap.sh new file mode 100755 index 0000000..9e9c0d3 --- /dev/null +++ b/openwrt/openwrt-nat64-bootstrap.sh @@ -0,0 +1,33 @@ +#!/bin/sh +# Nico Schottelius, 2024-07-22 +# This script assumes a clean/newly setup openwrt device +# +# Assumption: +# WAN = IPv4, dhcp provided externally +# LAN = IPv6, "clients" that want to reach IPv4 Internet +# Consequences +# - do not provide IPv4 or IPv6 dhcp/ra on any interface + +if [ $# -ne 3 ] ; then + echo $0 address hostname nat64prefix + exit 1 +fi + +address=$1; shift +hostname=$1; shift +nat64=$1; shift + +cat <