diff --git a/openwrt/openwrt-add-jool-ipv4island.sh b/openwrt/openwrt-add-jool-ipv4island.sh index 3b1c7d6..3349385 100755 --- a/openwrt/openwrt-add-jool-ipv4island.sh +++ b/openwrt/openwrt-add-jool-ipv4island.sh @@ -1,15 +1,19 @@ #!/bin/sh -if [ $# -ne 2 ]; then +if [ $# -ne 1 ]; then echo "$0 ip-address nat64-prefix" echo " ip-address: where to find the OpenWRT device" - echo " nat64-prefix: which network to use for INCOMING NAT64 (often 2a0a:e5c1:XXX:b00::/96" + echo " nat64-prefix: how to reach the ipv4 hosts" + echo "" + echo "Example:" + echo "$0 2a0a:e5c1:301::42 2a0a:e5c1:301:b00::/96" + echo "" + echo "This maps 2a0a:e5c1:301:b00::/96 to the IPv4 addresses on the device 2a0a:e5c1:301::42" exit 1 fi my_ip=$1; shift nat64_prefix=$1; shift -v4addr=$1; shift cat < /etc/rc.local << EO2 +sysctl -w net.ipv6.conf.all.accept_ra=2 modprobe jool jool -6 ${nat64_prefix} -EO2 -sh /etc/rc.local +# OpenWRT has 192.168.1. assigned on LAN by default +# Probably not even necessary +# jool -4 -a 192.168.1.1 + EOF diff --git a/openwrt/viwib-2-configure.sh b/openwrt/viwib-2-configure.sh index 72c6e7d..b38f41c 100755 --- a/openwrt/viwib-2-configure.sh +++ b/openwrt/viwib-2-configure.sh @@ -119,7 +119,7 @@ uci delete wireless.radio0.disabled uci commit -ping6 -c5 ungleich.ch || exit 1 +ping -c5 ungleich.ch || exit 1 # update the sources opkg update