Langkah pertama, pastikan dulu web-proxy di mikrotik telat aktif
[dhanis@mendem] > ip web-proxy printBila belum aktif cobalah untuk mengedit beberapa
enabled: yes
src-address: 0.0.0.0
port: 3128
hostname: “mendemproxy”
transparent-proxy: yes
parent-proxy: 0.0.0.0:0
cache-administrator: “admin@mendem.net.id”
max-object-size: 4096KiB
cache-drive: system
max-cache-size: none
max-ram-cache-size: unlimited
status: running
reserved-for-cache: 5242880KiB
reserved-for-ram-cache: 65536KiB
[dhanis@mendem] > ip web-proxy editcontoh :
cache-administrator hostname max-ram-cache-size src-address
cache-drive max-cache-size parent-proxy transparent-proxy
enabled max-object-size port
[dhanis@mendem] > ip web-proxy edit transparent-proxybila sudah tekan bersamaan ctr+o untuk save&quit
no (untuk aktif ganti dengan “yes”)
C-c quit C-o save&quit C-u undo C-k cut line C-y paste
untuk mengaktifkan web-proxy ketik perintah
[dhanis@mendem] > ip web-proxy set enabled=yesSekarang kita masuk ketahap kedua, buat masquerade public interface dan redirect destination port yang diperlukan ke port 3128, berikut contoh port yang harus di redirect
[dhanis@mendem] > ip firewall natSelamat mencoba dan semoga membantu
add edit find print reset-counters-all
comment enable get remove set
disable export move reset-counters unset
[dhanis@mendem] > ip firewall nat print
Flags: X – disabled, I – invalid, D – dynamic
0 chain=srcnat out-interface=ether1 action=masquerade
1 chain=dstnat protocol=tcp dst-port=80 action=redirect to-ports=3128
2 chain=dstnat protocol=tcp dst-port=8080 action=redirect to-ports=3128
3 chain=dstnat protocol=tcp dst-port=3128 action=redirect to-ports=3128
4 chain=dstnat protocol=tcp dst-port=8081 action=redirect to-ports=3128
5 chain=dstnat protocol=tcp dst-port=9000 action=redirect to-ports=3128
6 chain=dstnat protocol=tcp dst-port=8008 action=redirect to-ports=3128
7 chain=dstnat protocol=tcp dst-port=553 action=redirect to-ports=3128
8 chain=dstnat protocol=tcp dst-port=554 action=redirect to-ports=3128