Vous êtes sur la page 1sur 12

#wm-blocked

/queue type
remove [find name=512k]
remove [find name=1M]
remove [find name=2M]
remove [find name=3M]
remove [find name=4M]
remove [find name=5M]
remove [find name=6M]
remove [find name=7M]
remove [find name=8M]
remove [find name=10M]
remove [find name=12M]
remove [find name=15M]
remove [find name=18M]
remove [find name=20M]
remove [find name=25M]
remove [find name=30M]
remove [find name=35M]
remove [find name=40M]
remove [find name=50M]

add kind=pcq name=1M pcq-burst-rate=0 pcq-burst-threshold=0 pcq-burst-time=\


10s pcq-classifier=dst-address pcq-dst-address-mask=32 \
pcq-dst-address6-mask=64 pcq-limit=50 pcq-rate=1200k \
pcq-src-address-mask=32 pcq-src-address6-mask=64 pcq-total-limit=2000
add kind=pcq name=2M pcq-burst-rate=0 pcq-burst-threshold=0 pcq-burst-time=\
10s pcq-classifier=dst-address pcq-dst-address-mask=32 \
pcq-dst-address6-mask=64 pcq-limit=50 pcq-rate=2200k \
pcq-src-address-mask=32 pcq-src-address6-mask=64 pcq-total-limit=2000
add kind=pcq name=3M pcq-burst-rate=0 pcq-burst-threshold=0 pcq-burst-time=\
10s pcq-classifier=dst-address pcq-dst-address-mask=32 \
pcq-dst-address6-mask=64 pcq-limit=50 pcq-rate=3200k \
pcq-src-address-mask=32 pcq-src-address6-mask=64 pcq-total-limit=2000
add kind=pcq name=512k pcq-burst-rate=0 pcq-burst-threshold=0 pcq-burst-time=\
10s pcq-classifier=dst-address pcq-dst-address-mask=32 \
pcq-dst-address6-mask=64 pcq-limit=50 pcq-rate=600k pcq-src-address-mask=\
32 pcq-src-address6-mask=64 pcq-total-limit=2000
add kind=pcq name=4M pcq-burst-rate=0 pcq-burst-threshold=0 pcq-burst-time=\
10s pcq-classifier=dst-address pcq-dst-address-mask=32 \
pcq-dst-address6-mask=64 pcq-limit=50 pcq-rate=4200k \
pcq-src-address-mask=32 pcq-src-address6-mask=64 pcq-total-limit=2000
add kind=pcq name=5M pcq-burst-rate=0 pcq-burst-threshold=0 pcq-burst-time=\
10s pcq-classifier=dst-address pcq-dst-address-mask=32 \
pcq-dst-address6-mask=64 pcq-limit=50 pcq-rate=5200k \
pcq-src-address-mask=32 pcq-src-address6-mask=64 pcq-total-limit=2000
add kind=pcq name=6M pcq-burst-rate=0 pcq-burst-threshold=0 pcq-burst-time=\
10s pcq-classifier=dst-address pcq-dst-address-mask=32 \
pcq-dst-address6-mask=64 pcq-limit=50 pcq-rate=6200k \
pcq-src-address-mask=32 pcq-src-address6-mask=64 pcq-total-limit=2000
add kind=pcq name=7M pcq-burst-rate=0 pcq-burst-threshold=0 pcq-burst-time=\
10s pcq-classifier=dst-address pcq-dst-address-mask=32 \
pcq-dst-address6-mask=64 pcq-limit=50 pcq-rate=7200k \
pcq-src-address-mask=32 pcq-src-address6-mask=64 pcq-total-limit=2000
add kind=pcq name=8M pcq-burst-rate=0 pcq-burst-threshold=0 pcq-burst-time=\
10s pcq-classifier=dst-address pcq-dst-address-mask=32 \
pcq-dst-address6-mask=64 pcq-limit=50 pcq-rate=8200k \
pcq-src-address-mask=32 pcq-src-address6-mask=64 pcq-total-limit=2000
add kind=pcq name=10M pcq-burst-rate=0 pcq-burst-threshold=0 pcq-burst-time=\
10s pcq-classifier=dst-address pcq-dst-address-mask=32 \
pcq-dst-address6-mask=64 pcq-limit=50 pcq-rate=10200k \
pcq-src-address-mask=32 pcq-src-address6-mask=64 pcq-total-limit=2000
add kind=pcq name=12M pcq-burst-rate=0 pcq-burst-threshold=0 pcq-burst-time=\
10s pcq-classifier=dst-address pcq-dst-address-mask=32 \
pcq-dst-address6-mask=64 pcq-limit=50 pcq-rate=12200k \
pcq-src-address-mask=32 pcq-src-address6-mask=64 pcq-total-limit=2000
add kind=pcq name=15M pcq-burst-rate=0 pcq-burst-threshold=0 pcq-burst-time=\
10s pcq-classifier=dst-address pcq-dst-address-mask=32 \
pcq-dst-address6-mask=64 pcq-limit=50 pcq-rate=15200k \
pcq-src-address-mask=32 pcq-src-address6-mask=64 pcq-total-limit=2000
add kind=pcq name=18M pcq-burst-rate=0 pcq-burst-threshold=0 pcq-burst-time=\
10s pcq-classifier=dst-address pcq-dst-address-mask=32 \
pcq-dst-address6-mask=64 pcq-limit=50 pcq-rate=18200k \
pcq-src-address-mask=32 pcq-src-address6-mask=64 pcq-total-limit=2000
add kind=pcq name=20M pcq-burst-rate=0 pcq-burst-threshold=0 pcq-burst-time=\
10s pcq-classifier=dst-address pcq-dst-address-mask=32 \
pcq-dst-address6-mask=64 pcq-limit=50 pcq-rate=20200k \
pcq-src-address-mask=32 pcq-src-address6-mask=64 pcq-total-limit=2000
add kind=pcq name=25M pcq-burst-rate=0 pcq-burst-threshold=0 pcq-burst-time=\
10s pcq-classifier=dst-address pcq-dst-address-mask=32 \
pcq-dst-address6-mask=64 pcq-limit=50 pcq-rate=25200k \
pcq-src-address-mask=32 pcq-src-address6-mask=64 pcq-total-limit=2000
add kind=pcq name=30M pcq-burst-rate=0 pcq-burst-threshold=0 pcq-burst-time=\
10s pcq-classifier=dst-address pcq-dst-address-mask=32 \
pcq-dst-address6-mask=64 pcq-limit=50 pcq-rate=30200k \
pcq-src-address-mask=32 pcq-src-address6-mask=64 pcq-total-limit=2000
add kind=pcq name=35M pcq-burst-rate=0 pcq-burst-threshold=0 pcq-burst-time=\
10s pcq-classifier=dst-address pcq-dst-address-mask=32 \
pcq-dst-address6-mask=64 pcq-limit=50 pcq-rate=35200k \
pcq-src-address-mask=32 pcq-src-address6-mask=64 pcq-total-limit=2000
add kind=pcq name=40M pcq-burst-rate=0 pcq-burst-threshold=0 pcq-burst-time=\
10s pcq-classifier=dst-address pcq-dst-address-mask=32 \
pcq-dst-address6-mask=64 pcq-limit=50 pcq-rate=40200k \
pcq-src-address-mask=32 pcq-src-address6-mask=64 pcq-total-limit=2000
add kind=pcq name=50M pcq-burst-rate=0 pcq-burst-threshold=0 pcq-burst-time=\
10s pcq-classifier=dst-address pcq-dst-address-mask=32 \
pcq-dst-address6-mask=64 pcq-limit=50 pcq-rate=50200k \
pcq-src-address-mask=32 pcq-src-address6-mask=64 pcq-total-limit=2000

/queue simple
remove [find packet-marks=hit-thome]
remove [find packet-marks=cache-hit]
remove [find packet-marks=thome-up]
remove [find packet-marks=cache-clientes512k]
remove [find packet-marks=cache-clientes1M]
remove [find packet-marks=cache-clientes2M]
remove [find packet-marks=cache-clientes3M]
remove [find packet-marks=cache-clientes4M]
remove [find packet-marks=cache-clientes5M]
remove [find packet-marks=cache-clientes6M]
remove [find packet-marks=cache-clientes7M]
remove [find packet-marks=cache-clientes8M]
remove [find packet-marks=cache-clientes10M]
remove [find packet-marks=cache-clientes12M]
remove [find packet-marks=cache-clientes15M]
remove [find packet-marks=cache-clientes18M]
remove [find packet-marks=cache-clientes20M]
remove [find packet-marks=cache-clientes25M]
remove [find packet-marks=cache-clientes30M]
remove [find packet-marks=cache-clientes35M]
remove [find packet-marks=cache-clientes40M]
remove [find packet-marks=cache-clientes50M]

remove [find packet-marks=upload-clientes512k]


remove [find packet-marks=upload-clientes1M]
remove [find packet-marks=upload-clientes2M]
remove [find packet-marks=upload-clientes3M]
remove [find packet-marks=upload-clientes4M]
remove [find packet-marks=upload-clientes5M]
remove [find packet-marks=upload-clientes6M]
remove [find packet-marks=upload-clientes7M]
remove [find packet-marks=upload-clientes8M]
remove [find packet-marks=upload-clientes10M]
remove [find packet-marks=upload-clientes12M]
remove [find packet-marks=upload-clientes15M]
remove [find packet-marks=upload-clientes15M]
remove [find packet-marks=upload-clientes18M]
remove [find packet-marks=upload-clientes20M]
remove [find packet-marks=upload-clientes25M]
remove [find packet-marks=upload-clientes30M]
remove [find packet-marks=upload-clientes35M]
remove [find packet-marks=upload-clientes40M]
remove [find packet-marks=upload-clientes50M]

add name=cache512k packet-marks=cache-clientes512k priority=6/6 queue=512k/512k


target="0.0.0.0/0"
add name=cache1M packet-marks=cache-clientes1M priority=6/6 queue=1M/1M
target="0.0.0.0/0"
add name=cache2M packet-marks=cache-clientes2M priority=6/6 queue=2M/2M
target="0.0.0.0/0"
add name=cache3M packet-marks=cache-clientes3M priority=6/6 queue=3M/3M
target="0.0.0.0/0"
add name=cache4M packet-marks=cache-clientes4M priority=6/6 queue=4M/4M
target="0.0.0.0/0"
add name=cache5M packet-marks=cache-clientes5M priority=6/6 queue=5M/5M
target="0.0.0.0/0"
add name=cache6M packet-marks=cache-clientes6M priority=6/6 queue=6M/6M
target="0.0.0.0/0"
add name=cache7M packet-marks=cache-clientes7M priority=6/6 queue=7M/7M
target="0.0.0.0/0"
add name=cache8M packet-marks=cache-clientes8M priority=6/6 queue=8M/8M
target="0.0.0.0/0"
add name=cache10M packet-marks=cache-clientes10M priority=6/6 queue=10M/10M
target="0.0.0.0/0"
add name=cache12M packet-marks=cache-clientes12M priority=6/6 queue=12M/12M
target="0.0.0.0/0"
add name=cache15M packet-marks=cache-clientes15M priority=6/6 queue=15M/15M
target="0.0.0.0/0"
add name=cache18M packet-marks=cache-clientes18M priority=6/6 queue=18M/18M
target="0.0.0.0/0"
add name=cache20M packet-marks=cache-clientes20M priority=6/6 queue=20M/20M
target="0.0.0.0/0"
add name=cache25M packet-marks=cache-clientes25M priority=6/6 queue=25M/25M
target="0.0.0.0/0"
add name=cache30M packet-marks=cache-clientes30M priority=6/6 queue=30M/30M
target="0.0.0.0/0"
add name=cache35M packet-marks=cache-clientes35M priority=6/6 queue=35M/35M
target="0.0.0.0/0"
add name=cache40M packet-marks=cache-clientes40M priority=6/6 queue=40M/40M
target="0.0.0.0/0"
add name=cache50M packet-marks=cache-clientes50M priority=6/6 queue=50M/50M
target="0.0.0.0/0"

add name=upload-512k packet-marks=upload-clientes512k priority=6/6 queue=512k/512k


target="0.0.0.0/0"
add name=upload-1M packet-marks=upload-clientes1M priority=6/6 queue=1M/1M
target="0.0.0.0/0"
add name=upload-2M packet-marks=upload-clientes2M priority=6/6 queue=2M/2M
target="0.0.0.0/0"
add name=upload-3M packet-marks=upload-clientes3M priority=6/6 queue=3M/3M
target="0.0.0.0/0"
add name=upload-4M packet-marks=upload-clientes4M priority=6/6 queue=4M/4M
target="0.0.0.0/0"
add name=upload-5M packet-marks=upload-clientes5M priority=6/6 queue=5M/5M
target="0.0.0.0/0"
add name=upload-6M packet-marks=upload-clientes6M priority=6/6 queue=6M/6M
target="0.0.0.0/0"
add name=upload-7M packet-marks=upload-clientes7M priority=6/6 queue=7M/7M
target="0.0.0.0/0"
add name=upload-8M packet-marks=upload-clientes8M priority=6/6 queue=8M/8M
target="0.0.0.0/0"
add name=upload-10M packet-marks=upload-clientes10M priority=6/6 queue=10M/10M
target="0.0.0.0/0"
add name=upload-12M packet-marks=upload-clientes12M priority=6/6 queue=12M/12M
target="0.0.0.0/0"
add name=upload-15M packet-marks=upload-clientes15M priority=6/6 queue=15M/15M
target="0.0.0.0/0"
add name=upload-18M packet-marks=upload-clientes18M priority=6/6 queue=18M/18M
target="0.0.0.0/0"
add name=upload-20M packet-marks=upload-clientes20M priority=6/6 queue=20M/20M
target="0.0.0.0/0"
add name=upload-25M packet-marks=upload-clientes25M priority=6/6 queue=25M/25M
target="0.0.0.0/0"
add name=upload-30M packet-marks=upload-clientes30M priority=6/6 queue=30M/30M
target="0.0.0.0/0"
add name=upload-35M packet-marks=upload-clientes35M priority=6/6 queue=35M/35M
target="0.0.0.0/0"
add name=upload-40M packet-marks=upload-clientes40M priority=6/6 queue=40M/40M
target="0.0.0.0/0"
add name=upload-50M packet-marks=upload-clientes50M priority=6/6 queue=50M/50M
target="0.0.0.0/0"

/ip dns cache flush

/ip firewall address-list


remove [find list=sites-fora]
remove [find list=DNS-locais]

add address=10.0.0.0/8 disabled=no list=DNS-locais


add address=172.16.0.0/12 disabled=no list=DNS-locais
add address=192.168.0.0/16 disabled=no list=DNS-locais
add address=201.90.0.2 disabled=no list=DNS-locais
add address=www.minhaconexao.com.br disabled=no list=reverso
add address=www.localizaip.com.br disabled=no list=reverso
add address=meuip.com.br disabled=no list=reverso
add address=meuip.com disabled=no list=reverso
add address=www.meuip.com.br disabled=no list=reverso
add address=www.localizaip.com disabled=no list=reverso
add address=meuip.net.br disabled=no list=reverso
add address=www.meuip.net.br disabled=no list=reverso
add address=myip.com disabled=no list=reverso
add address=www.myip.com disabled=no list=reverso
add address=www.whatismyip.com.br disabled=no list=reverso
add address=whatismyip.com.br disabled=no list=reverso
add address=whatismyip.com disabled=no list=reverso
add address=www.whatismyip.com disabled=no list=reverso
add address=e-meuip.com disabled=no list=reverso
add address=www.e-meuip.com disabled=no list=reverso
add address=meuenderecoip.com disabled=no list=reverso
add address=www.speedtest.net disabled=no list=reverso
add address=nperf.com disabled=no list=reverso
add address=speedtest.net disabled=no list=reverso
add address=velocidade.algartelecom.com.br disabled=no list=reverso
add address=copeltelecom.speedtestcustom.com disabled=no list=reverso
add address=qualmeuip.net disabled=no list=reverso
add address=www.qualmeuip.net disabled=no list=reverso
add address=www.dialhost.com.br disabled=no list=reverso
add address=dialhost.com.br disabled=no list=reverso
add address=meuip.co disabled=no list=reverso
add address=meuip.eu disabled=no list=reverso
add address=testdevelocidadgratis.com disabled=no list=reverso
add address=www.testdevelocidad.es disabled=no list=reverso

/ip firewall filter


remove [find dst-port="8080,5060" content="HI"]
remove [find dst-port="5060,8080" content="HI"]
remove [find dst-port="8080" content="HI"]
remove [find dst-address="201.90.0.2"]
remove [find src-address="201.90.0.2"]
add action=accept chain=forward comment="==== LIBERAR THOMECACHE ====" dst-
address=201.90.0.2
add action=accept chain=forward src-address=201.90.0.2

move [find dst-address="201.90.0.2"] [:pick [find] 0]


move [find src-address="201.90.0.2"] [:pick [find] 1]

/ip firewall mangle


remove [find new-routing-mark=Thome dst-port="80,8777"]
remove [find new-routing-mark=Thome dst-port="80,8080"]
remove [find new-routing-mark=Thome dst-port="80"]
remove [find new-routing-mark=Thome protocol="udp" dst-port="53"]
remove [find new-routing-mark=Thome protocol="tcp" dst-port="53"]
remove [find new-connection-mark=velocimetro]
remove [find new-connection-mark=velocimetro-up]
remove [find new-connection-mark=velocimetro-down]
remove [find new-connection-mark=thomevlc-up]
remove [find new-connection-mark=thomevlc-down]

remove [find new-packet-mark=hit-thome]


remove [find new-packet-mark=thome-up]

remove [find new-packet-mark=cache-clientes512k]


remove [find new-packet-mark=cache-clientes1M]
remove [find new-packet-mark=cache-clientes2M]
remove [find new-packet-mark=cache-clientes3M]
remove [find new-packet-mark=cache-clientes4M]
remove [find new-packet-mark=cache-clientes5M]
remove [find new-packet-mark=cache-clientes6M]
remove [find new-packet-mark=cache-clientes7M]
remove [find new-packet-mark=cache-clientes8M]
remove [find new-packet-mark=cache-clientes10M]
remove [find new-packet-mark=cache-clientes12M]
remove [find new-packet-mark=cache-clientes15M]
remove [find new-packet-mark=cache-clientes18M]
remove [find new-packet-mark=cache-clientes20M]
remove [find new-packet-mark=cache-clientes25M]
remove [find new-packet-mark=cache-clientes30M]
remove [find new-packet-mark=cache-clientes35M]
remove [find new-packet-mark=cache-clientes40M]
remove [find new-packet-mark=cache-clientes50M]

remove [find new-packet-mark=upload-clientes512k]


remove [find new-packet-mark=upload-clientes1M]
remove [find new-packet-mark=upload-clientes2M]
remove [find new-packet-mark=upload-clientes3M]
remove [find new-packet-mark=upload-clientes4M]
remove [find new-packet-mark=upload-clientes5M]
remove [find new-packet-mark=upload-clientes6M]
remove [find new-packet-mark=upload-clientes7M]
remove [find new-packet-mark=upload-clientes8M]
remove [find new-packet-mark=upload-clientes10M]
remove [find new-packet-mark=upload-clientes12M]
remove [find new-packet-mark=upload-clientes15M]
remove [find new-packet-mark=upload-clientes18M]
remove [find new-packet-mark=upload-clientes20M]
remove [find new-packet-mark=upload-clientes25M]
remove [find new-packet-mark=upload-clientes30M]
remove [find new-packet-mark=upload-clientes35M]
remove [find new-packet-mark=upload-clientes40M]
remove [find new-packet-mark=upload-clientes50M]

remove [find src-address-list="bloqueio" action="accept"]


remove [find src-address-list="pendencia" action="accept"]
remove [find src-address-list="pgcorte" action="accept"]
remove [find src-address-list="pgaviso" action="accept"]

add action=accept chain=prerouting comment=bloqueio disabled=no src-address-


list=bloqueio
add action=accept chain=prerouting comment=pendencia disabled=no src-address-
list=pendencia
add action=accept chain=prerouting comment=pgcorte disabled=no src-address-
list=pgcorte
add action=accept chain=prerouting comment=pgaviso disabled=no src-address-
list=pgaviso

add action=mark-connection chain=prerouting comment=THOMECACHE disabled=no \


dst-port=8080,9090 new-connection-mark=thomevlc-up passthrough=no
protocol=tcp
add action=mark-connection chain=forward disabled=no \
dst-port=8080,9090 new-connection-mark=thomevlc-up passthrough=no
protocol=tcp
add action=mark-connection chain=prerouting disabled=no \
src-port=8080,9090 new-connection-mark=thomevlc-down passthrough=no
protocol=tcp
add action=mark-connection chain=forward disabled=no \
src-port=8080,9090 new-connection-mark=thomevlc-down passthrough=no
protocol=tcp

add action=mark-routing chain=prerouting comment=THOMECACHE disabled=yes \


dst-port=80 new-routing-mark=Thome \
passthrough=no protocol=tcp src-address=!201.90.0.2
add action=mark-routing chain=prerouting disabled=yes dst-address-list=!DNS-
locais \
dst-port=53 new-routing-mark=Thome passthrough=no protocol=udp \
src-address=!201.90.0.2
add action=mark-routing chain=prerouting disabled=yes dst-address-list=!DNS-
locais \
dst-port=53 new-routing-mark=Thome passthrough=no protocol=tcp \
src-address=!201.90.0.2

add action=mark-packet chain=postrouting comment="Down plano 512k" \


disabled=no connection-mark=thomevlc-down dst-address-list=512k new-packet-
mark=\
cache-clientes512k passthrough=no
add action=mark-packet chain=postrouting comment="Down plano 1M " \
disabled=no connection-mark=thomevlc-down dst-address-list=1M new-packet-
mark=cache-clientes1M \
passthrough=no
add action=mark-packet chain=postrouting comment="Down plano 2M" \
disabled=no connection-mark=thomevlc-down dst-address-list=2M new-packet-
mark=cache-clientes2M \
passthrough=no
add action=mark-packet chain=postrouting comment="Down plano 3M" \
disabled=no connection-mark=thomevlc-down dst-address-list=3M new-packet-
mark=cache-clientes3M \
passthrough=no
add action=mark-packet chain=postrouting comment="Down plano 4M" \
disabled=no connection-mark=thomevlc-down dst-address-list=4M new-packet-
mark=cache-clientes4M \
passthrough=no
add action=mark-packet chain=postrouting comment="Down plano 5M" \
disabled=no connection-mark=thomevlc-down dst-address-list=5M new-packet-
mark=cache-clientes5M \
passthrough=no
add action=mark-packet chain=postrouting comment="Down plano 6M" \
disabled=no connection-mark=thomevlc-down dst-address-list=6M new-packet-
mark=cache-clientes6M \
passthrough=no
add action=mark-packet chain=postrouting comment="Down plano 7M" \
disabled=no connection-mark=thomevlc-down dst-address-list=7M new-packet-
mark=cache-clientes7M \
passthrough=no
add action=mark-packet chain=postrouting comment="Down plano 8M" \
disabled=no connection-mark=thomevlc-down dst-address-list=8M new-packet-
mark=cache-clientes8M \
passthrough=no
add action=mark-packet chain=postrouting comment="Down plano 10M" \
disabled=no connection-mark=thomevlc-down dst-address-list=10M new-packet-
mark=\
cache-clientes10M passthrough=no
add action=mark-packet chain=postrouting comment="Down plano 12M" \
disabled=no connection-mark=thomevlc-down dst-address-list=12M new-packet-
mark=\
cache-clientes12M passthrough=no
add action=mark-packet chain=postrouting comment="Down plano 15M" \
disabled=no connection-mark=thomevlc-down dst-address-list=15M new-packet-
mark=\
cache-clientes15M passthrough=no
add action=mark-packet chain=postrouting comment="Down plano 18M" \
disabled=no connection-mark=thomevlc-down dst-address-list=18M new-packet-
mark=\
cache-clientes18M passthrough=no
add action=mark-packet chain=postrouting comment="Down plano 20M" \
disabled=no connection-mark=thomevlc-down dst-address-list=20M new-packet-
mark=\
cache-clientes20M passthrough=no
add action=mark-packet chain=postrouting comment="Down plano 25M" \
disabled=no connection-mark=thomevlc-down dst-address-list=25M new-packet-
mark=\
cache-clientes25M passthrough=no
add action=mark-packet chain=postrouting comment="Down plano 30M" \
disabled=no connection-mark=thomevlc-down dst-address-list=30M new-packet-
mark=\
cache-clientes30M passthrough=no
add action=mark-packet chain=postrouting comment="Down plano 35M" \
disabled=no connection-mark=thomevlc-down dst-address-list=35M new-packet-
mark=\
cache-clientes35M passthrough=no
add action=mark-packet chain=postrouting comment="Down plano 40M" \
disabled=no connection-mark=thomevlc-down dst-address-list=40M new-packet-
mark=\
cache-clientes40M passthrough=no
add action=mark-packet chain=postrouting comment="Down plano 50M" \
disabled=no connection-mark=thomevlc-down dst-address-list=50M new-packet-
mark=\
cache-clientes50M passthrough=no

add action=mark-packet chain=postrouting comment="Upload plano 512k" \


