LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 11-19-2010, 05:05 PM   #1
Aigarzs
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
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Kubuntu
Posts: 1,189

Rep: Reputation: 301Reputation: 301Reputation: 301Reputation: 301
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.
 
  


Reply

Tags
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
Trackbacks are Off
Pingbacks are On
Refbacks are 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


All times are GMT -5. The time now is 02:48 AM.

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