Jump to content











Photo
- - - - -

TFTP to HTTP and back !

tftp tftpd32 server http proxy tftp to http requests

  • Please log in to reply
5 replies to this topic

#1 Dementor H

Dementor H
  • Members
  • 3 posts
  •  
    Norway

Posted 04 December 2014 - 07:38 PM

Hello ladies and gentlemen :)

 

Can a TFTP server (for example tftpd32 from jounin) send requests to HTTP server and then receive (download the files) back from HTTP to TFTP server where the TFTP will share the files in a local area network ?

 

TFTP -> HTTP -> HTTP -> TFTP -> CPEs 

 

Thanks for your time :)



#2 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 16066 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 04 December 2014 - 07:58 PM

A Server is to SERVE files.

 

BUT of course you can script an http (or ftp, or *whatever*) download, but what will be used will be a http (or ftp, etc.) CLIENT(s).

 

This:

 

 

 

TFTP -> HTTP -> HTTP -> TFTP -> CPEs 

 

seems however like having an additional "layer".

 

Can't you more simply describe your actual "goal" (as opposed to asking about how to use a tool that you believe may help in reaching your goal)?

 

Be very aware of the risk of slipping on a chocolate covered banana :w00t: :ph34r::

http://homepage.ntlw...red-banana.html

 

I am sure you can make a description without needing to be too verbose, but do provide some details and possibly an example of what you would like to do.

 

:duff:

Wonko



#3 Dementor H

Dementor H
  • Members
  • 3 posts
  •  
    Norway

Posted 05 December 2014 - 07:50 AM

hahahahhah :) you are right, my bad; I slipped on a chocolate covered banana :D So let me try to write it all down step by step, what's my goal.

 

I need to provision SIP phones. I think that with TFTP server they can be provisioned much more easier than the other solutions (so far). But the problem is that if you want to provision the phones over a TFTP server, they have to be on the same local area network so you can play with other options (not writing in detail because I think its not necessary about the DHCP options) and automate the process of provisioning these types of phones.

 

By far that was okay, until my supervisor told me that we need a centralized solution !!! It means that we have to keep every config file for the phones in point A (the company where I am doing my internship) and we have to distribute them to point B,C,D (you may put whatever company you want here). But TFTP server distribution only works if the phones are in the same LAN / subnet.

My main question is:

Is there an option where I can create an HTTP and TFTP server which will communicate with each other and be able to download configuration files upon request from each other. (TFTP servers will be at the third party companies deployed by us) and HTTP server will be in our company as keeping and generation all files !

 

Do you think that something like that is possible to be done ?



#4 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 16066 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 05 December 2014 - 10:16 AM

If I get this right you have:

  1. n "local PC's", let''s call them conventionally "TFTP Server B", "TFTP Server C", etc. to each of  which  a "group" of these Phones  (let's call them Phone B1, B2 ... Bn, Phone C1, C2, Cn, etc.) are connected (LAN) and from which the phones download (periodically or on demand) some files.
  2. a "remote PC", let's call it "Central repository" where the actual files are hosted (and updated).

Traditionally in such a scenario, what is used is simply a (periodical, once a day, once every hour, etc.) synchronization of the local PC's to the Central repository, but what you have in mind is more like making a "bridge" between the TFTP request (initiated by the Phone(s) and directed to the local PC) and the WAN connection to the Central repository (where the download is served by an HTTP server, but it could be as well a ftp one or any other file transfer protocol).

 

So, basically, the Phone connects to the Local PC through TFTP and requests a file, if the file is missing on the Local PC a "normal" TFTP server will return an error "no such file", you want instead to have it try first downloading the "missing" file from the "Central Repository" and serve it.

 

Is this the idea?

 

If it is, there is something *similar* to this by the same Author of TFTP32:

http://www.jounin.ne...pd32_proxy.html

but that is not suited for your situation, I believe.

 

What you need is more *like* the mechanism iPXE uses:

http://jpmens.net/20...ines-over-http/

 

Cannot say if something *like* it exists (and if it exists for Windows).

 

Let's wait if some on the more "LAN oriented" members have some ideas.

 

:duff:

Wonko



#5 Dementor H

Dementor H
  • Members
  • 3 posts
  •  
    Norway

Posted 05 December 2014 - 10:35 AM

Yes, completely correct sir. But the question is: can that bridge be built (most likely yes it can be done somehow, don't know yet to be honest) but will it work ?

You explained my idea better than me and thanks for that. It's phones connected to a LAN which there is a TFTP running on that, and that TFTP over WAN connects to an HTTP server and gets back those files to the phones.



#6 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 16066 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 05 December 2014 - 11:09 AM

Good. :)

This:
http://www.tavve.com...cure-tftp-proxy

should be more or less what you are after, now the point is whether this is possible through software (I believe it is) and if it is possible on Windows (possibly it is) and if such a solution exists :unsure: or if it can be done easily (which I doubt :dubbio:).

:duff:
Wonko





Also tagged with one or more of these keywords: tftp, tftpd32, server, http, proxy, tftp to http requests

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users