Script untuk mengatasi kesalahan passthrough pada mangle mikrotik dengan banyak rule.
note: pastikan kita mengerti kondisi mangle masing2, sebab setiap setingan akan berbeda kondisi, disini aku berasumsi secara umum bahwa semua "mark-connection", "mark-routing" memakai passthrough=yes dan "mark-packet" memakai passthrough=no. Silahkan dicoba..
foreach mrk in=("packet","connection", "routing") do={ foreach i in=([/ip firewall mangle find where action=("mark-" . $mrk)]) do={ :if ($mrk = "packet") do={ local cmd ("ip firewall mangle set " . $i . " passthrough=no") :execute $cmd } :if ($mrk = "connection") do={ local cmd ("ip firewall mangle set " . $i . " passthrough=yes") :execute $cmd } :if ($mrk = "routing") do={ local cmd ("ip firewall mangle set " . $i . " passthrough=yes") :execute $cmd } } }Sumber http://www.o-om.com
EmoticonEmoticon