disabled=no new-packet-mark=upload-clientes512k passthrough=no \
connection-mark=thomevlc-up src-address-list=512k
add action=mark-packet chain=postrouting comment="Upload plano 1M" \
disabled=no new-packet-mark=upload-clientes1M passthrough=no \
connection-mark=thomevlc-up src-address-list=1M
add action=mark-packet chain=postrouting comment="Upload plano 2M" \
disabled=no new-packet-mark=upload-clientes2M passthrough=no \
connection-mark=thomevlc-up src-address-list=2M
add action=mark-packet chain=postrouting comment="Upload plano 3M" \
disabled=no new-packet-mark=upload-clientes3M passthrough=no \
connection-mark=thomevlc-up src-address-list=3M
add action=mark-packet chain=postrouting comment="Upload plano 4M" \
disabled=no new-packet-mark=upload-clientes4M passthrough=no \
connection-mark=thomevlc-up src-address-list=4M
add action=mark-packet chain=postrouting comment="Upload plano 5M" \
disabled=no new-packet-mark=upload-clientes5M passthrough=no \
connection-mark=thomevlc-up src-address-list=5M
add action=mark-packet chain=postrouting comment="Upload plano 6M" \
disabled=no new-packet-mark=upload-clientes6M passthrough=no \
connection-mark=thomevlc-up src-address-list=6M
add action=mark-packet chain=postrouting comment="Upload plano 7M" \
disabled=no new-packet-mark=upload-clientes7M passthrough=no \
connection-mark=thomevlc-up src-address-list=7M
add action=mark-packet chain=postrouting comment="Upload plano 8M" \
disabled=no new-packet-mark=upload-clientes8M passthrough=no \
connection-mark=thomevlc-up src-address-list=8M
add action=mark-packet chain=postrouting comment="Upload plano 10M" \
disabled=no new-packet-mark=upload-clientes10M passthrough=no \
connection-mark=thomevlc-up src-address-list=10M
add action=mark-packet chain=postrouting comment="Upload plano 12M" \
disabled=no new-packet-mark=upload-clientes12M passthrough=no \
connection-mark=thomevlc-up src-address-list=12M
add action=mark-packet chain=postrouting comment="Upload plano 15M" \
disabled=no new-packet-mark=upload-clientes15M passthrough=no \
connection-mark=thomevlc-up src-address-list=15M
add action=mark-packet chain=postrouting comment="Upload plano 18M" \
disabled=no new-packet-mark=upload-clientes18M passthrough=no \
connection-mark=thomevlc-up src-address-list=18M
add action=mark-packet chain=postrouting comment="Upload plano 20M" \
disabled=no new-packet-mark=upload-clientes20M passthrough=no \
connection-mark=thomevlc-up src-address-list=20M
add action=mark-packet chain=postrouting comment="Upload plano 25M" \
disabled=no new-packet-mark=upload-clientes25M passthrough=no \
connection-mark=thomevlc-up src-address-list=25M
add action=mark-packet chain=postrouting comment="Upload plano 30M" \
disabled=no new-packet-mark=upload-clientes30M passthrough=no \
connection-mark=thomevlc-up src-address-list=30M
add action=mark-packet chain=postrouting comment="Upload plano 35M" \
disabled=no new-packet-mark=upload-clientes35M passthrough=no \
connection-mark=thomevlc-up src-address-list=35M
add action=mark-packet chain=postrouting comment="Upload plano 40M" \
disabled=no new-packet-mark=upload-clientes40M passthrough=no \
connection-mark=thomevlc-up src-address-list=40M
add action=mark-packet chain=postrouting comment="Upload plano 50M" \
disabled=no new-packet-mark=upload-clientes50M passthrough=no \
connection-mark=thomevlc-up src-address-list=50M

move [find src-address-list="bloqueio" action="accept"] [:pick [find] 0]


move [find src-address-list="pendencia" action="accept"] [:pick [find] 1]
move [find src-address-list="pgcorte" action="accept"] [:pick [find] 2]
move [find src-address-list="pgaviso" action="accept"] [:pick [find] 3]

move [find new-routing-mark=Thome dst-port="80,8777"] [:pick [find] 4]


move [find new-routing-mark=Thome dst-port="80,8080"] [:pick [find] 4]
move [find new-routing-mark=Thome dst-port="80"] [:pick [find] 4]
move [find new-routing-mark=Thome protocol="udp" dst-port="53"] [:pick [find] 5]
move [find new-routing-mark=Thome protocol="tcp" dst-port="53"] [:pick [find] 6]
move [find new-packet-mark=cache-clientes512k] [:pick [find] 7]
move [find new-packet-mark=cache-clientes1M] [:pick [find] 8]
move [find new-packet-mark=cache-clientes2M] [:pick [find] 9]
move [find new-packet-mark=cache-clientes3M] [:pick [find] 10]
move [find new-packet-mark=cache-clientes4M] [:pick [find] 11]
move [find new-packet-mark=cache-clientes5M] [:pick [find] 12]
move [find new-packet-mark=cache-clientes6M] [:pick [find] 13]
move [find new-packet-mark=cache-clientes7M] [:pick [find] 14]
move [find new-packet-mark=cache-clientes8M] [:pick [find] 15]
move [find new-packet-mark=cache-clientes10M] [:pick [find] 16]
move [find new-packet-mark=cache-clientes12M] [:pick [find] 17]
move [find new-packet-mark=cache-clientes15M] [:pick [find] 18]
move [find new-packet-mark=cache-clientes18M] [:pick [find] 19]
move [find new-packet-mark=cache-clientes20M] [:pick [find] 20]
move [find new-packet-mark=cache-clientes25M] [:pick [find] 21]
move [find new-packet-mark=cache-clientes30M] [:pick [find] 22]
move [find new-packet-mark=cache-clientes35M] [:pick [find] 23]
move [find new-packet-mark=cache-clientes40M] [:pick [find] 24]
move [find new-packet-mark=cache-clientes50M] [:pick [find] 25]

move [find new-packet-mark=upload-clientes512k] [:pick [find] 26]


move [find new-packet-mark=upload-clientes1M] [:pick [find] 27]
move [find new-packet-mark=upload-clientes2M] [:pick [find] 28]
move [find new-packet-mark=upload-clientes3M] [:pick [find] 29]
move [find new-packet-mark=upload-clientes4M] [:pick [find] 30]
move [find new-packet-mark=upload-clientes5M] [:pick [find] 31]
move [find new-packet-mark=upload-clientes6M] [:pick [find] 32]
move [find new-packet-mark=upload-clientes7M] [:pick [find] 33]
move [find new-packet-mark=upload-clientes8M] [:pick [find] 34]
move [find new-packet-mark=upload-clientes10M] [:pick [find] 35]
move [find new-packet-mark=upload-clientes12M] [:pick [find] 36]
move [find new-packet-mark=upload-clientes15M] [:pick [find] 37]
move [find new-packet-mark=upload-clientes18M] [:pick [find] 38]
move [find new-packet-mark=upload-clientes20M] [:pick [find] 39]
move [find new-packet-mark=upload-clientes25M] [:pick [find] 40]
move [find new-packet-mark=upload-clientes30M] [:pick [find] 41]
move [find new-packet-mark=upload-clientes35M] [:pick [find] 42]
move [find new-packet-mark=upload-clientes40M] [:pick [find] 43]
move [find new-packet-mark=upload-clientes50M] [:pick [find] 44]

move [find action="mark-connection" new-connection-mark="thomevlc-up"] [:pick


[find] 0]
move [find action="mark-connection" new-connection-mark="thomevlc-down"] [:pick
[find] 1]

/ip firewall nat


remove [find src-address="201.90.0.2"]
add action=masquerade chain=srcnat comment="masquerade thomecache" src-
address=201.90.0.2
move [find src-address="201.90.0.2"] [:pick [find] 0]

/ip dns static


add address=201.90.0.2 disabled=no name=www.wpad ttl=1d
add address=201.90.0.2 disabled=no name=certificado.lan ttl=1d
add address=201.90.0.2 disabled=no name=thomecache.lan ttl=1d
add address=201.90.0.2 disabled=no name=celular ttl=1d

/ip route
remove [find gateway="201.90.0.2"]
remove [find routing-mark=Thome]
add check-gateway=ping disabled=yes distance=1 dst-address=0.0.0.0/0 gateway=\
201.90.0.2 routing-mark=Thome scope=30 target-scope=10

/system scheduler
remove [find name=CachePlano]

add disabled=no interval=300s name=CachePlano on-event="/queue simple move [fin\


d name=\"cache512k\"] [:pick [find] 0]\r\
\n/queue simple move [find name=\"cache1M\"] [:pick [find] 1]\r\
\n/queue simple move [find name=\"cache2M\"] [:pick [find] 2]\r\
\n/queue simple move [find name=\"cache3M\"] [:pick [find] 3]\r\
\n/queue simple move [find name=\"cache4M\"] [:pick [find] 4]\r\
\n/queue simple move [find name=\"cache5M\"] [:pick [find] 5]\r\
\n/queue simple move [find name=\"cache6M\"] [:pick [find] 6]\r\
\n/queue simple move [find name=\"cache7M\"] [:pick [find] 7]\r\
\n/queue simple move [find name=\"cache8M\"] [:pick [find] 8]\r\
\n/queue simple move [find name=\"cache10M\"] [:pick [find] 9]\r\
\n/queue simple move [find name=\"cache12M\"] [:pick [find] 10]\r\
\n/queue simple move [find name=\"cache15M\"] [:pick [find] 11]\r\
\n/queue simple move [find name=\"cache18M\"] [:pick [find] 12]\r\
\n/queue simple move [find name=\"cache20M\"] [:pick [find] 13]\r\
\n/queue simple move [find name=\"cache25M\"] [:pick [find] 14]\r\
\n/queue simple move [find name=\"cache30M\"] [:pick [find] 15]\r\
\n/queue simple move [find name=\"cache35M\"] [:pick [find] 16]\r\
\n/queue simple move [find name=\"cache40M\"] [:pick [find] 17]\r\
\n/queue simple move [find name=\"cache50M\"] [:pick [find] 18]\r\
\n\r\
\n/queue simple move [find name=\"upload-512k\"] [:pick [find] 19]\r\
\n/queue simple move [find name=\"upload-1M\"] [:pick [find] 20]\r\
\n/queue simple move [find name=\"upload-2M\"] [:pick [find] 21]\r\
\n/queue simple move [find name=\"upload-3M\"] [:pick [find] 22]\r\
\n/queue simple move [find name=\"upload-4M\"] [:pick [find] 23]\r\
\n/queue simple move [find name=\"upload-5M\"] [:pick [find] 24]\r\
\n/queue simple move [find name=\"upload-6M\"] [:pick [find] 25]\r\
\n/queue simple move [find name=\"upload-7M\"] [:pick [find] 26]\r\
\n/queue simple move [find name=\"upload-8M\"] [:pick [find] 27]\r\
\n/queue simple move [find name=\"upload-10M\"] [:pick [find] 28]\r\
\n/queue simple move [find name=\"upload-12M\"] [:pick [find] 29]\r\
\n/queue simple move [find name=\"upload-15M\"] [:pick [find] 30]\r\
\n/queue simple move [find name=\"upload-18M\"] [:pick [find] 31]\r\
\n/queue simple move [find name=\"upload-20M\"] [:pick [find] 32]\r\
\n/queue simple move [find name=\"upload-25M\"] [:pick [find] 33]\r\
\n/queue simple move [find name=\"upload-30M\"] [:pick [find] 34]\r\
\n/queue simple move [find name=\"upload-35M\"] [:pick [find] 35]\r\
\n/queue simple move [find name=\"upload-40M\"] [:pick [find] 36]\r\
\n/queue simple move [find name=\"upload-50M\"] [:pick [find] 37]\r\
\n\r\
\n/queue simple move [find name=\"DNS\"] [:pick [find] 38]\r\
\n/queue simple move [find name=\"ICMP\"] [:pick [find] 39]\r\
\n/queue simple move [find name=\"ZAP\"] [:pick [find] 40]\r\
\n" policy=\
ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive,api \
start-time=startup

