Community discussions

 
markmcn
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 78
Joined: Wed Mar 03, 2010 2:15 am

Mikrotik Netcat

Tue Jul 27, 2010 1:38 am

Hey
I'm wondering is there something similiar to netcat in router OS i'm trying to write an update script for a service.
Cheers
 
fewi
Forum Guru
Forum Guru
Posts: 7734
Joined: Tue Aug 11, 2009 3:19 am

Re: Mikrotik Netcat

Tue Jul 27, 2010 4:28 am

Not as such. What exactly are you trying to do? What would the packet flow be?
 
markmcn
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 78
Joined: Wed Mar 03, 2010 2:15 am

Re: Mikrotik Netcat

Tue Jul 27, 2010 10:02 pm

Hi Fewi,
It's to do dynamic updates on a system that doesn't have a restful api.
There is a linux script which i've been looking at and what they do is generate the correct string and use netcat to send the update.
The netcat is performed as follows
echo -n $string|cut -d ' ' -f 1`"|netcat -c -w 1 -u "server.fqdn" portnumber
if i could get some way of recreating this it could be a script that could be useful to the community intersted in IPv6 for using SixXS. I've also emailed the SixXS team to find out if they have any plans for a restful API as this would be very useful.
 
fewi
Forum Guru
Forum Guru
Posts: 7734
Joined: Tue Aug 11, 2009 3:19 am

Re: Mikrotik Netcat

Tue Jul 27, 2010 11:38 pm

Unfortunately you cannot send arbitrary data to arbitrary ports from the router, no.

You could install a metarouter or KVM (virtual machines) on the router and install linux in that VM, and then use netcat.
 
markmcn
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 78
Joined: Wed Mar 03, 2010 2:15 am

Re: Mikrotik Netcat

Tue Jul 27, 2010 11:50 pm

Thanks for the tip.
It really is a crying shame the mikrotik haven't put in a SixXS update client in RouterOS.
Looks like a lost cause.
Thank you for your help
 
changeip
Forum Guru
Forum Guru
Posts: 3803
Joined: Fri May 28, 2004 5:22 pm

Re: Mikrotik Netcat

Wed Jul 28, 2010 2:28 am

you can use fetch command maybe?
Colo and Wholesale Bandwidth Available! Sales at SanDiegoBroadband dot com

Who is online

Users browsing this forum: Google [Bot] and 58 guests