From 59967ab531ff8b0f76bac570f46796559244fd78 Mon Sep 17 00:00:00 2001 From: Thomas von Dein Date: Tue, 6 Jul 2021 23:21:02 +0200 Subject: [PATCH] add auto_linklocal --- jaildk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jaildk b/jaildk index 71271cb..62ca41a 100755 --- a/jaildk +++ b/jaildk @@ -319,7 +319,7 @@ pf_nat() { } rc_pf() { - local jail mode conf ruleset extif ipv4 anchor proto eport mport eports eip allowfrom map port + local jail mode conf ruleset extif ipv4 anchor proto eport mport eports eip allowfrom port jail=$1 mode=$2 @@ -2205,7 +2205,7 @@ jaildk_vnet() { if test -n "$ip6" -a -n "$gw6"; then if ! jexec $jail ifconfig $vnetjail inet6 | grep -v fe80 | grep prefixlen > /dev/null 2>&1; then # configure the jail v4 network stack inside the jail - ex jexec $jail ifconfig $vnetjail inet6 $ip6 || true + ex jexec $jail ifconfig $vnetjail inet6 $ip6 auto_linklocal || true ex jexec $jail route -6 add default $gw6 || true fi fi