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 <