Community discussions

MikroTik App
 
Cetalfio
Member Candidate
Member Candidate
Topic Author
Posts: 224
Joined: Sat Sep 20, 2008 6:19 pm
Location: Italy

How to access to more than one routerboard with winbox.

Fri Jul 03, 2009 6:29 pm

Hi, is there a way to access to more than one routerboard with winbox when I've some many RB under a xDSL router?

This is my scenario:

Public IP --> xDSL router -->
RB 1 10.10.0.10/24
RB 2 10.10.0.11/24
RB 3 10.10.0.12/24
etc.

To work on RB I have to set the NAT on the xDSL router to an address inside the LAN on port 8291, a setting for each of the RB.

Can RB works with different ports somenthing like this:

Public IP --> xDSL router -->
RB 1 10.10.0.10/24 NAT 10.10.0.10:8291
RB 2 10.10.0.11/24 NAT 10.10.0.10:8292
RB 3 10.10.0.12/24 NAT 10.10.0.10:8293
etc.

Some ideas?
Cetalfio
 
Cetalfio
Member Candidate
Member Candidate
Topic Author
Posts: 224
Joined: Sat Sep 20, 2008 6:19 pm
Location: Italy

Re: How to access to more than one routerboard with winbox.

Fri Jul 03, 2009 8:44 pm

Ok I want share with you my simple solution:

Public IP --> xDSL router -->
RB 1 10.10.0.10/24 NAT 10.10.0.10 external and internal port 8291
RB 2 10.10.0.11/24 NAT 10.10.0.10 external and internal port 8292
RB 3 10.10.0.12/24 NAT 10.10.0.10 external and internal port 8293

change default tcp port of winbox service to RB2 and RB3

/ip service print

0 telnet 23 0.0.0.0/0
1 ftp 21 0.0.0.0/0
2 www 80 0.0.0.0/0
3 ssh 22 0.0.0.0/0
4 X www-ssl 443 0.0.0.0/0 none
5 X api 8728 0.0.0.0/0
6 winbox 8291 0.0.0.0/0

/ip service set 6 port=8292

now with winbox I can access with:
pubblic IP:port
ex.
RB1: 217.122.1.18:8291
RB2: 217.122.1.18:8292
RB3: 217.122.1.18:8293
 
RK
Long time Member
Long time Member
Posts: 565
Joined: Tue Nov 21, 2006 11:22 am
Location: Winnipeg, Canada and Central America

Re: How to access to more than one routerboard with winbox.

Sun Jul 05, 2009 4:51 am

You don't have to change the winbox ports, look at this:

/ip firewall nat
add action=masquerade chain=srcnat comment="" disabled=no out-interface=\
bridge1 src-address=10.52.71.0/24
add action=dst-nat chain=dstnat comment="steve casco rootenna" disabled=no \
dst-address=x.y.z.248 dst-port=56732 protocol=tcp to-addresses=\
10.52.71.187 to-ports=8291
add action=dst-nat chain=dstnat comment="edgar casco rootenna" disabled=no \
dst-address=x.y.z.248 dst-port=56734 protocol=tcp to-addresses=\
10.52.71.147 to-ports=8291
 
miahac
Long time Member
Long time Member
Posts: 516
Joined: Wed Dec 14, 2005 5:04 pm
Location: Wichita, KS

Re: How to access to more than one routerboard with winbox.

Tue Jul 07, 2009 5:14 pm

what RK has posted will work on the mikrotik you are using as a gateway. It seems you are using the DSL as your gateway.

Your solution is very simple and does not require firewall rules. However.... I would suggest you put your DSL modem into bridge mode and put one of your RB's in the NAT postion if possible. You will have MUCH more control.

Who is online

Users browsing this forum: dioeyandika and 102 guests