Handle delegated v6 prefix
This commit is contained in:
parent
b281cf4b20
commit
e2a24c04c6
1 changed files with 6 additions and 0 deletions
|
@ -15,6 +15,12 @@ if [ ! -z ${reason} ]; then
|
|||
send
|
||||
" | 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…"
|
||||
esac
|
||||
|
|
Loading…
Reference in a new issue