Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] FTP over HTTP
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Vieri
l33t
l33t


Joined: 18 Dec 2005
Posts: 901

PostPosted: Fri Aug 02, 2024 8:20 am    Post subject: [SOLVED] FTP over HTTP Reply with quote

Hi,

I believe one can "GET" FTP data via HTTP with OSS such as Apache mod_proxy_ftp.
Is there an OSS solution to "PUT" FTP data via HTTP?

Regards


Last edited by Vieri on Mon Aug 05, 2024 7:50 am; edited 1 time in total
Back to top
View user's profile Send private message
szatox
Advocate
Advocate


Joined: 27 Aug 2013
Posts: 3477

PostPosted: Fri Aug 02, 2024 9:39 am    Post subject: Reply with quote

Nothing I know of. AFAIR FTP uses different TCP connections for session management and data transfer making it difficult to shove through a stateless http, so the proxy would have to do a lot of work for little benefit really.

What are you trying to do though? FTP is obsoleted anyway; it's not secure, it doesn't get along with NATs, and other protocols do that better.
If it's not just a gimmic, you'd be better of with HTTP POST form or ssh (be it sshfs, scp, sftp or rsync, depending on what interface you like most), even if what you described was possible.
_________________
Make Computing Fun Again
Back to top
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3802
Location: Rasi, Finland

PostPosted: Fri Aug 02, 2024 10:01 am    Post subject: Reply with quote

Didn't FTP use two ports (around 20-25 range)? My guess is that would be quite complicated to achieve.
_________________
..: Zucca :..

My gentoo installs:
init=/sbin/openrc-init
-systemd -logind -elogind seatd

Quote:
I am NaN! I am a man!
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2535

PostPosted: Fri Aug 02, 2024 10:26 am    Post subject: Reply with quote

Zucca wrote:
Didn't FTP use two ports (around 20-25 range)? My guess is that would be quite complicated to achieve.


Only in active mode which is the FTP server actually connecting to the client. That's why I don't find the NAT argument relevant as there's passive mode as well. And that's the default mode. Honestly I can't think of reasons to configure your FTP in active mode, although I've seen it through the years.

Also isn't NAT going to be obsoleted by IPv6?

Best Regards,
Georgi
Back to top
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3802
Location: Rasi, Finland

PostPosted: Fri Aug 02, 2024 12:22 pm    Post subject: Reply with quote

logrusx wrote:
Also isn't NAT going to be obsoleted by IPv6?
Mass adoption of IPv6 far exceeds even the development time of Duke Nukem Forever. :P
And in addition to that I've heard of IPv10, which should work as a drop-in replacement for IPv4. Although... I can't see that taking off any time soon either.
So, I guess IPv4 life-support continues into foreseeable future.
_________________
..: Zucca :..

My gentoo installs:
init=/sbin/openrc-init
-systemd -logind -elogind seatd

Quote:
I am NaN! I am a man!
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2535

PostPosted: Fri Aug 02, 2024 12:54 pm    Post subject: Reply with quote

Zucca wrote:
drop-in replacement for IPv4.


That sounds like sci-fi to me. I don't think a drop-in replacement for IPv4 is possible. However I'm seeing more and more devices supporting IPv6. And some of them are pretty old actually, I'm only recently seeing they are using it, probably because my ISP only recently adopted it.

Don't ask me why I've allowed this, I live with other people who are not concerned with privacy or security.

Best Regards,
Georgi
Back to top
View user's profile Send private message
Banana
Moderator
Moderator


Joined: 21 May 2004
Posts: 1811
Location: Germany

PostPosted: Fri Aug 02, 2024 1:17 pm    Post subject: Re: FTP over HTTP Reply with quote

Back to topic, please.


Vieri wrote:
Hi,

I believe one can "GET" FTP data via HTTP with OSS such as Apache mod_proxy_ftp.
Is there an OSS solution to "PUT" FTP data via HTTP?

Regards

As the apache mod_proxy_ftp page https://httpd.apache.org/docs/2.4/mod/mod_proxy_ftp.html#ftpnonget already says
Quote:
Currently, only GET is supported for FTP in mod_proxy. You can of course use HTTP upload (POST or PUT) through an Apache proxy.

it is not possible.

If you want to allow users to upload with a browser, then a software like https://github.com/filebrowser/filebrowser can be an alternative.
_________________
Forum Guidelines

PFL - Portage file list - find which package a file or command belongs to.
My delta-labs.org snippets do expire
Back to top
View user's profile Send private message
Vieri
l33t
l33t


Joined: 18 Dec 2005
Posts: 901

PostPosted: Mon Aug 05, 2024 7:51 am    Post subject: Reply with quote

Thanks
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum