You are on page 1of 1

/interface ethernet

set [ find default-name=ether1 ] comment=NAVEGACION


set [ find default-name=ether2 ] comment=JUEGOS

/routing table
add fib name=HTTP_UDP
add fib name=HTTP_TCP
add fib name=DOTA_TCP
add fib name=DOTA_UDP

/ip address
add address=192.168.210.15/24 interface=ether1 network=192.168.210.0
add address=172.16.50.50/16 interface=LAN network=172.16.0.0
add address=192.168.6.10/24 interface=ether2 network=192.168.6.0

/ip firewall filter

add action=drop chain=forward dst-address=192.168.6.0/24 dst-port=80,443 \


protocol=tcp
add action=drop chain=forward dst-address=192.168.210.0/24 dst-port=\
27000-28000 protocol=tcp
add action=drop chain=forward dst-address=192.168.210.0/24 dst-port=\
27000-28000 protocol=udp
add action=drop chain=forward dst-address=192.168.6.0/24 dst-port=80,443 \
protocol=udp

/ip firewall nat


add action=masquerade chain=srcnat comment=NAVEGACION out-interface=ether1
add action=masquerade chain=srcnat comment=JUEGOS out-interface=ether2

/ip route
add comment=HTTP disabled=no distance=2 dst-address=0.0.0.0/0 gateway=\
192.168.210.1 pref-src="" routing-table=HTTP_TCP scope=30 \
suppress-hw-offload=no target-scope=10
add comment=DOTA disabled=no distance=1 dst-address=0.0.0.0/0 gateway=\
192.168.6.6 pref-src="" routing-table=DOTA_TCP scope=30 \
suppress-hw-offload=no target-scope=10
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.6.6 \
pref-src="" routing-table=DOTA_UDP scope=30 suppress-hw-offload=no \
target-scope=10
add disabled=no distance=2 dst-address=0.0.0.0/0 gateway=192.168.210.1 \
pref-src="" routing-table=HTTP_UDP scope=30 suppress-hw-offload=no \
target-scope=10
add disabled=no dst-address=0.0.0.0/0 gateway=192.168.210.1 routing-table=\
main suppress-hw-offload=no
/system note
set show-at-login=no

You might also like