Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 14th June 2011, 00:39
lefloresg80 lefloresg80 is offline
Junior Member
 
Join Date: Nov 2010
Posts: 20
Thanks: 1
Thanked 0 Times in 0 Posts
Default pureftpd and apache2

Hello all,

Newbie question. So I installed pureftpd just as suggested in the tutorial but with nothing else of the perfect server on Ubuntu 11.04. I can do ftp from my machine on filezilla using the localhost but I can't see my computer from the outside. What configurations changes must I make, if any, on my apache .conf file. Thanks!
Reply With Quote
Sponsored Links
  #2  
Old 14th June 2011, 23:53
lefloresg80 lefloresg80 is offline
Junior Member
 
Join Date: Nov 2010
Posts: 20
Thanks: 1
Thanked 0 Times in 0 Posts
Default

OK, so now the port is open and I can connect through filezilla but I'm getting a "Failed to Retrieve Directory List" error. I also get "Status: Server sent passive reply with unroutable address. Using server address instead."

Example:

root@box:/etc/pure-ftpd/conf# echo ,21 > Bind
root@box:/etc/pure-ftpd/conf# echo xx.xx.xx.xx > ForcePassiveIP
root@box:/etc/pure-ftpd/conf# echo 5000 5050 > PassivePortRange

Thanks

Last edited by lefloresg80; 14th June 2011 at 23:59.
Reply With Quote
  #3  
Old 15th June 2011, 08:35
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,722 Times in 2,563 Posts
Default

Did you try both active and passive transfers in your FTP client?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #4  
Old 15th June 2011, 18:08
lefloresg80 lefloresg80 is offline
Junior Member
 
Join Date: Nov 2010
Posts: 20
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Falko,

Thank you for your response, I have Filezilla setup to connect on active mode if passive mode fails. From the Filezilla log, it seems it is able to connect but for some reason it can't create the folder list.

Thanks
Reply With Quote
  #5  
Old 16th June 2011, 08:32
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,722 Times in 2,563 Posts
Default

What's the output of
Code:
iptables -L
?

Does FTP work from inside your local network, but not from outside? In that case you should also check your router configuration.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #6  
Old 16th June 2011, 22:07
lefloresg80 lefloresg80 is offline
Junior Member
 
Join Date: Nov 2010
Posts: 20
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Falko this is my output

Code:
root@folders:~# iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
Thanks
Reply With Quote
  #7  
Old 17th June 2011, 12:11
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,722 Times in 2,563 Posts
Default

Ok, no firewall - that's ok.

What about my other question?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #8  
Old 17th June 2011, 17:46
lefloresg80 lefloresg80 is offline
Junior Member
 
Join Date: Nov 2010
Posts: 20
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Well at some point it started working, partially, but I think I'm having problems with my static ip, and I don't know if it's conflicting with my hosts file. Now every time I start my computer I have to make changes in the interfaces file in order to get the internet to work. I've tried configuring the static port through the router, with the interfaces file, and both at the same time, but something is amuck. When it does work I can't get passive ports working.

I just installed 11.04 on both computers at my office, and I have no idea how to go about and create an internal network for file/printer sharing. In the networks place all I see is windows network. So I haven't been able to check through the network. When it does work I end up connecting thrtough the internet on the other computer. I can't simply put 192.168.0.xxx:21 on filezilla and have it work.

Gonna reboot now and check if I still have to play around with the interfaces file

Thanks
Reply With Quote
  #9  
Old 22nd June 2011, 17:50
lefloresg80 lefloresg80 is offline
Junior Member
 
Join Date: Nov 2010
Posts: 20
Thanks: 1
Thanked 0 Times in 0 Posts
Default

It seems that the other computer on my LAN is actually recognizing the internal address. From the outside the I can connect to the server (without passive ports) but then I can't get the folder list.
Reply With Quote
  #10  
Old 23rd June 2011, 16:03
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,722 Times in 2,563 Posts
 
Default

So it's working from inside your LAN, but not from the outside? In this case you should check your router settings.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
pureftpd and apache2 file permissions thesquib HOWTO-Related Questions 1 29th November 2007 15:40


All times are GMT +2. The time now is 14:27.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.