Community discussions

MikroTik App
 
User avatar
tplecko
Member Candidate
Member Candidate
Topic Author
Posts: 120
Joined: Mon Jun 11, 2007 12:18 pm
Location: Croatia
Contact:

forward IP to Serial

Thu Aug 13, 2009 12:33 pm

I have an access controll device that comunicates with PC via serial port. (The software can comunicate with IP as well as serial but all our devices are serial)
This particular device is on the remote location.
If I connect my access controll device to serial port on my routerboard, can i forward certian port to serial port?
eg.
in interface: WAN1
Protocol: TCP
DST port: 1001
forward to port: serial0


The sollution we have now is fasttrack modem with special software that costs here over 500$

the routerboard 411u we have has the latest wersion of routeros.


thanks!

Can this be done?
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7186
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: forward IP to Serial

Thu Aug 13, 2009 12:37 pm

as far as I know it can't be done
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26912
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia
Contact:

Re: forward IP to Serial

Thu Aug 13, 2009 12:48 pm

why not? with "special login", our secret, undocumented feature :)

http://forum.mikrotik.com/viewtopic.php ... 62&p=52136
 
User avatar
tplecko
Member Candidate
Member Candidate
Topic Author
Posts: 120
Joined: Mon Jun 11, 2007 12:18 pm
Location: Croatia
Contact:

Re: forward IP to Serial

Thu Aug 13, 2009 6:54 pm

You can setup a user account on mikrotik and assign it to a special-login on the serial port - then when you SSH into the box using that userid it will automatically patch you over to that serial port. I think it's somewhat undocumented.

List of console commands under "/special-login":
special-login add user= port= copy-from=

Sam
What we need is direct connetion with the serial device. So if i forward 1001 to serial port, and try to telnet directly to that port - i would be connected directly to my serial device.
There is no way to change the software to send username and password to my routerboard. (it is not ours)
And since we will be using MT for internet access and VPN anyway, i hoped that we could do this as well.

We are trying to avoid puting ethernet-to-serial adapters of any kind (in fact, this combination would replace all eth2serial sollutions for us with this sollution)


regards
 
changeip
Forum Guru
Forum Guru
Posts: 3833
Joined: Fri May 28, 2004 5:22 pm

Re: forward IP to Serial

Thu Aug 13, 2009 7:42 pm

i am using this feature all the time now, it's EXCELLENT. Mikrotik - thank you for adding this. Please do the same for USB devices (remote cameras, remote cell phones, etc - how cool would that be!)

/port remote-access add

just tell it RAW as the format if you want direct access with telnet.

I am now using RouterOS as a data collection device monitoring water tank levels. I've hooked up an A/D converter pic controller to the serial port and then i can telnet in, read the values, and plot them with a remote MRTG box.
 
User avatar
tplecko
Member Candidate
Member Candidate
Topic Author
Posts: 120
Joined: Mon Jun 11, 2007 12:18 pm
Location: Croatia
Contact:

Re: forward IP to Serial

Fri Aug 14, 2009 5:05 pm

Thanks.
I found a wiki describing remote-access. will report back here with details
 
User avatar
tplecko
Member Candidate
Member Candidate
Topic Author
Posts: 120
Joined: Mon Jun 11, 2007 12:18 pm
Location: Croatia
Contact:

Re: forward IP to Serial

Sat Aug 15, 2009 6:25 pm

i am using this feature all the time now, it's EXCELLENT. Mikrotik - thank you for adding this.
Works like a charm!

Found a bug though (unrelated to serial port remote access)

Who is online

Users browsing this forum: No registered users and 13 guests