Unix Technical Forum

ProFTPD assistance

This is a discussion on ProFTPD assistance within the Gentoo Linux Support forums, part of the Unix Operating Systems category; --> Hey folks, I've been setting up a FTP server. My choice fell on ProFTPD, and I followed http://gentoo-wiki.com/HOWTO_ProFTPD . ...


Go Back   Unix Technical Forum > Unix Operating Systems > Gentoo Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-21-2008, 10:44 AM
Stig Mogensen
 
Posts: n/a
Default ProFTPD assistance

Hey folks,

I've been setting up a FTP server. My choice fell on ProFTPD, and I followed
http://gentoo-wiki.com/HOWTO_ProFTPD. Appearantly useraccounts, BIND,
upload and download filefolders are setup correctly, because I can access

ftp://user@localhost

and logon, and everything seems fine.

But when I try;

ftp://user@<my external IP>

I get "The connection was refused when attempting to contact....."

Ie, the link in between my IP, and the FTP server is somehow missing?.

I browsed through the forums, and found
http://forums.gentoo.org/viewtopic-t...t-proftpd.html
which looks similar to my experiences. But no solution is offered?.

When I installed Gentoo, I strictly followed the handbook for x86 stage1
installs(http://www.gentoo.org/doc/en/handbook/handbook-x86.xml), so
my /etc/hosts top entry, looks like;

127.0.0.1 localhost.localdomain localhost tux

Any tips will be greatly appreciated.

Kind regards,

Stig
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-21-2008, 10:44 AM
Whoever
 
Posts: n/a
Default Re: ProFTPD assistance



On Fri, 22 Apr 2005, Stig Mogensen wrote:

> Hey folks,
>
> I've been setting up a FTP server. My choice fell on ProFTPD, and I followed
> http://gentoo-wiki.com/HOWTO_ProFTPD. Appearantly useraccounts, BIND,
> upload and download filefolders are setup correctly, because I can access
>
> ftp://user@localhost
>
> and logon, and everything seems fine.
>
> But when I try;
>
> ftp://user@<my external IP>
>
> I get "The connection was refused when attempting to contact....."


Check the appropriate file in /etc/xinetd.d -- look for
"only_from = localhost"

and comment it out.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-21-2008, 10:44 AM
Stig Mogensen
 
Posts: n/a
Default Re: ProFTPD assistance

>> ftp://user@<my external IP>
>>
>> I get "The connection was refused when attempting to contact....."

>
> Check the appropriate file in /etc/xinetd.d -- look for
> "only_from = localhost"
>
> and comment it out.


Thanks for you reply.

I have no

"only_from = localhost"

line, in either /etc/xinetd.d/proftpd or /etc/inetd.d/proftpd. also, I'm
running a standalone servertype, as set out in
the /etc/proftpd/proftpd.conf(copy pasted in below);

/Stig


***********copy paste***********
ServerType standalone
DefaultServer on
Umask 022
ServerName "Stig's FTP"
ServerIdent on "My FTPD"
Bind "myip from www.whatismyip.com"
ServerAdmin mail2me@no_spam_stigmogensen.nu
IdentLookups off
UseReverseDNS off
Port 21
PassivePorts 49152 65534
#MasqueradeAddress None
TimesGMT off
MaxInstances 30
MaxLoginAttempts 3
TimeoutLogin 300
TimeoutNoTransfer 120
TimeoutIdle 120
User nobody
Group nobody
DirFakeUser off nobody
DirFakeGroup off nobody
DefaultTransferMode binary
AllowForeignAddress on
AllowRetrieveRestart on
AllowStoreRestart on
DeleteAbortedStores off
TransferRate RETR 30
TransferRate STOR 40
TransferRate STOU 40
TransferRate APPE 40
SystemLog /var/lib/log/secure
#gp_random_username_length 6
#gp_random_password_length 6
#gp_randomize_case lower
#gp_useradd_root_path /home/ftp
#gp_useradd_upload_path /upload
#gp_html_path /var/lib/www/ftp.html
#gp_welcome_name welcome.msg
<IfModule mod_tls.c>
TLSEngine off
TLSRequired off
TLSVerifyClient off
TLSProtocol TLSv1
TLSLog /var/lib/log/proftpd_tls.log
TLSRSACertificateFile /etc/gproftpd/gproftpd.pem
</IfModule>
<Limit LOGIN>
AllowUser neil
DenyALL
</Limit>

<Anonymous /var/ftp/pub>
User username
Group ftp
AnonRequirePassword on
MaxClients 3 "The server is full, hosting %m users"
DisplayLogin welcome.msg
DisplayFirstChdir .msg
AllowOverwrite off
<Limit LOGIN>
Allow from all
Deny from all
</Limit>
<Limit ROOT_DIR_ALLOW RETR LIST NLST MDTM SIZE STAT CWD XCWD PWD XPWD CDUP
XCUP>
AllowAll
</Limit>
<Limit ROOT_DIR_DENY DELE APPE STOR STOU SITE_CHMOD SITE_CHGRP RNFR RNTO MKD
XMKD RMD XRMD>
DenyAll
</Limit>
<Directory /var/ftp/pub>
AllowOverwrite on
<Limit UPLOAD_DIR_ALLOW LIST NLST STOR STOU APPE RETR RNFR RNTO MKD
XMKD STAT MDTM PWD XPWD SIZE CWD XCWD CDUP XCUP SITE >
AllowAll
</Limit>
<Limit UPLOAD_DIR_DENY DELE RMD XRMD SITE_CHMOD SITE_CHGRP >
DenyAll
</Limit>
</Directory>
</Anonymous>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-21-2008, 10:44 AM
flying swede
 
Posts: n/a
Default Re: ProFTPD assistance

On Fri, 22 Apr 2005 23:49:05 +0200, Stig Mogensen wrote:

> I get "The connection was refused when attempting to contact....."


Run 'proftpd -n' (nodaemon) from the command line and log in from another
terminal and see what message is returned.

Gary
--
http://jackalope.homelinux.net/~gcarlson/













----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-21-2008, 10:44 AM
Johan Lindquist
 
Posts: n/a
Default Re: ProFTPD assistance

So anyway, it was like, 10:09 CEST Apr 23 2005, you know? Oh, and, yeah,
Stig Mogensen was all like, "Dude,

>> Check the appropriate file in /etc/xinetd.d -- look for "only_from
>> = localhost"
>>
>> and comment it out.

>
> Thanks for you reply.
>
> I have no
>
> "only_from = localhost"
>
> line, in either /etc/xinetd.d/proftpd or /etc/inetd.d/proftpd.


How about the defaults, in /etc/xinetd.conf then?

--
Time flies like an arrow, fruit flies like a banana. Perth ---> *
16:31:08 up 181 days, 3:57, 10 users, load average: 0.08, 0.49, 0.38
Linux 2.6.9 x86_64 GNU/Linux Registered Linux user #261729
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:56 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com