Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ### copy paste scrip berikut di terminal winbox, scrip ini untuk menambah address list ip lokal secara global ###
- /ip firewall address-list
- add address=10.0.0.0/8 comment="lokal-private" list=lokal-private
- add address=172.16.0.0/12 comment="lokal-private" list=lokal-private
- add address=192.168.0.0/16 comment="lokal-private" list=lokal-private
- #################################################################################################################
- #################################################################################################################
- #### apabila menggunakan PPPOE mikrotik, berikut scriptnya ####
- ## misal nama pppoe mikrotik adalah pppoe1 dan pppoe2, maka :
- ## pengaturan ip route mikrotiknya :
- add check-gateway=ping comment=default distance=1 gateway=pppoe1
- add check-gateway=ping comment=backup-default distance=2 gateway=pppoe1
- add check-gateway=ping comment=jalur1 distance=1 gateway=pppoe1 routing-mark=jalur1
- add check-gateway=ping comment=backup-jalur1 distance=2 gateway=pppoe2 routing-mark=jalur1
- add check-gateway=ping comment=jalur2 distance=1 gateway=pppoe2 routing-mark=jalur2
- add check-gateway=ping comment=backup-jalur2 distance=2 gateway=pppoe1 routing-mark=jalur2
- ## script mangle routing :
- add action=mark-routing chain=prerouting comment=jalur1-LB disabled=yes dst-address-list=!lokal-private dst-address-type=!local new-routing-mark=jalur1 passthrough=no per-connection-classifier=both-addresses-and-ports:2/0
- add action=mark-routing chain=prerouting comment=jalur2-LB disabled=yes dst-address-list=!lokal-private dst-address-type=!local new-routing-mark=jalur2 passthrough=no per-connection-classifier=both-addresses-and-ports:2/1
- #################################################################################################################
- #################################################################################################################
- #### apabila bukan PPPOE mikrotik, berikut scriptnya ####
- ## misal :
- # modem1 menggunakan ether1 dengan ip modem = 192.168.1.1
- # dan modem2 menggunakan ether2 dengan ip modem = 192.168.2.1
- ## pengaturan ip route mikrotiknya :
- add check-gateway=ping comment=default distance=1 gateway=192.168.1.1
- add check-gateway=ping comment=backup-default distance=2 gateway=192.168.2.1
- add check-gateway=ping comment=jalur1 distance=1 gateway=192.168.1.1 routing-mark=jalur1
- add check-gateway=ping comment=backup-jalur1 distance=2 gateway=192.168.2.1 routing-mark=jalur1
- add check-gateway=ping comment=jalur2 distance=1 gateway=192.168.2.1 routing-mark=jalur2
- add check-gateway=ping comment=backup-jalur2 distance=2 gateway=192.168.1.1 routing-mark=jalur2
- ## script mangle routing :
- add action=mark-routing chain=prerouting comment=jalur1-LB disabled=yes src-address-list=lokal-private dst-address-list=!lokal-private dst-address-type=!local new-routing-mark=jalur1 passthrough=no per-connection-classifier=both-addresses-and-ports:2/0
- add action=mark-routing chain=prerouting comment=jalur2-LB disabled=yes src-address-list=lokal-private dst-address-list=!lokal-private dst-address-type=!local new-routing-mark=jalur2 passthrough=no per-connection-classifier=both-addresses-and-ports:2/1
- #################################################################################################################
- ###### BAGAIMANA lebih dari 3 line isp ?
- # tambah ip route
- # tambah mangle 1 mangle lagi
- # ubah bot-address-and-ports, masing-masing = 3/0 , 3/1 dan 3/2
- ##### begitu juga berapun banyak line isp yang digunakan
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement