Script-Lb-Pcc (Sfile

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

===MENAMBAHKAN NAT==

/ip firewall nat


add action=masquerade chain=srcnat out-interface=ether1-ISP1
add action=masquerade chain=srcnat out-interface=ether2-ISP2
add action=masquerade chain=srcnat src-address-list=LOKAL

===MENAMBAHKAN ROUTE==
/ip route
add check-gateway=ping comment="KE ISP1" distance=1 gateway=192.168.1.1 \
routing-mark=Route-ISP1
add check-gateway=ping comment="KE ISP2" distance=1 gateway=192.168.2.1 \
routing-mark=Route-ISP2
add check-gateway=ping distance=1 gateway=192.168.1.1
add check-gateway=ping distance=2 gateway=192.168.2.1

===MENAMBAHKAN FIREWALL IP==


/ip firewall address-list
add address=192.168.2.0/24 list=Client-ISP
add address=192.168.1.0/24 list=Client-ISP
add address=10.10.10.0/24 list=Client-ISP
add address=192.168.3.0/24 list=Client-ISP
add address=192.168.4.0/24 list=Client-ISP

===MENAMBAHKAN MANGLE LOAD BALANCE PCC==


/ip firewall filter
add action=passthrough chain=unused-hs-chain comment=\
"place hotspot rules here" disabled=yes
/ip firewall mangle
add action=accept chain=prerouting dst-address-list=Client-ISP
add action=mark-connection chain=input in-interface=ether1-ISP1 \
new-connection-mark=Koneksi-ISP1 passthrough=yes
add action=mark-connection chain=input in-interface=ether2-ISP2 \
new-connection-mark=Koneksi-ISP2 passthrough=yes
add action=mark-routing chain=output connection-mark=Koneksi-ISP1 \
new-routing-mark=Route-ISP1 passthrough=no
add action=mark-routing chain=output connection-mark=Koneksi-ISP2 \
new-routing-mark=Route-ISP2 passthrough=no
add action=mark-connection chain=prerouting dst-address-list=!Client-ISP \
dst-address-type=!local new-connection-mark=Koneksi-ISP1 passthrough=yes \
per-connection-classifier=both-addresses-and-ports:2/0 src-address-list=\
Client-ISP
add action=mark-connection chain=prerouting dst-address-list=!Client-ISP \
dst-address-type=!local new-connection-mark=Koneksi-ISP2 passthrough=yes \
per-connection-classifier=both-addresses-and-ports:2/1 src-address-list=\
Client-ISP
add action=mark-routing chain=prerouting connection-mark=Koneksi-ISP1 \
dst-address-list=!Client-ISP new-routing-mark=Route-ISP1 passthrough=yes \
src-address-list=Client-ISP
add action=mark-routing chain=prerouting connection-mark=Koneksi-ISP2 \
dst-address-list=!Client-ISP new-routing-mark=Route-ISP2 passthrough=yes \
src-address-list=Client-ISP

===MENAMBAHKAN QUEUE SIMPLE==


/queue simple
add max-limit=64k/64k name=zBATAS-BAWAH target=10.10.10.254/32
add name=TOTAL-SPEED queue=default/default target=\
192.168.3.0/24,10.10.10.0/24,192.168.4.0/24
add name=1.Client-Hotspot-PPPoE parent=TOTAL-SPEED queue=default/default \
target=192.168.3.0/24,10.10.10.0/24,192.168.4.0/24

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