[HamWAN PSDR] RouterOS question - PSDR Digest, Vol 117, Issue 1

Rob Martin rgmrob at yahoo.com
Wed Nov 23 19:47:45 PST 2022


 Thank you for very prompt responses, and two workable suggestions.
I appreciate the help.
RobK7QJ

    On Wednesday, November 23, 2022 at 12:00:21 PM PST, psdr-request at hamwan.org <psdr-request at hamwan.org> wrote:  
 
 Send PSDR mailing list submissions to
    psdr at hamwan.org

To subscribe or unsubscribe via the World Wide Web, visit
    http://mail.hamwan.net/mailman/listinfo/psdr
or, via email, send a message with subject or body 'help' to
    psdr-request at hamwan.org

You can reach the person managing the list at
    psdr-owner at hamwan.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of PSDR digest..."


Today's Topics:

  1. RouterOS question (Rob Martin)
  2. Re: RouterOS question (Tom Hayward)
  3. Re: RouterOS question (Jamie Owens)
  4. Re: RouterOS question (Bart Kus)
  5. Re: RouterOS question (Stephen Kangas)


----------------------------------------------------------------------

Message: 1
Date: Wed, 23 Nov 2022 03:00:30 +0000 (UTC)
From: Rob Martin <rgmrob at yahoo.com>
To: Puget Sound Data Ring <psdr at hamwan.org>
Subject: [HamWAN PSDR] RouterOS question
Message-ID: <735986746.3846576.1669172430587 at mail.yahoo.com>
Content-Type: text/plain; charset="utf-8"

I am trying to achieve something using RouterOS scripting, and I'm hoping that here I might find the appropriate expertise.

>From a script running in a Mikrotik router I wish to pull in a copy of a file from an attached Windows computer. The computer is on the same subnet as the router.

By way of illustration: 

     A file called test.xxx exists on a Windows computer in the folder c:\aaa\
     I want a copy of this file to appear in the attached router /file list. This copy "event" could be either a push from the computer, or a pull from the router.

When using Winbox, this function is achieved easily using "drag and drop", but I need to automate the function.
Thanks.
RobK7QJ


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.hamwan.net/pipermail/psdr/attachments/20221123/1180a0cf/attachment-0001.html>

------------------------------

Message: 2
Date: Tue, 22 Nov 2022 21:46:48 -0800
From: Tom Hayward <tom at tomh.us>
To: Rob Martin <rgmrob at yahoo.com>, Puget Sound Data Ring
    <psdr at hamwan.org>
Subject: Re: [HamWAN PSDR] RouterOS question
Message-ID:
    <CAFXO5Z0rA1R+9ixw6+JrGVVpHf+AkYegjGb=OYiFDHdFxpEzig at mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Sounds like you just need /tool fetch.
https://wiki.mikrotik.com/wiki/Manual:Tools/Fetch

The blacklist script is a thorough example:
https://github.com/kd7lxl/blacklist-service/blob/master/block-address.rsc

On Tue, Nov 22, 2022, 19:00 Rob Martin via PSDR <psdr at hamwan.org> wrote:

> I am trying to achieve something using RouterOS scripting, and I'm hoping
> that here I might find the appropriate expertise.
>
> From a script running in a Mikrotik router I wish to pull in a copy of a
> file from an attached Windows computer. The computer is on the same subnet
> as the router.
>
> By way of illustration:
>
>      A file called test.xxx exists on a Windows computer in the folder
> c:\aaa\
>
>      I want a copy of this file to appear in the attached router /file
> list. This copy "event" could be either a push from the computer, or a pull
> from the router.
>
> When using Winbox, this function is achieved easily using "drag and drop",
> but I need to automate the function.
>
> Thanks.
>
> Rob
> K7QJ
>
>
> _______________________________________________
> PSDR mailing list
> PSDR at hamwan.org
> http://mail.hamwan.net/mailman/listinfo/psdr
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.hamwan.net/pipermail/psdr/attachments/20221122/e7ca8bce/attachment-0001.html>

------------------------------

Message: 3
Date: Wed, 23 Nov 2022 00:59:11 -0800
From: Jamie Owens <jlowens76 at gmail.com>
To: Puget Sound Data Ring <psdr at hamwan.org>
Cc: Rob Martin <rgmrob at yahoo.com>
Subject: Re: [HamWAN PSDR] RouterOS question
Message-ID:
    <CABTA65cZqS1kv3tiKBDB-HOFLYq0j+A04=C82GZm1byLANdjNg at mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Yep just use fetch with mpde=ftp and setup ftp server on windows box,
problem solved

On Wed, Nov 23, 2022 at 12:57 AM Tom Hayward <tom at tomh.us> wrote:

> Sounds like you just need /tool fetch.
> https://wiki.mikrotik.com/wiki/Manual:Tools/Fetch
>
> The blacklist script is a thorough example:
> https://github.com/kd7lxl/blacklist-service/blob/master/block-address.rsc
>
> On Tue, Nov 22, 2022, 19:00 Rob Martin via PSDR <psdr at hamwan.org> wrote:
>
>> I am trying to achieve something using RouterOS scripting, and I'm hoping
>> that here I might find the appropriate expertise.
>>
>> From a script running in a Mikrotik router I wish to pull in a copy of a
>> file from an attached Windows computer. The computer is on the same subnet
>> as the router.
>>
>> By way of illustration:
>>
>>      A file called test.xxx exists on a Windows computer in the folder
>> c:\aaa\
>>
>>      I want a copy of this file to appear in the attached router /file
>> list. This copy "event" could be either a push from the computer, or a pull
>> from the router.
>>
>> When using Winbox, this function is achieved easily using "drag and
>> drop", but I need to automate the function.
>>
>> Thanks.
>>
>> Rob
>> K7QJ
>>
>>
>> _______________________________________________
>> PSDR mailing list
>> PSDR at hamwan.org
>> http://mail.hamwan.net/mailman/listinfo/psdr
>>
> _______________________________________________
> PSDR mailing list
> PSDR at hamwan.org
> http://mail.hamwan.net/mailman/listinfo/psdr
>


-- 
Thanks,
Jamie Owens
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.hamwan.net/pipermail/psdr/attachments/20221123/96d9d3fa/attachment-0001.html>

------------------------------

Message: 4
Date: Wed, 23 Nov 2022 10:52:57 -0800
From: Bart Kus <me at bartk.us>
To: Puget Sound Data Ring <psdr at hamwan.org>, Jamie Owens
    <jlowens76 at gmail.com>
Cc: Rob Martin <rgmrob at yahoo.com>
Subject: Re: [HamWAN PSDR] RouterOS question
Message-ID: <9447e7d4-f7bd-04c4-0867-7ffb90a1245d at bartk.us>
Content-Type: text/plain; charset="utf-8"; Format="flowed"

Alternatively, you can push from Windows, by having an SSH key installed 
and using SCP:

https://stackoverflow.com/questions/35292681/pscp-file-from-windows-to-linux-using-private-public-keys

--Bart


On 11/23/2022 12:59 AM, Jamie Owens wrote:
> Yep just use fetch with mpde=ftp and setup ftp server on windows box, 
> problem solved
>
> On Wed, Nov 23, 2022 at 12:57 AM Tom Hayward <tom at tomh.us> wrote:
>
>    Sounds like you just need /tool fetch.
>    https://wiki.mikrotik.com/wiki/Manual:Tools/Fetch
>
>    The blacklist script is a thorough example:
>    https://github.com/kd7lxl/blacklist-service/blob/master/block-address.rsc
>
>    On Tue, Nov 22, 2022, 19:00 Rob Martin via PSDR <psdr at hamwan.org>
>    wrote:
>
>        I am trying to achieve something using RouterOS scripting, and
>        I'm hoping that here I might find the appropriate expertise.
>
>        From a script running in a Mikrotik router I wish to pull in a
>        copy of a file from an attached Windows computer. The computer
>        is on the same subnet as the router.
>
>        By way of illustration:
>
>             A file called test.xxx exists on a Windows computer in
>        the folder c:\aaa\
>
>             I want a copy of this file to appear in the attached
>        router /file list. This copy "event" could be either a push
>        from the computer, or a pull from the router.
>
>        When using Winbox, this function is achieved easily using
>        "drag and drop", but I need to automate the function.
>
>        Thanks.
>
>        Rob
>        K7QJ
>
>
>        _______________________________________________
>        PSDR mailing list
>        PSDR at hamwan.org
>        http://mail.hamwan.net/mailman/listinfo/psdr
>
>    _______________________________________________
>    PSDR mailing list
>    PSDR at hamwan.org
>    http://mail.hamwan.net/mailman/listinfo/psdr
>
>
>
> -- 
> Thanks,
> Jamie Owens
>
> _______________________________________________
> PSDR mailing list
> PSDR at hamwan.org
> http://mail.hamwan.net/mailman/listinfo/psdr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.hamwan.net/pipermail/psdr/attachments/20221123/aac81338/attachment-0001.html>

------------------------------

Message: 5
Date: Wed, 23 Nov 2022 11:17:03 -0800
From: "Stephen Kangas" <stephen at kangas.com>
To: "'Puget Sound Data Ring'" <psdr at hamwan.org>, "'Jamie Owens'"
    <jlowens76 at gmail.com>
Cc: 'Rob Martin' <rgmrob at yahoo.com>
Subject: Re: [HamWAN PSDR] RouterOS question
Message-ID: <31e5201d8ff70$2de768b0$89b63a10$@kangas.com>
Content-Type: text/plain; charset="utf-8"

Bart’s suggestion is a better way as it is much more secure.  Allowing FTP to be run at any time in RouterOS is asking for trouble, as it can be potentially be used for a bad actor to infect your device.  SCP (Secure Copy Protocol) is not only encrypted  but using Secure Shell (SSH) to access it helps prevent problems.

 

Stephen W9SK

 

 

From: PSDR <psdr-bounces at hamwan.org> On Behalf Of Bart Kus
Sent: Wednesday, November 23, 2022 10:53 AM
To: Puget Sound Data Ring <psdr at hamwan.org>; Jamie Owens <jlowens76 at gmail.com>
Cc: Rob Martin <rgmrob at yahoo.com>
Subject: Re: [HamWAN PSDR] RouterOS question

 

Alternatively, you can push from Windows, by having an SSH key installed and using SCP:

https://stackoverflow.com/questions/35292681/pscp-file-from-windows-to-linux-using-private-public-keys

--Bart



On 11/23/2022 12:59 AM, Jamie Owens wrote:

Yep just use fetch with mpde=ftp and setup ftp server on windows box, problem solved

 

On Wed, Nov 23, 2022 at 12:57 AM Tom Hayward <tom at tomh.us <mailto:tom at tomh.us> > wrote:

Sounds like you just need /tool fetch.  

https://wiki.mikrotik.com/wiki/Manual:Tools/Fetch

 

The blacklist script is a thorough example: https://github.com/kd7lxl/blacklist-service/blob/master/block-address.rsc

 

On Tue, Nov 22, 2022, 19:00 Rob Martin via PSDR <psdr at hamwan.org <mailto:psdr at hamwan.org> > wrote:

I am trying to achieve something using RouterOS scripting, and I'm hoping that here I might find the appropriate expertise.

 

>From a script running in a Mikrotik router I wish to pull in a copy of a file from an attached Windows computer. The computer is on the same subnet as the router.

 

By way of illustration: 

 

    A file called test.xxx exists on a Windows computer in the folder c:\aaa\

 

    I want a copy of this file to appear in the attached router /file list. This copy "event" could be either a push from the computer, or a pull from the router.

 

When using Winbox, this function is achieved easily using "drag and drop", but I need to automate the function.

 

Thanks.

 

Rob

K7QJ

 

 

_______________________________________________
PSDR mailing list
PSDR at hamwan.org <mailto:PSDR at hamwan.org> 
http://mail.hamwan.net/mailman/listinfo/psdr

_______________________________________________
PSDR mailing list
PSDR at hamwan.org <mailto:PSDR at hamwan.org> 
http://mail.hamwan.net/mailman/listinfo/psdr




 

-- 

Thanks,

Jamie Owens





_______________________________________________
PSDR mailing list
PSDR at hamwan.org <mailto:PSDR at hamwan.org> 
http://mail.hamwan.net/mailman/listinfo/psdr

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.hamwan.net/pipermail/psdr/attachments/20221123/0d4d6d51/attachment-0001.html>

------------------------------

Subject: Digest Footer

_______________________________________________
PSDR mailing list
PSDR at hamwan.org
http://mail.hamwan.net/mailman/listinfo/psdr


------------------------------

End of PSDR Digest, Vol 117, Issue 1
************************************
  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.hamwan.net/pipermail/psdr/attachments/20221124/50fd57c2/attachment.html>


More information about the PSDR mailing list