Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 11-19-2010, 05:05 PM   #1
LQ Newbie
Registered: Jan 2008
Distribution: Slackware
Posts: 19

Rep: Reputation: 0
FTP client active ports

Good day!

I want to use FTP client (for example ncftp) to connect in active mode.
I have firewall (iptables) on my laptop and most of time I am behind rooter.

With outgoing packets and with passive mode all is working fine.
But some sites accept only active mode.
I could open some port range in firewall and in rooter for active data packets, but I don't know how to solve security issues.

So how should I correctly manage active ftp connection?

How can I set data port range when opening active connection with ncftp (or maybe another ftp client)?
How can I limit that incoming connections to that ports range is accepted only by ncftp or else dropped?

Using Slackware 13.1
Old 11-19-2010, 05:22 PM   #2
Senior Member
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,261

Rep: Reputation: 315Reputation: 315Reputation: 315Reputation: 315
For iptables look in chapter "Complex protocols and connection tracking" But if you have not very advanced router you can only open some range of ports on it and configure ftp client to use only these. As I se ncftp have not that option, but for example lftp has this ability.

Last edited by eSelix; 11-19-2010 at 05:39 PM.


ftp, ports

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Configure FTP client ti use active rather than passive billlee Linux - Newbie 2 04-04-2009 11:53 PM
Use iptables to secure active ftp, what range of ports thllgo Linux - Security 7 03-23-2009 05:21 PM
Active FTP Client Problems Sarcha Linux - Networking 2 06-29-2005 03:59 PM
FTP: active and passive mode problem with some windows client tda71 Linux - Networking 2 06-14-2005 08:31 AM
ipchains, ftp from client to non-ftp ports atari303 Linux - Networking 2 11-08-2002 02:43 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:21 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration