Seting IP untuk Internal Proxy pada mikrotik
1. IP Modem:- 192.168.10.1
2. IP Mikrotik:
- 192.168.1.1 = local
- 192.168.10.2 = public/ke modem speedy
3. IP Client: 192.168.1.0/24
Seting Rule Internal Proxy di Winbox :
Quote:
/ ip address add address=192.168.10.2/24 network=192.168.10.0 broadcast=192.168.10.255 \ interface=Public comment=”" disabled=no add address=192.168.1.1/24 network=192.168.1.0 broadcast=192.168.1.255 \ interface=Lan comment=”" disabled=no |
Quote:
/ ip route add dst-address=0.0.0.0/0 gateway=192.168.10.1 scope=255 target-scope=10 \ comment=”" disabled=no |
Quote:
/ ip dns set primary-dns=192.168.10.1 \ allow-remote-requests=no cache-size=2048KiB cache-max-ttl=1w |
Quote:
ip web-proxy pr enabled: yes src-address: 0.0.0.0 port: 3128 hostname: “proxy” transparent-proxy: yes parent-proxy: 0.0.0.0:0 cache-administrator: “webmaster” max-object-size: 4096KiB cache-drive: system max-cache-size: none max-ram-cache-size: unlimited status: running reserved-for-cache: 0KiB reserved-for-ram-cache: 154624KiB |
Quote:
/ ip firewall nat add chain=dstnat src-address=192.168.1.0/24 protocol=tcp dst-port=80 \ action=redirect to-ports=3128 comment=”" disabled=no add chain=srcnat out-interface=Public action=masquerade comment=”" disabled=no |
Quote:
/ ip firewall mangle add chain=prerouting protocol=icmp action=mark-connection \ new-connection-mark=icmp-con passthrough=yes comment=”" disabled=no add chain=prerouting protocol=icmp connection-mark=icmp-con\ action=mark-packet new-packet-mark=icmp-pkt\ passthrough=no comment=”" disabled=noadd chain=prerouting action=mark-connection new-connection-mark=con-up\ passthrough=yes comment=”" add chain=prerouting action=mark-paket new-paket-mark=all-pkt\ conection-mark=con-up passthrough=no comment=”"add chain=output content=”X-Cache: HIT” action=mark-connection \ new-connection-mark=proxy-con passthrough=yes comment=”"\ disabled=no add chain=output connection-mark=proxy-con action=mark-packet \ new-packet-mark=proxy-pkt passthrough=no comment=”" disabled=noadd chain=forward action=mark-connection new-connection-mark=direct-con\ passthrough=yes comment=”" disabled=no add chain=forward protocol=tcp connection-mark=direct-con \ action=mark-packet new-packet-mark=all-pkt passthrough=no comment=”" disabled=no add chain=output protocol=tcp connection-mark=direct-con \ action=mark-packet new-packet-mark=all-pkt passthrough=no comment=”" disabled=no |
Quote:
add name=”proxy-HIT” dst-address=0.0.0.0/0 interface=all parent=none \ packet-marks=proxy-pkt direction=both priority=8 \ queue=default-small/default-small limit-at=0/0 max-limit=0/0 \ total-queue=default-small disabled=no comment=”paling atas” add name=”Ping-queue” dst-address=0.0.0.0/0 interface=all parent=none \ packet-marks=icmp-pkt direction=both priority=2 \ queue=default-small/default-small limit-at=0/0 max-limit=0/0 \ total-queue=default-small disabled=no comment=”supaya ping kecil” add name=”Parent-queue” dst-address=0.0.0.0/0 interface=all parent=none \ direction=both priority=8 queue=default-small/default-small limit-at=0/0 \ max-limit=45000/300000 total-queue=default-small disabled=no add name=”All-Trafik” target-addresses=192.168.1.0/24 \ dst-address=0.0.0.0/0 interface=all parent=Parent-queue \ packet-marks=all-pkt direction=both priority=8 queue=default-small/default-small limit-at=4500/30000 max-limit=45000/300000 total-queue=default-small disabled=no |
sudah saya coba dan hasilnya cukup memuaskan. bisa digabung dengan teknik load balancing. caranya untuk yang dari proxy-con tidak usah dibuat lagi nthnya. yang dibuat nthnya yang untuk direct-con nya saja.
maaf tidak punya screensut Internal Proxy nya
*Ada yang mengganjal untuk loadbalancing sampai saat ini kok susah ya biar bener2 50%:50% sudah coba tut akangge yang pakai v 3.x cuman nggak berhasil, pasti tidak imbang dengan tipologi Internal Proxy yang dimiliki nya:
modem —+– mikrotik —+– client(Wire)
modem —+***********+– Client(Hotspot)>>= saya kurang ngerti kok nggak bisa pakai tranparent proxy, selain itu jadi masalah di billingnya.
mohon feedbacknya
terima kasih sudah membaca postingan setingan Internal Proxy ini
semoga bisa membantu rekan-rekan semua dalam menseting proxy
terima kasih banyak
0 komentar: