Showing posts with label Mikrotik. Show all posts
Showing posts with label Mikrotik. Show all posts

Reset Mikrotik Router

By // No comments:

How to Reset Mikrotik Router.


Today we are gonna to do How to Reset Mikrotik Router/Reset To Factory Default Settings. You will lose all the configuration and other data on the router after you reset it. Please do very carefully.

Most MikroTik devices are fitted with a reset button. 

Look for the reset button labeled with “RES” on your MikroTik router.



Please follow all step by step to Hard reset Mikrotik Router:

Step 1: Turn off the device power.

Step 2: Hold the reset button and do not release.

Step 3: Turn on the device power and wait until the USER LED labeled with “ACT” starts flashing.



Step 4: Now release the button to clear configuration.

Step 6: Wait for a few minutes for the router to clear and restore the factory settings.

If you release the reset button after the LED stops flashing, you have to again whole process.

Hope this will help to all of you and resolved your all query if you have any query or question so you may ask and send email on our email account (onlinenetworkssolution@gmail.com) or leave comment on page.

Download Winbox

By // No comments:

  Download Latest Winbox


Winbox is a small program that allows users to control and monitor Mikrotik RouterOS using a fast and simple graphical user interface.


A software introduced specially to configure your MicroTik router as the the specification with the web-based consoles. 

By using the program you can allocate bandwidth and separate privileges for every computer. Shortly it will automatically setup your MicroTik router and make it ready for use.




WinBox 3.11 Free 300x190 - Download WinBox 3.11





How to enable SNMP in Mikrotik Router

By // No comments:

How to enable SNMP in Mikrotik Router


Today we will see that how to monitoring Mikrotik Router traffice using SNMP. In this post we will also most important protocol which help to monitor traffic.

[Root@Mikrotik]
  > /snmp

[Root@Mikrotik]
 /snmp > set enabled=yes contact=[YOURNAME] location=[LOCATION]

Next, set disable community public read access




[Root@Mikrotik]
 /snmp> community

[Root@Mikrotik]
/snmp community> print
# NAME ADDRESS SECURITY READ-ACCESS
0 public 0.0.0.0/0 none yes

[Root@Mikrotik]
 /snmp community> set public read-access=no
Add your community name and specify access ip address

[Root@Mikrotik]
/snmp community> add name=network address=10.10.10.0/24

[Root@Mikrotik]
 /snmp community> print
0 public 0.0.0.0/0 none no
1 network 192.168.10.0/24 none no

[Root@Mikrotik]
/snmp community> set network read-access=yes

Hope this will help to all of you and resolved your all query if you have any query or question so you may ask to send email on our email account (onlinenetworkssolution@gmail.com) or leave comment on page.

Configure NAT on Mikrotik Router

By // No comments:

How to configure NAT (Network Address Translation) on Mikrotik Router?


Network Address Translation: NAT  is a methodology of mapping  Private  ip address to another Public  ip address. Actually, private ip address can’t pass through internet without NAT. NAT provides of mapping between private ip address to route able public ip address. There  are many kind of NAT and to implement depends on what our goals are for NAT and our public ip address management.
·         Static NAT (One to One mapping):One to one mapping is also called static NAT it’s put a permanent ip mapping between an private ip address and a public  ip address.



·         NAT Overloading: It’s called Port Address Translation or PAT.In this case multiple private ip address space are able to share a common public ip address. Port address translation is reducing number of public ip address for network address translation.

·         Dynamic  NAT: Another  NAT method are Dynamic NAT. Dynamic map puts a dynamic mapping between an internal private ip address pool and a public ip address pool.It’s also create one to one relation on a FIFO algorithm basis .This method mikrotik router  called netmap.

NETMAP Configuration Example:

/ip firewall nat add  chain=dstnat action=netmap to-addresses=10.10.0.0/16
      dst-address=2.2.2.0/25 log=no log-prefix=""

/ip firewall nat add  chain=srcnat action=netmap to-addresses=2.2.2.0/25
      src-address=10.10.0.0/16 log=no log-prefix="
This configuration tell us a pool of ip address that are 10.10.0.0/16 mapped between a pool of an public ip address that are 2.2.2.0/25 is dynamically.



Hope this will help to all of you and resolved your all query if you have any query or question so you may ask to send email on our email account (onlinenetworkssolution@gmail.com) or leave comment on page.

Mikrotik NTP Server

By // No comments:

How to configure  NTP Server on Mikrotik Rotuer?


Today we will share will all of you that how to maintain our network device Date and Time for log analysis and report, This example show how to setup NTP server using Mikrotik Router OS.Configure NTP server need to install ntp.pak package for mikrotik router.




 /system ntp server
set broadcast=no enable=yes manycast=yes multicast=no




Hope this will help to all of you and resolved your all query if you have any query or question so you may ask to send email on our email account (onlinenetworkssolution@gmail.com) or leave comment on page.

How to backup and restore mikrotik router

By // No comments:
How to take backup and restore of Mikrotik router


Today we will learn that how to take backup and restore of Mikrotik router. In this post we guide you to take backup and restore via command mode and graphic mode. Hope this will help to resolve query.

First Method: 

To make backup file mode via winbox:

Click on File > Click on Backup > Give name BackupIpDmas > Ok .






To Copy backup file on Computer via winbox:

Select Backup file (BackupIpDmas) > Click on Copy Icon > Paste on computer in folder.

To Restore backup file from Computer via winbox:

Click on Upload button > Select Backup file (BackupIpDmas) > Ok > Restore and reboot? [y/N]:  > Y > ok > It will ask for restart automatically > ok.



Second Method:

To make a backup file use the following command:

[MikroTik] system backup save name=mikrotikbackup
Configuration backup saved



To load the saved backup file use the following command:

[MikroTik] > system backup load name=mikrotikbackup
Restore and reboot? [y/N]: Y


Load balancing 2 WAN link on Mikrotik Router

By // No comments:
How to configure Load balancing between two WAN link and 1 LAN link on Mikrotik Router through command.

Today we will learn how to configure and setup Load balancing between 2 ADSL+Router/WAN Links in Mikrotik Router using PCC technology by command. Mikrotik 2 WAN Load Balancing using PCC technology. Please follow complete step by step for Mikrotik to load balance between 2 ADSL+Router links.

Two ports were connected for WAN link with two difference ADSL+Router Routers and third port was connected with LAN.

Load balancing between 2 WAN link on Mikrotik Router


Make sure that both link should be same speed such as 8 Mbps.

WAN_1 IP Address = 172.12.15.8
WAN_2 IP Address = 61.95.235.77
LAN IP Address = 192.168.0.1

Step 1:  Assign IP address on Interface:

/ip address

add address=192.168.0.1/24 network=192.168.0.0 broadcast=192.168.0.255 interface=LAN
add address=172.12.15.8/24 network=172.12.15.0 broadcast=172.12.15.255 interface=WAN_1
add address=61.95.235.77/24 network=61.95.235.0 broadcast=61.95.235.255 interface=WAN_2

Step 2: Put Global DNS IP address in DNS Server:

/ip dns set allow-remote-requests=yes cache-max-ttl=1w cache-size=5000KiB max-udp-packet-size=512 servers=8.8.4.4,4.4.2.2,8.8.8.8.

Step 3: Create Routing Policy:

/ip firewall mangle

add chain=input in-interface=WAN_1 action=mark-connection new-connection-mark=WAN_1_conn
add chain=input in-interface=WAN_2 action=mark-connection new-connection-mark=WAN_2_conn

add chain=output connection-mark=WAN_1_conn action=mark-routing new-routing-mark=to_WAN_1
add chain=output connection-mark=WAN_2_conn action=mark-routing new-routing-mark=to_WAN_2

add chain=prerouting dst-address=172.12.15.0/24 action=accept in-interface=LAN
add chain=prerouting dst-address=61.95.235.0/24 action=accept in-interface=LAN




add chain=prerouting dst-address-type=!local in-interface=LAN per-connection-classifier=both-addresses-and-ports:2/0 action=mark-connection new-connection-mark=WAN_1_conn passthrough=yes
add chain=prerouting dst-address-type=!local in-interface=LAN per-connection-classifier=both-addresses-and-ports:2/1 action=mark-connection new-connection-mark=WAN_2_conn passthrough=yes

add chain=prerouting connection-mark=WAN_1_conn in-interface=LAN action=mark-routing new-routing-mark=to_WAN_1
add chain=prerouting connection-mark=WAN_2_conn in-interface=LAN action=mark-routing new-routing-mark=to_WAN_2

Step 4: Assign Routing Policy on WAN interface:

/ip route

add dst-address=0.0.0.0/0 gateway=172.12.15.1 routing-mark=to_WAN_1 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=61.95.235.1 routing-mark=to_WAN_2 check-gateway=ping

add dst-address=0.0.0.0/0 gateway=172.12.15.1 distance=1 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=61.95.235.1 distance=2 check-gateway=ping

Step 5: Create NAT Policy

/ip firewall nat

add chain=srcnat out-interface=WAN_1 action=masquerade
add chain=srcnat out-interface=WAN_2 action=masquerade

Note:-

If your both un-equal WAN links, such as WAN_1 is 6 MB and WAN_2 is 8 MB using PCC method and you want to force Mikrotik to use WAN_2 link rather than WAN_1 link so you have to add more PCC rules assigning the same two marks to specific link such as WAN_2.

/ip firewall mangle

add chain=prerouting dst-address-type=!local in-interface=LAN per-connection-classifier=both-addresses-and-ports:2/0 action=mark-connection new-connection-mark=WAN_1_conn passthrough=yes
add chain=prerouting dst-address-type=!local in-interface=LAN per-connection-classifier=both-addresses-and-ports:2/1 action=mark-connection new-connection-mark=WAN_2_conn passthrough=yes
add chain=prerouting dst-address-type=!local in-interface=LAN per-connection-classifier=both-addresses-and-ports:2/2 action=mark-connection new-connection-mark=WAN_2_conn passthrough=yes

For Hotspot with PCC rules so please configure more one step.

/ip firewall nat add action=accept chain=pre-hotspot disabled=no dst-address-type=!local hotspot=auth


Hope this will help to all of you and resolved your all query if you have any query or question so you may ask to send email on our email account (onlinenetworkssolution@gmail.com) or leave comment on page.

How to configure Hotspot in Mikrotik Router

By // No comments:
How to configure Hotspot in Mikrotik Router?


Today we are going to share with all of you about how to install and configure hotspot in Mikrotik Router via WinBox. It's used to authenticate the user name and password over internet access. It has good feature and easy to configure. We have several option to configure authentication, Mac Address, Radius, CHAP and another authentication process. make sure that internet is working on your router. need to configure IP Address on interface, DNS IP Address, Route, mangle to make communication between network such as LAN to WAN, LAN to LAN.


Please follow step by step to configure hotspot in Mikrotik Router via WinBox.

Step 1:  Click on IP > Click on DHCP Client > select ether1 in interface > Make sure that check mark on DNS, NTP, Add Default Route > click on Apply and Ok.


Step 2: Make sure internet is working so please configure world wide use DNS IP Address such as 8.8.8.8, 8.8.4.4 and 4.2.2.2. 




Step 4: Click on System > Configure NTP Client > Check mark on Enabled > select unicast in Mode > Put Primary NTP Server and secondary NTP Server as shown below image > Click on Appy and Ok.


Step 5: Now we ready to configure Hotspot. 
             Click on IP  > Click on Hotspot > Click on Hotspot Setup > Select Interface & port on which you have to attach your device such as ether2 in Hotspot Interface > Click on Next.


Step 6: Put Local Address of Network such as 10.5.50.1/24 and make sure that check mark on Masquerade Network  > Click on Next.


Step 7: Select Address Pool of Network such as 10.5.50.2-10.5.50.254 > Click On Next.


Step 8: Select Certificate as None > Click On Next.


Step 9: Put SMTP Server IP Address > Click On Next.


Step 10: Put Worldwide DNS Server IP Address such as 8.8.8.8> Click On Next.


Step 11: Give name of DNS Name > Click On Next.


Step 12: Create Local Hotspot User and password > Click On Next.



 Step 13:  Click On ok.





Step 14: Click on Users Tab in Hostpot wizard > Click on Plus (+) sign. 


Step 15: Give User Name and password on which has right to access internet.


When you access internet on your client system that ask for authentication user and and password, then you need to put user name and password which you create at your last step.

Now you see that you are able to access Internet on your system.





Hope this will help to all of you and resolved your all query if you have any query or question so you may ask to send email on our email account (onlinenetworkssolution@gmail.com) or leave comment on page.

How To Block HTTPS websites on Mikrotik Router

By // No comments:
How To Block HTTPS facebook, youtube and another websites on Mikrotik Router via winbox

Today we will share will all of you about how to block HTTPS facebook, youtube, gmail and another website through Mikrotik Router via Winbox. 





Please follow step by step to block HTTPS facebook, youtube, gmail and another website through Mikrotik Router via Winbox. 


Step 1: Click on Mangle Tab > Click on Plus (+) sign >  In the General Tab Dropdown chain and select forward > Put here Src. address (Source Address) such as 192.168.111.1 > Click on Action Tab > Dropdown Action and select mark connection > Type New Connection Name such as block facebook > Click Apply and Ok.

Step 2: Click on Filter Rules Tab > Click on Plus (+) sign >  In the General Tab Dropdown chain and select forward  > Dropdown Connection Mark and select block facebook website Name which you have given > Click on Advanced Tab > Type facebook in Content > Click on Action Tab > Dropdown Action and select drop packet > Click Apply and Ok.



Hope this will help to all of you and resolved your all query if you have any query or question so you may ask to send email on our email account (onlinenetworkssolution@gmail.com) or leave comment on page.



How to block website in Mikrotik Router via Winbox

By // No comments:
How to block facebook, youtube and another website in Mikrotik Router via Winbox

Today we will share will all of you about how to block facebook, youtube, gmail and another website through Mikrotik Router via Winbox. we have two method which is used to block website in mikrotik router. First method is used to block website in multiple WAN link for internet access and second method if you have to block website on particular WAN link. 





First Method:

Step 1: Login via WinBox on Mikrotik Router, Click on IP > Firewall 



Step 2: Click on Layer 7 Protocols Tab and then click on Plus (+)sign.


Step 3: Type Name of website and then put below code in Regexp.

             ^.+(facebook.com).*$


Step 4: Click on Filter Rules Tab > Click on Plus (+) sign >  In the General Tab Dropdown chain and select forward > Click on Advanced Tab > Dropdown Layer 7 Protocol and select facebook website Name which you have given > Click on Action Tab > Dropdown Action and select drop packet > Click Apply and Ok.


Finally you have blocked website!!!!!


Second Method:

Please follow above till 3 step and then use below step to block website on Wan IP address.

Step 4: Click on Filter Rules Tab > Click on Plus (+) sign >  In the General Tab dropdown chain and select forward > Put Wan static IP address in Src. Address (Source Address)> Click on Advanced Tab > Dropdown Layer 7 Protocol and select facebook website Name which you have given > Click on Action Tab > Dropdown Action and select drop packet > Click Apply and Ok.



Hope this will help to all of you and resolved your all query if you have any query or question so you may ask to send email on our email account (onlinenetworkssolution@gmail.com) or leave comment on page.

How to port forwarding in Mikrotik Router

By // No comments:
How to port forwarding in Mikrotik Router

Today we will learn that how to configure port forwarding in Mikrotik Router via winbox. This is most important feature which require every body in organization because we want to remotely access our Camera, RDP, Telnet, www and another port according to our need. so in this post we will share with all of you that how much easy this to configure port forwarding in Mikrotik Router and it's cheapest way.




Please follow below step by step to configure port forwarding in Mikrotik Router:

Step 1: Click on IP and then Firewall. New window will be appear on you display as you see below.
             Click on Plus (+) sign.


Step 2: Drop down of chain in which you have to select dstnat > Put WAN static IP such as 61.95.235.98 in Dst. Address (Destination IP address) > Click on Protocol and select TCP/UDP according to your requirement > then Put Dst. Port (Destination Port Number) > Then Click on Action Tab.


Step 3: Drop down Action and select Dstnat > Put Local IP Address in To Addressed (Put here your remote system's local IP address which you require to access from outside such as if you have to take RDP of any system so put here system IP address)  > Then put port number in To Ports (Put here that port number which you require) > and then click on Apply and OK.


Finally you see your NAT configuration in NAT tab as we have been shown here in below image. Please wait for some time because it's take some time to update their services.


Important :- 

Above rule work make connection between Router to Lan whereas we require WAN to Router connection  from remote access so create Firewall Rule which make connection between Wan to Router.

Click on IP, then Firewall, then Filter Rules > Click the + to add a new rule > Change Chain to input > Change Protocol to tcp > Change Dst. Port to 8291 > Click on the Action tab and make sure Action is set to accept > Click Comment and name it something like “winbox” > Click OK.

Note:-Your new Filter Rule will be at the bottom of the list.  Drag it up above the last “drop” rule from the default configuration.
Filter Rules are matched in order. They start at the top and work through each one.  If your new rule is AFTER the “drop” rule, it will not work.


Hope this will help to all of you and resolved your all query if you have any query or question so you may ask and send email on our email account (onlinenetworkssolution@gmail.com) or leave comment on page.