Senin, 13 Februari 2017

Konfirgurasi Mikrotik Router Dengan Proxy Eksternal Clear OS


Seven - Konfirgurasi Mikrotik Router Dengan Proxy Eksternal Clear OS

IP Address publik (dari ISP) = 121.122.123.2/30 (hanya contoh)
IP Address ke jaringan lokal = 192.168.100.0/24
IP Address ke Clear OS = 192.168.200.1/30

NAT

#NAT ke internet
/ip firewall nat add chain=srcnat action=masquerade out-interface=publik

# NAT Clear OS

/ip firewall nat add chain=dstnat action=dst-nat to-addresses=192.168.200.2 to-ports=3128 protocol=tcp src-address=!192.168.200.1/30 in-interface=local dst-port=80,8080

# Remot
Clear OS
/ip firewall nat add chain=dstnat action=dst-nat to-addresses=192.168.200.2 to-ports=22 protocol=tcp dst-address=121.122.123.2 dst-port=22


Mangle

#Marking Hit Loss
/ip firewall mangle add chain=postrouting action=mark-packet new-packet-mark=hit_loss passthrough=no protocol=tcp dscp=12

#Marking Koneksi
/ip firewall mangle add chain=prerouting action=mark-connection new-connection-mark=local_con passthrough=yes src-address=192.168.100.0/24

#Marking Packet
/ip firewall mangle add chain=prerouting action=mark-packet new-packet-mark=local_pack passthrough=no connection-mark=
local_con