Manifest Device :
Berangkattttt
Yang Namanya Loadbalancing kayanya ga mungkin bisa ga ada mangle
chain=prerouting action=mark-connection new-connection-mark=PROXY-1 passthrough=yes connection-state=new in-interface=Squid comments="LOAD BALANCE PROXY PCC"
chain=prerouting action=mark-connection new-connection-mark=PROXY-2 passthrough=yes connection-state=new in-interface=Squid
chain=prerouting action=mark-connection new-connection-mark=PROXY-3 passthrough=yes connection-state=new in-interface=Squid
chain=prerouting action=mark-connection new-connection-mark=PROXY-1 passthrough=yes in-interface=Squid connection-mark=PROXY-1
chain=prerouting action=mark-connection new-connection-mark=PROXY-2 passthrough=yes in-interface=Squid connection-mark=PROXY-2
chain=prerouting action=mark-connection new-connection-mark=PROXY-3 passthrough=yes in-interface=Squid connection-mark=PROXY-3
chain=prerouting action=mark-connection new-connection-mark=PROXY-1 passthrough=yes protocol=tcp dst-address-type=!local in-interface=Squid dst-port=80,81,8080,3128 per-connection-classifier=both-addresses-and-ports:3/0
chain=prerouting action=mark-connection new-connection-mark=PROXY-2 passthrough=yes protocol=tcp dst-address-type=!local in-interface=Squid dst-port=80,81,8080,3128 per-connection-classifier=both-addresses-and-ports:3/1
chain=prerouting action=mark-connection new-connection-mark=PROXY-3 passthrough=yes protocol=tcp dst-address-type=!local in-interface=Squid dst-port=80,81,8080,3128 per-connection-classifier=both-addresses-and-ports:3/2
chain=prerouting action=mark-routing new-routing-mark=Route-Proxy-1 passthrough=yes in-interface=Squid connection-mark=PROXY-1
chain=prerouting action=mark-routing new-routing-mark=Route-Proxy-1 passthrough=yes in-interface=Squid connection-mark=PROXY-2
chain=prerouting action=mark-routing new-routing-mark=Route-Proxy-2 passthrough=yes in-interface=Squid connection-mark=PROXY-3
chain=input action=mark-connection new-connection-mark=ADSL-1 passthrough=yes connection-state=new in-interface=Lokal comments="LOAD BALANCE LOKAL"
chain=input action=mark-connection new-connection-mark=ADSL-2 passthrough=yes connection-state=new in-interface=Lokal
chain=input action=mark-connection new-connection-mark=ADSL-3 passthrough=yes connection-state=new in-interface=Lokal
chain=prerouting action=mark-connection new-connection-mark=ADSL-1 passthrough=no in-interface=Lokal connection-mark=ADSL-1
chain=prerouting action=mark-connection new-connection-mark=ADSL-2 passthrough=no in-interface=Lokal connection-mark=ADSL-2
chain=prerouting action=mark-connection new-connection-mark=ADSL-3 passthrough=no in-interface=Lokal connection-mark=ADSL-3
chain=prerouting action=mark-connection new-connection-mark=ADSL-1 passthrough=yes protocol=tcp dst-address-type=!local in-interface=Lokal dst-port=!80,81,8080,3128 per-connection-classifier=both-addresses-and-ports:3/0 comments="AUTOMATIC DISABLE IF PROXY DOWN"
chain=prerouting action=mark-connection new-connection-mark=ADSL-2 passthrough=yes protocol=tcp dst-address-type=!local in-interface=Lokal dst-port=!80,81,8080,3128 per-connection-classifier=both-addresses-and-ports:3/1
chain=prerouting action=mark-connection new-connection-mark=ADSL-3 passthrough=yes protocol=tcp dst-address-type=!local in-interface=Lokal dst-port=!80,81,8080,3128 per-connection-classifier=both-addresses-and-ports:3/2
chain=prerouting action=mark-connection new-connection-mark=ADSL-1 passthrough=yes dst-address-type=!local in-interface=Lokal per-connection-classifier=both-addresses-and-ports:3/0 comments="AUTOMATIC ENABLE IF PROXY DOWN"
chain=prerouting action=mark-connection new-connection-mark=ADSL-2 passthrough=yes dst-address-type=!local in-interface=Lokal per-connection-classifier=both-addresses-and-ports:3/1
chain=prerouting action=mark-connection new-connection-mark=ADSL-3 passthrough=yes dst-address-type=!local in-interface=Lokal per-connection-classifier=both-addresses-and-ports:3/2
chain=prerouting action=mark-routing new-routing-mark=jalur-1 passthrough=yes in-interface=Lokal connection-mark=ADSL-1
chain=prerouting action=mark-routing new-routing-mark=jalur-1 passthrough=yes in-interface=Lokal connection-mark=ADSL-2
chain=prerouting action=mark-routing new-routing-mark=jalur-2 passthrough=yes in-interface=Lokal connection-mark=ADSL-3
chain=prerouting action=mark-connection new-connection-mark=Trafik PB + POKER passthrough=yes protocol=tcp dst-address-list=Poker + PB dst-port=49100 comments="POKER + POINT BLANK"
chain=prerouting action=mark-connection new-connection-mark=Trafik PB + POKER passthrough=yes protocol=udp dst-address-list=Poker + PB dst-port=40000-40010
chain=prerouting action=mark-connection new-connection-mark=Trafik PB + POKER passthrough=yes protocol=tcp dst-address-list=Poker + PB dst-port=39190
chain=prerouting action=mark-packet new-packet-mark=PB + Poker passthrough=yes connection-mark=Trafik PB + POKER
chain=prerouting action=mark-routing new-routing-mark=Poker + PB passthrough=no src-address=192.168.0.2-192.168.0.30 dst-address-list=Poker + PB in-interface=Lokal connection-mark=Trafik PB + POKER comments="ROUTING POKER + POINT BLANK"
chain=prerouting action=mark-routing new-routing-mark=Poker + PB passthrough=no src-address=192.168.3.2-192.168.3.16 dst-address-list=Poker + PB in-interface=Lokal connection-mark=Trafik PB + POKER
NAT
NAT atau bahasa ilmiahnya Network Address Translation ini juga sangat penting di dalam proses Loadbalancing karena Rule ini lah yg mengatur Interface dan IP yg di tuju. jadi gw harap jangan sampe lupa NAT
Begini Pasal 8 ayat 5 tahun 2010
chain=srcnat action=masquerade out-interface=Telkom-1
chain=dstnat action=dst-nat to-addresses=192.168.4.2 to-ports=3128 protocol=tcp src-address-list=IP Users dst-address-list=!IP Proxy dst-port=80,81,8080,3128 comments=TRANSPARANT SQUID"
chain=dstnat action=dst-nat to-ports=53 protocol=tcp in-interface=Lokal dst-port=53 comments="TRANSPARENT DNS"
chain=dstnat action=dst-nat to-ports=53 protocol=udp in-interface=Lokal dst-port=53
chain=dstnat action=dst-nat to-ports=53 protocol=tcp in-interface=Squid dst-port=53
chain=dstnat action=dst-nat to-ports=53 protocol=udp in-interface=Squid dst-port=53
rule ini khusus bagi yg memakai DNS server di squid proxy nya.
chain=dstnat action=dst-nat to-addresses=192.168.4.2 to-ports=53 protocol=tcp in-interface=Squid dst-port=53 comments="TRANSPARENT BIND9"
chain=dstnat action=dst-nat to-addresses=192.168.4.2 to-ports=53 protocol=udp in-interface=Squid dst-port=53
mudah2 an di jalan yg benar ya semua nya
Kalau tahap ini dah lewat berikutnya
ROUTE
bahasa gampangnya arah tujuan , ya begitulah pokoknya
langsung aja ya
berikut tambahan buat poker dan point blank karena di mangle sudah ada rule nya jadi biar ga tersesat gw tampilin sekalian pelaku nya
keterangan dari pelaku
chain=forward action=add-dst-to-address-list protocol=tcp address-list=Poker + PB address-list-timeout=0s dst-port=9339
chain=forward action=add-dst-to-address-list protocol=tcp address-list=Poker + PB address-list-timeout=0s dst-port=39190
chain=forward action=add-dst-to-address-list protocol=tcp address-list=Poker + PB address-list-timeout=0s dst-port=49100
chain=forward action=add-dst-to-address-list protocol=udp address-list=Poker + PB address-list-timeout=0s dst-port=40000-40010
lagi nyari scriptnya ya..dah mau kabur aja gw
scrpt ini untuk keadaan di mana proxy external mati/mokat/tewas/wafat yg disebabkan karena banyak hal*
* kecuali error - contohnya hdd badsector ..pengalaman pribadi
192.168.4.2
add comment="MANGLE PROXY" disabled=no down-script=
\nip fi na en num=3\r\
\nip fi ma en num=22\r\
\nip fi ma en num=23\r\
\nip fi ma en num=24\r\
\nip fi ma dis num=19\r\
\nip fi ma dis num=20\r\
\nip fi ma dis num=21\r\
\nip proxy set enable=yes\r\
\n" host=192.168.4.2 interval=1s timeout=1s up-script="ip fi na en num=2\r\
\nip fi na dis num=3\r\
\nip fi ma dis num=22\r\
\nip fi ma dis num=23\r\
\nip fi ma dis num=24\r\
\nip fi ma en num=19\r\
\nip fi ma en num=20\r\
\nip fi ma en num=21\r\
\nip proxy set enable=no\r\
\n"
UPDATE
Rule ini untuk Yang memakai PCBOX untuk routernya agar bisa automatis ke Proxy internal jika proxy down bisa nambahin script ini di NAT;;; AUTOMATIC ENABLE IF PROXY DOWN ---> Redirect to internal proxy | monitoring by netwatch
chain=dstnat action=redirect to-ports=3128 protocol=tcp
routing-mark=!jalur-1 src-address-list=IP Users dst-port=80,81,8080,3128
connection-mark=!ADSL-1
enaknya langsung bener apa gw salahin dulu ya biar bisa ga asal copas
ok. demikian yg bisa sampaikan pada kesempatan kali ini mudah2 an berguna bagi nusa bangsa dan mempererat tali persaudaraan demi persatuan dan kesatuan di negara Ketuhanan yang maha esa.
Daftar pustaka
http://www.forummikrotik.com/tutoria...ll-tested.html
http://www.forummikrotik.com/tutoria...xy-tested.html
http://www.forummikrotik.com/softwar...proxy-hit.html
http://apistech.wordpress.com/2010/0...xternal-proxy/
2 MB + 1 MB
NETWATCH VIA SCRIPT BRO RIZALDI 7557
SIMPLE SCRIPT VIA NETWATCH BY OM DINGO
Credit