初始化仓库

This commit is contained in:
2025-08-18 15:48:15 +08:00
commit c70c068fa0
8 changed files with 998 additions and 0 deletions

13
scripts/down.rsc Normal file
View File

@@ -0,0 +1,13 @@
:local rtable [/ip firewall mangle get [/ip firewall mangle find src-address=$"remote-address"] new-routing-mark]
:local num [:pick $rtable begin=1 end=[:len ($rtable)]]
:local count [:len [/ip firewall mangle find new-routing-mark="r$num"]]
/ip firewall mangle remove [/ip firewall mangle find src-address=$"remote-address"]
:if ($count < 2) do={
:local localips [/ip address get [/ip address find interface="l2tp-out$num"] address ]
:local localip [:pick $"localips" begin=0 end=([:find $"localips" "/"])]
/tool fetch url="http://192.168.250.250:18702/server/ros/down/ip/$localip" mode=http
/file remove "$localip"
}