Anda di halaman 1dari 2

SETTING PEMBLOKIRAN SITUS MELALUI MIKROTIK ROUTER OPERATING SYSTEM

1. Mengaktifkan Ethernet Card: a. (admin@proxy) / interface b. (admin@proxy) interface> enable 0 c. (admin@proxy) interface> enable 1 2. Memberi Nama masing-masing Ethernet a. (admin@proxy) / interface> set 0 name=publik b. (admin@proxy) / interface> set 1 name=lokal 3. Setting IP address pada mesin Mikrotik a. (admin@proxy) / ip address b. (admin@proxy) ip address> add interface=lokal address=192.168.50.1/24 4. Setting Primary DNS dan Secondary DNS a. (admin@proxy) ip dns b. (admin@proxy) ip dns> set primary-dns=202.134.1.10 c. (admin@proxy) ip dns> set secondary-dns=202.134.0.155 5. Setting Gateway a. (admin@proxy) / ip route b. (admin@proxy) ip route> add gateway=202.134.1.1 (gateway ini untuk mesin mikrotik/server, sedangkan untuk client gunakan gateway=192.168.50.1) 6. Setting Network Address Translate (NAT) a. (admin@proxy) / ip firewall nat b. (admin@proxy) ip firewall nat> add chain=srcnat out-interface=publik srcaddress=192.168.50.1/24 action=masquerade 7. Setting ip proxy a. (admin@proxy) / ip proxy b. (admin@proxy) ip proxy> set enable=yes port=3128 chace-on-disk=no c. (admin@proxy) / ip proxy access d.(admin@proxy) ip proxy access> add src-address=192.168.50.1/24 dsthost=*.facebook.com action=deny (ulangi langkah tersebut untuk memblokir youtube) 8. langkah selanjutnya adalah dengan me-redirect semua akses ke facebook.com dan youtube.com dari LAN ke Web Proxy. Langkahnya: a. (admin@proxy) / ip firewall nat b. (admin@proxy) ip firewall nat> add chain=dstnat in-interface=konek dst-

port=80 protocol=tcp action=redirect to-port=3128 TAMBAHAN: kita bisa juga memblokir download file-file tertentu misalnya mp3, 3gp, rar, avi, dll.caranya: a. (admin@proxy) / ip proxy access b. (admin@proxy) ip proxy access> add path=*.mp3 action=deny c. (admin@proxy) ip proxy access> add path=*.3gp action=deny

Anda mungkin juga menyukai