/tool netwatch
remove [find host=201.90.0.2]
add disabled=no down-script="ip firewall mangle set [ find new-routing-mark=Th\
ome ] disabled=yes\r\
\n ip route set [ find routing-mark=Thome ] disabled=yes\r\
\n ip firewall mangle remove [find new-connection-mark=velocimetro]\r\
\n ip firewall mangle remove [find new-connection-mark=velocimetro-up]\r\
\n ip firewall mangle remove [find new-connection-mark=velocimetro-down]\r\
\n ip firewall mangle remove [find new-connection-mark=thomevlc-up]\r\
\n ip firewall mangle remove [find new-connection-mark=thomevlc-down]\r\
\n ip firewall mangle set [find connection-mark=\"velocimetro\"] disabled=yes\r\
\n ip firewall mangle set [find connection-mark=\"thomevlc-up\"] disabled=yes\r\
\n ip firewall mangle set [find connection-mark=\"thomevlc-down\"] disabled=yes\r\
\n ip dns static set [ find name=www.wpad ] disabled=yes\r\
\n ip dns static set [ find name=thomecache.lan ] disabled=yes\r\
\n ip dns static set [ find name=celular ] disabled=yes\r\
\n ip dns static set [ find name=certificado.lan ] disabled=yes\r\
\n" host=201.90.0.2 interval=3s timeout=1s up-script="ip firewall mangle s\
et [ find new-routing-mark=Thome ] disabled=no\r\
\n ip route set [ find routing-mark=Thome ] disabled=no\r\
\n ip firewall mangle remove [find new-connection-mark=velocimetro]\r\
\n ip firewall mangle remove [find new-connection-mark=velocimetro-up]\r\
\n ip firewall mangle remove [find new-connection-mark=velocimetro-down]\r\
\n ip firewall mangle remove [find new-connection-mark=thomevlc-up]\r\
\n ip firewall mangle remove [find new-connection-mark=thomevlc-down]\r\
\n ip firewall mangle add action=mark-connection chain=prerouting
comment=\"THOMECACHE\" disabled=no dst-port=\"8080,9090\" new-connection-
mark=thomevlc-up passthrough=no protocol=tcp\r\
\n ip firewall mangle add action=mark-connection chain=forward disabled=no dst-
port=\"8080,9090\" new-connection-mark=thomevlc-up passthrough=no protocol=tcp\r\
\n ip firewall mangle add action=mark-connection chain=prerouting disabled=no src-
port=\"8080,9090\" new-connection-mark=thomevlc-down passthrough=no protocol=tcp\r\
\n ip firewall mangle add action=mark-connection chain=forward disabled=no src-
port=\"8080,9090\" new-connection-mark=thomevlc-down passthrough=no protocol=tcp\r\
\n ip firewall mangle move [find action=\"mark-connection\" new-connection-
mark=\"thomevlc-up\"] [:pick [find] 0]\r\
\n ip firewall mangle move [find action=\"mark-connection\" new-connection-
mark=\"thomevlc-down\"] [:pick [find] 1]\r\
\n ip firewall mangle set [find connection-mark=\"velocimetro\"] disabled=no\r\
\n ip firewall mangle set [find connection-mark=\"thomevlc-up\"] disabled=no\r\
\n ip firewall mangle set [find connection-mark=\"thomevlc-down\"] disabled=no\r\
\n ip dns static set [ find name=www.wpad ] disabled=no\r\
\n ip dns static set [ find name=thomecache.lan ] disabled=no\r\
\n ip dns static set [ find name=celular ] disabled=no\r\
\n ip dns static set [ find name=certificado.lan ] disabled=no\r\
\n"

Vous aimerez peut-être aussi