LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 10-30-2003, 12:38 AM   #1
jdolluc
Member
 
Registered: Jul 2003
Distribution: Debian
Posts: 31

Rep: Reputation: 15
pure-ftpd, getting past a firewall


i am running pure-ftpd through inetd, and i am having problems that i have found many times with proftpd. i have a firewall/router that is setup to forward port 21 to my computer. this seems to kinda work. outside users can log in, but they cannot do any commands, such as 'ls'. I have read (on the following thread) that this is due to passive ports not being able to get throught the firewall. well in proftpd you can set that option in the config file, but it appears as though pure-ftpd does not have a config file. i am confused as to what to do.

http://www.linuxquestions.org/questi...threadid=79251

any help will be much appreciated.
 
Old 10-30-2003, 04:19 AM   #2
Cyclo
Member
 
Registered: Jul 2003
Distribution: Slackware 9.1
Posts: 47

Rep: Reputation: 15
if it's a linux router, "modprobe ip_conntrack_ftp" and it should work (i think)
 
Old 10-30-2003, 07:28 AM   #3
jdolluc
Member
 
Registered: Jul 2003
Distribution: Debian
Posts: 31

Original Poster
Rep: Reputation: 15
actually i figured it out.

pure-ftpd does not use a config file because everything is passed through the command line. all i needed to do was add '-p 3456:3456' to my list of arguments in inetd.conf, then forward all port 3456 requests to my computer
 
Old 10-30-2003, 08:40 AM   #4
littleking
Member
 
Registered: Jun 2003
Location: New Albany, OH
Posts: 190

Rep: Reputation: 30
you need to allow passive in order to issue the comands
 
Old 10-30-2003, 11:42 PM   #5
jdolluc
Member
 
Registered: Jul 2003
Distribution: Debian
Posts: 31

Original Poster
Rep: Reputation: 15
ok, so how do tell my server and/or linksys firewall to only allow passive and not active?
 
Old 10-31-2003, 09:29 AM   #6
zaphodiv
Member
 
Registered: Oct 2003
Distribution: Slackware
Posts: 388

Rep: Reputation: 30
>how do tell my server and/or linksys firewall to only allow passive and not active?

I don't think you can and I don't think that is what littleking meant.
I suspect all you could do is add a sentance to the ftp server login message telling people to set their FTP client to passive mode.
If the people connecting to the ftp server from outside can receive incoming connections then active mode will probably work.
If they are NATed or firewalled they will probably have to use passive mode which you have now got working.
 
Old 10-31-2003, 11:20 AM   #7
jdolluc
Member
 
Registered: Jul 2003
Distribution: Debian
Posts: 31

Original Poster
Rep: Reputation: 15
ahh i gotcha. thanks guys.
 
  


Reply



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
pure-ftpd roofy Linux - Software 6 03-05-2007 04:06 AM
pure-ftpd help hongman Linux - Software 16 04-06-2005 11:18 AM
Pure-ftpd Yoinx Linux - Software 0 10-18-2004 12:12 PM
Pure-ftpd zaicheke Linux - Software 2 08-19-2004 06:20 PM
Pure FTPD help oACEo Linux - Newbie 2 12-07-2003 11:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:06 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration