You are here

FTP issues

13 posts / 0 new
Last post
WB6YOK
FTP issues

I know I am going to look like an idiot but I simply cannot ftp into my mesh node(s). I am setting up option 66 so I can provision a couple of phones that are connected to the mesh node. I need to transfer the files required for provisioning.

I keep getting connection refused. This issue occurs whether I am trying to connect from a Windows or Linus instance.

Is there some secret sauce that I need to use with the latest release version of the firmware?

I know that there is nothing on my desktop machine that is blocking. I have the firewall turned completely off.

Thanks in advance!

Chuck...
 

N3WTT
Are you trying to ftp to the
Are you trying to ftp to the node itself or a service connected to you node?
WB6YOK
Direct to the node. Is this
Direct to the node. Is this not possible?

Chuck...
N3WTT
Not sure? If it was trying to
Not sure? If it was trying to ftp to a service such as a web server I had issues at first as well would have tried to help you though it. Maybe we start of simple...What exactly are you trying to accomplish?
nc8q
nc8q's picture
provision phones that are connected to the mesh

You may need a 'tftp-server' and its service advertised 'on the mesh'.
Is your phone a 'tftp-client' seeking to download from a 'tftp-server'?

My DHCP server is 'PFSense' and it supports 'option 66'.
If you have already configured your tftp server and your DHCP server is PFSense:
Click on Services::DHCPServer::Additional BOOTP/DHCPOptions::Display Advanced
Option number=66, Type=Text, value=tftp://<IP-Address-of-tftp-server>
Click 'Save'.

I hope this helps,

Chuck

nc8q
nc8q's picture
cannot ftp into my mesh node

Yes, port 21 (ftp) is closed on all my ARDEN firware'd devices.
You might be able to ftp with a IP phone that got is address from a node.
If your host is on the same LAN or the IP phone is an advertised service.
'Option 66' uses TFTP, HTTP, and/or HTTPS, but not FTP. :-|

Chuck

WB6YOK
I wish I had been more clear.
I wish I had been more clear.

I HAVE configured the on-board tftp server to use option 66 and that works fine.

What I want to do is ftp INTO the node so I can put the provisioning files into a folder /tftp on the node.

For all of you developer types a node should be able to do what I want to do natively so provisioning phones would be a whole bunch easier for us asterisk/freepbx guys. Done right the phone gets it's address AND where the files are located for provisioning. I'd love to see that as part of the setup page along with a web based ability to upload any kind of file to the node.

Thanks for all the good advice!

Chuck...
K6AH
K6AH's picture
WinSCP

Download WinSCP ( https://winscp.net/eng/index.php ) and connect to the node via SCP on port 2222.  Then you can just drag and drop the files you want to move to the node.

Andre, K6AH
 

KE2N
KE2N's picture
You can SCP from the command

You can SCP from the command line on a raspberry pi, or other computer, too.  Definitely the easy way to do it.

Ken
 

nc8q
nc8q's picture
scp INTO the node...put files into node:/tftp

Andre and Ken have an alternative solution.

[Linux] scp may be used in lieu of ftp.
I just transferred files
up and down and node to workstation and workstation to node
using scp.

Chuck

KE2N
KE2N's picture
tftp?

ummm - where is the "on-board tftp server"?   
I checked two of my nodes and cannot find a tftp program.   I believe there is one as part of the bootloader, but I do not see one as part of the OS. 
Do you mean you found one and installed it on your node? Which one?

Ken

WB6YOK
Sigh,
Sigh,

I misspoke. I meant that I configured the on-board dhcp (dnsmasq.conf) to allow option 66 which points to the tftp server on my freepbx server. There is a an article on the forum that speaks to actually using the node as a tftp server. I have not tried that yet. The info I saw was not entirely correct in the first place.

Ain't this fun?
WB6YOK
Nutz!
Nutz!

I completely forgot about being on port 2222!

Grumble. Getting old I guess.

Thanks to all for your replies. Your the best!

Now, off to troubleshoot a mis-configured trunk between to freepbx servers.

I am going to write all of this up and publish it.
 

Theme by Danetsoft and Danang Probo Sayekti inspired by Maksimer