Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
disable passive FTP
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
o5gmmob8
Guru
Guru


Joined: 17 Oct 2003
Posts: 531

PostPosted: Mon Feb 10, 2025 8:28 pm    Post subject: disable passive FTP Reply with quote

Is there a configuration that allows me to disable passive FTP for fetching artifacts? My firewall restricts traffic to common web ports and even FTP is frowned upon. I understand that a port is just a port and malicious traffic can surreptitiously pass through a commonly used port like https.
Back to top
View user's profile Send private message
szatox
Advocate
Advocate


Joined: 27 Aug 2013
Posts: 3504

PostPosted: Mon Feb 10, 2025 9:43 pm    Post subject: Reply with quote

That's a really weird question to ask. What are you trying to do there?
Isn't passive mode the one where client opens all connections (both, management and data) to the server? It's done this way on purpose, if you're on a consumer link, you're probably behind a NAT, so active mode with server-initiated data connection won't work anyway. Who controls that firewall you mentioned and what do you mean by FTP being frowned upon?
I wonder what the full story is....

You can override FETCHCOMMAND (check out emerge --info), but I doubt going active will get whatever result you're hoping for.
_________________
Make Computing Fun Again
Back to top
View user's profile Send private message
o5gmmob8
Guru
Guru


Joined: 17 Oct 2003
Posts: 531

PostPosted: Tue Feb 11, 2025 2:19 am    Post subject: Reply with quote

I want to avoid FTP as a file transfer protocol being used and instead just use HTTPS.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23105

PostPosted: Tue Feb 11, 2025 2:42 am    Post subject: Reply with quote

Your original request reads specifically as an attempt to avoid passive FTP, with the implication that you wanted to prefer active FTP. Passive FTP is generally better than active, so asking to switch to active seemed strange.

I am not aware of a way to do what you want.
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 2013

PostPosted: Tue Feb 11, 2025 2:52 am    Post subject: Reply with quote

If you mean to pull down distfiles or binpkgs from mirrors, then simply don't list an ftp:// URL in GENTOO_MIRRORS in make.conf.
Except in the rare case that a mirror does not have a file and only ftp:// is listed in the ebuild file, then it will just fail if firewalled out.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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