100% found this document useful (1 vote)
1K views2 pages

Loadbalance 2 Isp Beda Speed

This document configures a MikroTik router with two WAN connections and local network access. It sets up interfaces, IP addresses, DHCP, DNS, firewall rules for traffic marking and NAT, and static routes. Local traffic is separated and routed over the appropriate WAN link based on destination address, while all other traffic is NATed to the interface for internet access.

Uploaded by

Roji In
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
1K views2 pages

Loadbalance 2 Isp Beda Speed

This document configures a MikroTik router with two WAN connections and local network access. It sets up interfaces, IP addresses, DHCP, DNS, firewall rules for traffic marking and NAT, and static routes. Local traffic is separated and routed over the appropriate WAN link based on destination address, while all other traffic is NATed to the interface for internet access.

Uploaded by

Roji In
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

/interface bridge

add name=LOKAL

/interface ethernet
set [ find default-name=ether1 ] name=ether1-10mbps
set [ find default-name=ether2 ] name=ether2-5mbps

/interface wireless security-profiles


set [ find default=yes ] supplicant-identity=MikroTik

/ip hotspot profile


set [ find default=yes ] html-directory=flash/hotspot

/ip pool
add name=dhcp_pool0 ranges=192.168.31.2-192.168.31.254

/ip dhcp-server
add address-pool=dhcp_pool0 disabled=no interface=bridge1 name=dhcp1

/interface bridge port


add bridge=bridge1 interface=ether3
add bridge=bridge1 interface=ether4
add bridge=bridge1 interface=ether5

/ip address
add address=10.10.10.10/16 interface=LOKAL network=192.168.31.0
add address=10.211.195.229/18 interface=ISP1 network=192.168.1.0
add address=192.168.1.2/24 interface=ISP2 network=192.168.2.0

/ip dhcp-server network


add address=192.168.31.0/24 gateway=192.168.31.1

/ip dns
set allow-remote-requests=yes servers=8.8.8.8,8.8.4.4

/ip firewall address-list


add address=192.168.0.0/16 list=lokal

/ip firewall mangle


add action=accept chain=prerouting in-interface=ether1-10mbps
add action=accept chain=prerouting in-interface=ether2-5mbps
add action=mark-connection chain=input in-interface=ether1-10mbps \
new-connection-mark=isp-1 passthrough=yes
add action=mark-connection chain=input in-interface=ether2-5mbps \
new-connection-mark=isp-2 passthrough=yes
add action=mark-connection chain=prerouting dst-address-list=!lokal \
new-connection-mark=isp-1 passthrough=yes per-connection-classifier=\
both-addresses-and-ports:3/0 src-address-list=lokal
add action=mark-connection chain=prerouting dst-address-list=!lokal \
new-connection-mark=isp-1 passthrough=yes per-connection-classifier=\
both-addresses-and-ports:3/1 src-address-list=lokal
add action=mark-connection chain=prerouting dst-address-list=!lokal \
new-connection-mark=isp-2 passthrough=yes per-connection-classifier=\
both-addresses-and-ports:3/2 src-address-list=lokal
add action=mark-routing chain=prerouting connection-mark=isp-1 \
dst-address-list=!lokal new-routing-mark=route-isp-1 passthrough=yes \
src-address-list=lokal
add action=mark-routing chain=prerouting connection-mark=isp-2 \
dst-address-list=!lokal new-routing-mark=route-isp-2 passthrough=yes \
src-address-list=lokal
add action=mark-routing chain=output connection-mark=isp-1 dst-address-list=\
!lokal new-routing-mark=route-isp-1 passthrough=yes src-address-list=\
lokal
add action=mark-routing chain=output connection-mark=isp-2 dst-address-list=\
!lokal new-routing-mark=route-isp-2 passthrough=yes src-address-list=\
lokal

/ip firewall nat


add action=masquerade chain=srcnat out-interface=ether1-10mbps
add action=masquerade chain=srcnat out-interface=ether2-5mbps

/ip route
add check-gateway=ping distance=1 gateway=192.168.1.254 routing-mark=\
route-isp-1
add check-gateway=ping distance=1 gateway=192.168.2.254 routing-mark=\
route-isp-2
add distance=1 gateway=192.168.2.254
add distance=1 gateway=192.168.1.254

/system clock
set time-zone-name=Asia/Jakarta

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy