ouchwe wrote:1.在ipv6 address list新增ddns,list會自動將ddns轉成ipv6地址。
我是用系統could(恕刪)
遠端範例:list=ghostplayer

2.新增ipsec相關設置。遠端範例:name=ghostplayer

3.將script加入排程,讓系統自動更新ghostplayer的新地址:

:local new [/ipv6 firewall address-list get [find list=ghostplayer dynamic] address]
:local old [/ip ipsec peer get ghostplayer address]
:if ($old!=$new) do={
/ip ipsec peer set ghostplayer address=$new
/ip ipsec policy disable [find peer=ghostplayer]
/ip ipsec policy enable [find peer=ghostplayer]
}





























































































