@
Size: a a a
@
NI
GB
:local localAddrТакже потребуется что-то такое
:local remoteAddr
:local callerId
:local calledId
:local interfaceName
:local localName
:local ttl
:local nameOK
:set localAddr $"local-address"
:set remoteAddr $"remote-address"
:set callerId $"caller-id"
:set calledId $"called-id"
:set interfaceName [/interface get $interface name]
:set nameOK [/pick $interfaceName begin=1 end=([/len $interfaceName] -1)]
:set ttl "00:00:59"
:set localName [/system identity get name]
:log info "$user (srcIp=$callerId, dstIp=$calledId) connected to $localName: was given $remoteAddr IP (GW $localAddr) and assigned to $interfaceName interface"
/ip dns static remove [find where address=$localAddr]
/ip dns static remove [find where address=$remoteAddr]
/ip dns static add name=$localName address=$localAddr ttl=$ttl
/ip dns static add name=$nameOK address=$remoteAddr ttl=$ttl
/ip dns static add forward-to=<dns-server - or mikrotik> regexp=<*.10|*.192.168|*.172.16>.in-addr.arpa ttl=59s type=FWDЗачем?
dig -x or ping -a
понимается кто до сервиса решил докопаться.IO
NI
IO
NA
NI
GB
NA
NA
D
F
NA
NA
J
D
S
F
NA