Setting Cepat Mikrotik RouterOS sebagai Gateway
Catatan Mikrotik

Setting Cepat Mikrotik RouterOS sebagai Gateway

Misal Kasus :

IP WAN (Untuk Internet) atau IP Publik kita 219.83.63.152/29
Gateway WAN : 219.83.63.145
DNS WAN : 202.155.0.10 dan 202.155.0.15
LAN card untuk WAN misalnya ether1
LAN card untuk LOKAL misalnya ether2
IP LAN kita 192.168.100.1 dengan subnetmask 255.255.255.0 atau 192.168.100.1/24

SETTING IP WAN
ip address add interface=ether1 address=219.83.63.152 netmask 255.255.255.240
atau 
ip address add interface=ether1 address=219.83.63.152/29

SETTING IP LAN
ip address add interface=ether2 address=192.168.100.1 netmask 255.255.255.0
atau 
ip address add interface=ether2 address=192.168.100.1/25

SETTING GATEWAY
ip route add gateway=219.83.63.145

SETTING DNS
ip dns set primary-dns=202.155.0.10 secondary-dns=202.155.0.15 (Untuk Jenis Mikrotik Versi 2,9)
atau
ip dns set server=202.155.0.10,202.155.0.15  (Untuk Jenis Mikrotik Baru)

 

SETTING NAT
ip firewall nat add action=masquerade chain=srcnat out-interface=ether1
(ether1 menandakan interface yang di gunakan untuk out internet atau interface ip publik kita)
———-
atau [NAT]
———–
ip firewall nat add action=masquerade chain=srcnat
ip firewall filter add chain=input connection-state=invalid action=drop
ip firewall filter add chain=input protocol=udp action=accept
ip firewall filter add chain=input protocol=icmp action=accept
ip firewall filter add chain=input in-interface=ether1 action=accept
ip firewall filter add chain=input in-interface=ether2 action=accept

 

Sekian Catatan dari saya, jika ada ingin bertanya silahkan kirim e-mail ataupun melalui Komentar. Terima Kasih

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Ads Blocker Image Powered by Code Help Pro

Ads Blocker Detected!!!

We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker.