Setting up a gateway on MikroTik Routers: Difference between revisions

From 44Net Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 3: Line 3:
The mikrotik router is a very powerful device and there are a lot of options that can be used  
The mikrotik router is a very powerful device and there are a lot of options that can be used  


The example here will deal with the router that  the WAN Port  is connected to the DMZ  of your Network and the 44 Net will apear on the Lan Port  (Refering to  a home router)
The example here will deal with the router that  the WAN Port  is connected to the DMZ  of your Network and the 44 Net will appear on the Lan Port  (Referring to  a home router)


The configuration can be done with the web interface (webFig)  or in manual text command with telnet or SSH  connection to the router
The configuration can be done with the web interface (webFig)  or in manual text command with telnet or SSH  connection to the router


First a tunnel interface must be created  to the Main  AMPRNET router  
First a tunnel interface must be created  to the Main  AMPRNET router  
you do it in the web by this interfaces --->  add new --> IP  tunnel  
 
you do it in the web by this : interfaces --->  add new --> IP  tunnel  
a Screen will open  
a Screen will open  


Line 15: Line 16:
add in the local address your router address on the DMZ (in home it will probably be 10.0.0.x or 192.168.1.x)
add in the local address your router address on the DMZ (in home it will probably be 10.0.0.x or 192.168.1.x)


at the remote address put the adress of the AMPRNET router (169.228.66.251)
at the remote address put the address of the AMPRNET router (169.228.66.251)
 
Press the apply button and you are done
Press the apply button and you are done


now some routes commands needed to be done  
now some routes commands needed to be done  


1) Route all the trafic to the tunnel interface
1) Route all the traffic to the tunnel interface
You do it by IP-->Routes  and clicking on the 0.0.0.0  line
 
You do it by : IP --> Routes  and clicking on the 0.0.0.0  line
and changing the gateway  to the tunnel interface name and clicking apply
and changing the gateway  to the tunnel interface name and clicking apply


2) route command for the tunnel to go to the InterNet
2) route command for the tunnel to go to the InterNet


You do it by the web  as follows :  IP  ---? routes --->  add new
You do it by the web  as follows :  IP  ---> routes --->  add new


at the screen type in the destination address 169.228.66.251/32  
at the screen , type in the destination address 169.228.66.251/32  
and at the gateway type the ip address of the next router (for home network it is usually  10.0.0.138  or 192.168.1.1)
and at the gateway type the ip address of the next router (for home network it is usually  10.0.0.138  or 192.168.1.1)



Revision as of 21:44, 10 April 2016

The MikroTik Routers By default support IP-IP tunneling so setting up a gateway is quiet easy

The mikrotik router is a very powerful device and there are a lot of options that can be used

The example here will deal with the router that the WAN Port is connected to the DMZ of your Network and the 44 Net will appear on the Lan Port (Referring to a home router)

The configuration can be done with the web interface (webFig) or in manual text command with telnet or SSH connection to the router

First a tunnel interface must be created to the Main AMPRNET router

you do it in the web by this : interfaces ---> add new --> IP tunnel a Screen will open

Change the name to say UCSD

add in the local address your router address on the DMZ (in home it will probably be 10.0.0.x or 192.168.1.x)

at the remote address put the address of the AMPRNET router (169.228.66.251)

Press the apply button and you are done

now some routes commands needed to be done

1) Route all the traffic to the tunnel interface

You do it by : IP --> Routes and clicking on the 0.0.0.0 line and changing the gateway to the tunnel interface name and clicking apply

2) route command for the tunnel to go to the InterNet

You do it by the web as follows : IP ---> routes ---> add new

at the screen , type in the destination address 169.228.66.251/32 and at the gateway type the ip address of the next router (for home network it is usually 10.0.0.138 or 192.168.1.1)

Now you should have connectivity from your 44 Net to the rest of the world (but not to any other 44 net networks worldwide )

In order to have a full connectivity to the other 44 Net networks a tunnel (and corresponding route command) must be added for every 44 Net gateway