Luis Pelagio
New Member
Buenas noches.
Estoy implementando balanceo pero mi proveedor me entrega ips dinamicas y dos de ellas estan en el mismo Gateway .... estoy siguiendo el curso de Mikrotik y tengo este script ya modificado segun mi configuracion ...
pero no logro tener internet en la interfaz 5_LAN ... he leido por ahi que se puede cambiar las ips por el nombre de la interfaz ... pero no logro hacerlo funcionar podria indicarme mi error???
de antemano gracias
/ip firewall mangle
add action=accept chain=prerouting disabled=no dst-address=189.194.200.156/22
add action=accept chain=prerouting disabled=no dst-address=189.194.200.181/22
add action=accept chain=prerouting disabled=no dst-address=189.194.198.173/22
/ip firewall mangle
add action=mark-connection chain=prerouting connection-mark=no-mark disabled=no dst-address-type=!local \
in-interface=5_LAN new-connection-mark=1_WAN passthrough=yes per-connection-classifier=both-addresses:4/0
add action=mark-connection chain=prerouting connection-mark=no-mark disabled=no dst-address-type=!local \
in-interface=5_LAN new-connection-mark=2_WAN passthrough=yes per-connection-classifier=both-addresses:4/1
add action=mark-connection chain=prerouting connection-mark=no-mark disabled=no dst-address-type=!local \
in-interface=5_LAN new-connection-mark=3_WAN passthrough=yes per-connection-classifier=both-addresses:4/2
add action=mark-connection chain=prerouting connection-mark=no-mark disabled=no dst-address-type=!local \
in-interface=5_LAN new-connection-mark=3_WAN passthrough=yes per-connection-classifier=both-addresses:4/3
/ip firewall mangle
add action=mark-routing chain=prerouting connection-mark=1_WAN disabled=no in-interface=5_LAN \
new-routing-mark=ether1-mark passthrough=yes
add action=mark-routing chain=prerouting connection-mark=2_WAN disabled=no in-interface=5_LAN \
new-routing-mark=ether2-mark passthrough=yes
add action=mark-routing chain=prerouting connection-mark=3_WAN disabled=no in-interface=5_LAN \
new-routing-mark=ether3-mark passthrough=yes
add action=mark-routing chain=output connection-mark=1_WAN disabled=no new-routing-mark=ether1-mark passthrough=yes
add action=mark-routing chain=output connection-mark=3_WAN disabled=no new-routing-mark=ether3-mark passthrough=yes
add action=mark-routing chain=output connection-mark=2_WAN disabled=no new-routing-mark=ether2-mark passthrough=yes
/ip firewall mangle
add action=mark-connection chain=prerouting connection-mark=no-mark disabled=no \
in-interface=1_WAN new-connection-mark=1_WAN passthrough=yes
add action=mark-connection chain=prerouting connection-mark=no-mark disabled=no \
in-interface=3_WAN new-connection-mark=3_WAN passthrough=yes
add action=mark-connection chain=prerouting connection-mark=no-mark disabled=no \
in-interface=2_WAN new-connection-mark=2_WAN passthrough=yes
/ip route
add check-gateway=ping disabled=no distance=1 dst-address=0.0.0.0/0 gateway=189.194.200.156 routing-mark=ether1-mark scope=30 target-scope=10
add check-gateway=ping disabled=no distance=1 dst-address=0.0.0.0/0 gateway=189.194.200.181 routing-mark=ether2-mark scope=30 target-scope=10
add check-gateway=ping disabled=no distance=1 dst-address=0.0.0.0/0 gateway=189.194.198.173 routing-mark=ether3-mark scope=30 target-scope=10
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=189.194.200.156 scope=30 target-scope=10
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=189.194.200.181 scope=30 target-scope=10
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=189.194.198.173 scope=30 target-scope=10
Estoy implementando balanceo pero mi proveedor me entrega ips dinamicas y dos de ellas estan en el mismo Gateway .... estoy siguiendo el curso de Mikrotik y tengo este script ya modificado segun mi configuracion ...
pero no logro tener internet en la interfaz 5_LAN ... he leido por ahi que se puede cambiar las ips por el nombre de la interfaz ... pero no logro hacerlo funcionar podria indicarme mi error???
de antemano gracias
/ip firewall mangle
add action=accept chain=prerouting disabled=no dst-address=189.194.200.156/22
add action=accept chain=prerouting disabled=no dst-address=189.194.200.181/22
add action=accept chain=prerouting disabled=no dst-address=189.194.198.173/22
/ip firewall mangle
add action=mark-connection chain=prerouting connection-mark=no-mark disabled=no dst-address-type=!local \
in-interface=5_LAN new-connection-mark=1_WAN passthrough=yes per-connection-classifier=both-addresses:4/0
add action=mark-connection chain=prerouting connection-mark=no-mark disabled=no dst-address-type=!local \
in-interface=5_LAN new-connection-mark=2_WAN passthrough=yes per-connection-classifier=both-addresses:4/1
add action=mark-connection chain=prerouting connection-mark=no-mark disabled=no dst-address-type=!local \
in-interface=5_LAN new-connection-mark=3_WAN passthrough=yes per-connection-classifier=both-addresses:4/2
add action=mark-connection chain=prerouting connection-mark=no-mark disabled=no dst-address-type=!local \
in-interface=5_LAN new-connection-mark=3_WAN passthrough=yes per-connection-classifier=both-addresses:4/3
/ip firewall mangle
add action=mark-routing chain=prerouting connection-mark=1_WAN disabled=no in-interface=5_LAN \
new-routing-mark=ether1-mark passthrough=yes
add action=mark-routing chain=prerouting connection-mark=2_WAN disabled=no in-interface=5_LAN \
new-routing-mark=ether2-mark passthrough=yes
add action=mark-routing chain=prerouting connection-mark=3_WAN disabled=no in-interface=5_LAN \
new-routing-mark=ether3-mark passthrough=yes
add action=mark-routing chain=output connection-mark=1_WAN disabled=no new-routing-mark=ether1-mark passthrough=yes
add action=mark-routing chain=output connection-mark=3_WAN disabled=no new-routing-mark=ether3-mark passthrough=yes
add action=mark-routing chain=output connection-mark=2_WAN disabled=no new-routing-mark=ether2-mark passthrough=yes
/ip firewall mangle
add action=mark-connection chain=prerouting connection-mark=no-mark disabled=no \
in-interface=1_WAN new-connection-mark=1_WAN passthrough=yes
add action=mark-connection chain=prerouting connection-mark=no-mark disabled=no \
in-interface=3_WAN new-connection-mark=3_WAN passthrough=yes
add action=mark-connection chain=prerouting connection-mark=no-mark disabled=no \
in-interface=2_WAN new-connection-mark=2_WAN passthrough=yes
/ip route
add check-gateway=ping disabled=no distance=1 dst-address=0.0.0.0/0 gateway=189.194.200.156 routing-mark=ether1-mark scope=30 target-scope=10
add check-gateway=ping disabled=no distance=1 dst-address=0.0.0.0/0 gateway=189.194.200.181 routing-mark=ether2-mark scope=30 target-scope=10
add check-gateway=ping disabled=no distance=1 dst-address=0.0.0.0/0 gateway=189.194.198.173 routing-mark=ether3-mark scope=30 target-scope=10
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=189.194.200.156 scope=30 target-scope=10
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=189.194.200.181 scope=30 target-scope=10
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=189.194.198.173 scope=30 target-scope=10