From 9fd12ac43bdd8d457df0830791848a47a6159304 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Wed, 24 Jul 2024 11:05:28 +0200 Subject: [PATCH] openwrt/nat64: add jool support --- openwrt/openwrt-nat64-bootstrap.sh | 39 +++++++++++++++++++++++++++--- 1 file changed, 36 insertions(+), 3 deletions(-) diff --git a/openwrt/openwrt-nat64-bootstrap.sh b/openwrt/openwrt-nat64-bootstrap.sh index e29736e..e09d5c2 100755 --- a/openwrt/openwrt-nat64-bootstrap.sh +++ b/openwrt/openwrt-nat64-bootstrap.sh @@ -9,7 +9,7 @@ # - do not provide IPv4 or IPv6 dhcp/ra on any interface if [ $# -lt 4 ] ; then - echo $0 "address hostname nat64prefix nat64route asn routerid iBGPpeer1 [iBGPpeer2...]" + echo $0 "address hostname nat64prefix nat64route ipv4out asn routerid iBGPpeer1 [iBGPpeer2...]" exit 1 fi @@ -17,6 +17,7 @@ address=$1; shift hostname=$1; shift nat64prefix=$1; shift nat64route=$1; shift +ipv4out=$1; shift asn=$1; shift routerid=$1; shift ibgp_peers="$@" @@ -66,11 +67,43 @@ BBB done # TODO: configure jool -# TODO: start jool +cat >> /etc/jool/jool-nat64.conf.json <