elicro / add-dhcp-static-leases-to-netwatch.rsc
0 вподобань
0 форк(-ів)
1 файл(-ів)
Остання активність
| 1 | { |
| 2 | :local dhcpServer "ip_pool_192.168.0..x" |
| 3 | :foreach i in=[/ip/dhcp-server/lease/find where server=$dhcpServer and !dynamic] do={ |
| 4 | :local lease [/ip/dhcp-server/lease/get number=$i]; |
| 5 | :local ipAddress ("$lease"->"address"); |
| 6 | /tool/netwatch/add host=$ipAddress type=icmp interval=10s timeout=3s |
| 7 | } |
| 8 | } |
elicro / add-geoip-il-address-list-updater.rsc
0 вподобань
0 форк(-ів)
1 файл(-ів)
Остання активність
| 1 | :do { |
| 2 | :local scriptFound [:len [/system script find where name=UpdateGeoIP_IL]]; |
| 3 | :local schedulerFound [:len [/system scheduler find where name=UpdateGeoIPSchedule]]; |
| 4 | |
| 5 | :log info "Debug step 1" |
| 6 | :if ( $scriptFound = 0 ) do={ |
| 7 | /system script add dont-require-permissions=no name=UpdateGeoIP_IL owner=eliezer policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source="{\r\ |
| 8 | \n\t:local geoipILUrl \"https://www.ngtech.co.il/geoip/geoip_il.cidr_geoip_update.rsc\";\r\ |
| 9 | \n\t/tool fetch mode=https url=\$geoipILUrl;\r\ |
| 10 | \n\t:delay 2s;\r\ |
Новіше
Пізніше