You are on page 1of 2

/ip firewall nat

add action=dst-nat chain=dstnat comment="Redirect Handycache" dst-address=!


192.168.2.0 dst-port=80,8080,8888,8880,8777,3477,33301 per-connection-
classifier=both-addresses-and-ports:4/0 protocol=tcp src-address-list="Clientes
Internet" to-addresses=192.168.2.10 to-ports=8080
add action=dst-nat chain=dstnat comment="Redirect Handycache" dst-address=!
192.168.2.0 dst-port=80,8080,8888,8880,8777,3477,33301 per-connection-
classifier=both-addresses-and-ports:4/1 protocol=tcp src-address-list="Clientes
Internet" to-addresses=192.168.2.10 to-ports=8181
add action=dst-nat chain=dstnat comment="Redirect Handycache" dst-address=!
192.168.2.0 dst-port=80,8080,8888,8880,8777,3477,33301 per-connection-
classifier=both-addresses-and-ports:4/2 protocol=tcp src-address-list="Clientes
Internet" to-addresses=192.168.2.10 to-ports=8282
add action=dst-nat chain=dstnat comment="Redirect Handycache" dst-address=!
192.168.2.0 dst-port=80,8080,8888,8880,8777,3477,33301 per-connection-
classifier=both-addresses-and-ports:4/3 protocol=tcp src-address-list="Clientes
Internet" to-addresses=192.168.2.10 to-ports=8383

/ip firewall mangle


add action=mark-connection chain=postrouting comment=HandyCache content="Server:
HandyCache" new-connection-mark=handy-connection protocol=tcp src-address=
192.168.2.10
add action=mark-packet chain=postrouting comment=HandyCache2 connection-mark=handy-
connection new-packet-mark=handy-packs

/ip firewall nat


add action=dst-nat chain=dstnat comment=”Redirect Handycache” dst-address=!
192.168.2.10 dst-port=80,8080,8888,8880,8777,3477,33301 protocol=tcp src-address-
list=”Clientes Internet” to-addresses=192.168.2.10 to-ports=1010

/ip firewall nat


add action=dst-nat chain=dstnat comment="Redirect Handycache" dst-
port=80,8080,8888,8880,8777,3477,33301 per-connection-classifier=both-addresses-
and-ports:4/0 protocol=tcp src-address-list="Clientes Internet" to-
addresses=192.168.2.10 to-ports=8080
add action=dst-nat chain=dstnat comment="Redirect Handycache" dst-
port=80,8080,8888,8880,8777,3477,33301 per-connection-classifier=both-addresses-
and-ports:4/1 protocol=tcp src-address-list="Clientes Internet" to-
addresses=192.168.2.10 to-ports=8181
add action=dst-nat chain=dstnat comment="Redirect Handycache" dst-
port=80,8080,8888,8880,8777,3477,33301 per-connection-classifier=both-addresses-
and-ports:4/2 protocol=tcp src-address-list="Clientes Internet" to-
addresses=192.168.2.10 to-ports=8282
add action=dst-nat chain=dstnat comment="Redirect Handycache" dst-
port=80,8080,8888,8880,8777,3477,33301 per-connection-classifier=both-addresses-
and-ports:4/3 protocol=tcp src-address-list="Clientes Internet" to-
addresses=192.168.2.10 to-ports=8383

/ip firewall mangle


add action=mark-connection chain=postrouting comment="HandyCache" content="Server:
HandyCache" new-connection-mark=handy-connection protocol=tcp src-
address=192.168.2.10
add action=mark-packet chain=postrouting comment="handy-packs-small" connection-
bytes=0-256000 connection-mark=handy-connection new-packet-mark=handy-packs-small
passthrough=no protocol=tcp
add action=mark-packet chain=postrouting comment="handy-packs-medium" connection-
bytes=256001-512000 connection-mark=handy-connection new-packet-mark=handy-packs-
medium passthrough=no protocol=tcp
add action=mark-packet chain=postrouting comment="handy-packs-large" connection-
bytes=512001-0 connection-mark=handy-connection new-packet-mark=handy-packs-large
passthrough=no protocol=tcp

/tool netwatch
add comment=Handycache disabled=no down-script="/ip firewall nat set [find
comment=\"Redirect Handycache\"] disabled=yes" host= 192.168.2.10 interval=2s
timeout=2s up-script="/ip firewall nat set [find comment=\"Redirect Handycache\"]
disabled=no"

/ip firewall filter add action=drop chain=forward comment="Bloqueo udp Chrome"


dst-port=80,443 protocol=udp

You might also like