Setting up MIKROTIK as Gateway

Hi!

I have just learned how to setup DHCP Server on MIKROTIK thanks to this forum. Now i want to learn how can i setup my Internet GATEWAY on Mikrotik.

I dont want to use the UID and PASS feature, just want to allow particular IP’s with their respective MAC Addresses to use INTERNET through this GATEWAY. For now i dont want to setup any proxy server one thing at a time :slight_smile: that i will learn later on.

I have shifted my DHCP Server to MIKROITK and its working fine. Now i want to shift my Main GATEWAY to Mikrotik.

Looking Forward for some Help.

Hi,
Just add me in you MSN messanger. I will tell you the step by step configuration.

pashish.patel@hotmail.com

To make Mikrotik as a Intenet Gateway. you should have ateast following

Mikrotik with Atleast 2 ethernet.

Configuration

IP Address -
192.168.1.2/24–> ether1 (We assum that this is a Internet IP Provided by the ISP)
10.10.10.1/24–> ether2 (Your Local LAN IP)

Ip Route
You shoud have one defalut Route
/ip route
add dst-address=0.0.0.0/0 gateway=192.168.1.1—>ISP End

Than you have to NAT you local network with the INTERNAT
/ip firewall nat
add chain=src-nat
src-address=10.10.10.0/24
action=masqureade

Also add DNS entry
/ip dns
set primary-dns=X.X.X.X secondary-dns=X.X.X.X allow-remote-request=yes

Thats..It

Please refer Mikrotik Documents as well as Visit http://wiki.mikrotik.com for examples

Add me in MSN for any further help

you only need two things:

  1. Ip/Mac binding which is achieved like this:
  • a. add IP/Mac combinations to the IP ARP menu
    b. set your interface to “arp=reply-only”
  1. Masquerading (if you use private network IPs)
  • a. add new SRC-NAT rule with Out-inteface=public and Action=masquerade

Some more info here:
http://wiki.mikrotik.com/wiki/MikroTik_RouterOS_Frequently_Asked_Questions_-_FAQ#TCP.2FIP_Related_Questions