Handle delegated v6 prefix

This commit is contained in:
root 2024-09-26 18:01:01 +02:00
parent b281cf4b20
commit e2a24c04c6

View file

@ -15,6 +15,12 @@ if [ ! -z ${reason} ]; then
send send
" | nsupdate -k $KEY " | nsupdate -k $KEY
;; ;;
DELEGATED6)
if [ "${interface}" == "enp4s0" ]; then
LAN_V6="${delegated_dhcp6_prefix%%/*}"
WAN_V6="$(ip --json address show dev ppp0 | jq -r '(.[0].addr_info.[] | select(.noprefixroute)).local')"
#ip6tables -t nat -R public_ip_redirect_to_local 1 -d "${WAN_V6}/128" -j DNAT --to-destination "${LAN_V6}"
fi
*) *)
echo "$reason not relevant for us. Skipping…" echo "$reason not relevant for us. Skipping…"
esac esac