You are on page 1of 2

Interface 1 => name Lan => 192.168.10.21/24 Interface 2 => name Modem 1 => 192.168.20.2/24 (Gateway : 192.168.20.

1) Interface 3 => name Modem 2 => 192.168.2.2/24 (Gateway : 192.168.2.1) / Ip firewawall mangle ;;; LB Client add chain=prerouting in-interface=Lan protocol=tcp dst-port=80 connection-state=new nth=1,1,0 action=mark-connection new-connection-mark=LB_1 passthrough=yes add chain=prerouting in-interface=Lan connection-mark=LB_1 action=mark-routing new-routing-mark=RLB_1 passthrough=no add chain=prerouting in-interface=Lan protocol=tcp dst-port=80 connection-state=new nth=1,1,1 action=mark-connection new-connection-mark=LB_2 passthrough=yes add chain=prerouting in-interface=Lan connection-mark=LB_2 action=mark-routin> new-routing-mark=RLB_2 passthrough=no ;;; Batasi Download add chain=forward out-interface=Lan protocol=tcp connection-bytes=175000-4294967295 action=mark-connection new-connection-mark=DOWN1 passthrough=yes add chain=forward out-interface=Lan protocol=tcp connection-mark=DOWN1 action=mark-packet new-packet-mark=DOWN_1 passthrough=no

;;; PCQ add chain=prerouting action=mark-packet new-packet-mark=ALL passthrough=no /ip route add add add add dst-address=0.0.0.0/0 dst-address =0.0.0.0/0 dst-address =0.0.0.0/0 dst-address =0.0.0.0/0 gateway=192.168.20.1 gateway=192.168.20.1 gateway=192.168.2.1 gateway=192.168.2.1 distance=1 distance=1 distance=1 distance=2 routing-Mark=RLB_1 routing-Mark=RLB_2

primary-dns: 202.134.1.10 secondary-dns: 202.134.1.7 allow-remote-requests: yes cache-size: 2048KiB cache-max-ttl: 1w cache-used: 474KiB ip f nat 0 chain=srcnat out-interface=Modem1 action=masquerade 1 chain=srcnat out-interface=Modem2 action=masquerade

=> DNS resolver 2 chain=dstnat protocol=udp dst-port=53 action=redirect to-ports=53 3 chain=dstnat protocol=tcp dst-port=53 action=redirect to-ports=53

=> Manipulasi TOS 4 chain=dstnat in-interface=Lan protocol=icmp action=redirect to-ports=1

QUEUE TYPE Code:


1 name="Batasi Download" kind=pcq pcq-rate=175000 pcq-limit=50 pcq-classifier=dst-address pcq-total-limit=2000 2 name="PCQ_Upload" kind=pcq pcq-rate=0 pcq-limit=50 pcq-classifier=src-address pcq-total-limit=2000

Untuk Queue Tree Code:


0 name="DOWNLOAD1" parent=global-out packet-mark=DOWN_1 limit-at=0 queue=Batasi Download priority=8 max-limit=175000 burst-limit=0 burst-threshold=0 burst-time=0s

name="PCQ_Clien_Tazmania_Net" parent=global-in packet-mark=ALL limit-at=0 queue=PCQ_Upload priority=8 max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s redirect proxy: add chain=dstnat in-interface=Lan src-address=192.168.0.100/24 dst-address=!69.63.181.0/24 protocol=tcp dst-port=80 connection-mark=!LB_2 routing-mark=!RLB_2 action=redirect to-ports=3128

You might also like