Zrovna předevčírem jsem skript aktualizoval - doplnil jsem další ws služby podle podporovaných pluginů FreeRapidu.
:global aNew
:global bNew
:global tmpName
:global tmpAddress
:foreach i in=[/ip dns cache find] do={
:set bNew "false";
:set tmpName [/ip dns cache get $i name] ;
:if ([:find $tmpName "2shared"] >= 0 || \
[:find $tmpName "4shared"] >= 0 || \
[:find $tmpName "badongo"] >= 0 || \
[:find $tmpName "bagruj"] >= 0 || \
[:find $tmpName "bitroad"] >= 0 || \
[:find $tmpName "cobrashare"] >= 0 || \
[:find $tmpName "czshare"] >= 0 || \
[:find $tmpName "dataup"] >= 0 || \
[:find $tmpName "depositfiles"] >= 0 || \
[:find $tmpName "disperseit"] >= 0 || \
[:find $tmpName "easyshare"] >= 0 || \
[:find $tmpName "edisk"] >= 0 || \
[:find $tmpName "egoshare"] >= 0 || \
[:find $tmpName "enterupload"] >= 0 || \
[:find $tmpName "filebase"] >= 0 || \
[:find $tmpName "filefactory"] >= 0 || \
[:find $tmpName "fileflyer"] >= 0 || \
[:find $tmpName "filesend"] >= 0 || \
[:find $tmpName "fileupload"] >= 0 || \
[:find $tmpName "flyshare"] >= 0 || \
[:find $tmpName "hellshare"] >= 0 || \
[:find $tmpName "hotfile"] >= 0 || \
[:find $tmpName "ifile"] >= 0 || \
[:find $tmpName "imagebam"] >= 0 || \
[:find $tmpName "imagehaven"] >= 0 || \
[:find $tmpName "indowebster"] >= 0 || \
[:find $tmpName "iskladka"] >= 0 || \
[:find $tmpName "jandown"] >= 0 || \
[:find $tmpName "kewlshare"] >= 0 || \
[:find $tmpName "kitaupload"] >= 0 || \
[:find $tmpName "leteckaposta"] >= 0 || \
[:find $tmpName "letitbit"] >= 0 || \
[:find $tmpName "linkbucks"] >= 0 || \
[:find $tmpName "load"] >= 0 || \
[:find $tmpName "mediafire"] >= 0 || \
[:find $tmpName "megaupload"] >= 0 || \
[:find $tmpName "myurl"] >= 0 || \
[:find $tmpName "nahraj"] >= 0 || \
[:find $tmpName "netgull"] >= 0 || \
[:find $tmpName "netload"] >= 0 || \
[:find $tmpName "o2musicstream"] >= 0 || \
[:find $tmpName "paid4share"] >= 0 || \
[:find $tmpName "plunder"] >= 0 || \
[:find $tmpName "przeklej"] >= 0 || \
[:find $tmpName "quickshare"] >= 0 || \
[:find $tmpName "radikal"] >= 0 || \
[:find $tmpName "rapidshare"] >= 0 || \
[:find $tmpName "rsmonkey"] >= 0 || \
[:find $tmpName "savefile"] >= 0 || \
[:find $tmpName "saveqube"] >= 0 || \
[:find $tmpName "sdilej"] >= 0 || \
[:find $tmpName "sendspace"] >= 0 || \
[:find $tmpName "sendspacepl"] >= 0 || \
[:find $tmpName "share-rapid"] >= 0 || \
[:find $tmpName "shareator"] >= 0 || \
[:find $tmpName "shareonline"] >= 0 || \
[:find $tmpName "storage"] >= 0 || \
[:find $tmpName "subory"] >= 0 || \
[:find $tmpName "tinyurl"] >= 0 || \
[:find $tmpName "ugotfile"] >= 0 || \
[:find $tmpName "uloz"] >= 0 || \
[:find $tmpName "ulozisko"] >= 0 || \
[:find $tmpName "ultrashare"] >= 0 || \
[:find $tmpName "uploadbox"] >= 0 || \
[:find $tmpName "uploaded"] >= 0 || \
[:find $tmpName "uploading"] >= 0 || \
[:find $tmpName "uploadjockey"] >= 0 || \
[:find $tmpName "upnito"] >= 0 || \
[:find $tmpName "uppit"] >= 0 || \
[:find $tmpName "usercash"] >= 0 || \
[:find $tmpName "webshare"] >= 0 || \
[:find $tmpName "wiiupload"] >= 0 || \
[:find $tmpName "wikiupload"] >= 0 || \
[:find $tmpName "xtraupload"] >= 0 || \
[:find $tmpName "yourfiles"] >= 0 || \
[:find $tmpName "ziddu"] >= 0 || \
[:find $tmpName "zippyshare"] >= 0 || \
[:find $tmpName "zshare"] >= 0) do={ :set bNew "true"; }
:if ($bNew = "true") do={
:set tmpAddress [/ip dns cache get $i address]
:set aNew "true"
:foreach j in=[/ip firewall address-list find ] do={
:if ( [/ip firewall address-list get $j address] = $tmpAddress ) do={
:set aNew "false";
}
}
:if ($aNew = "true") do={
:log info ("Webshare: " . $tmpName . " (ip address " . $tmpAddress . ")")
/ip firewall address-list add address=$tmpAddress list=webshare disabled=no
}
}
}
# [ THE END ]