RE: I am unable to connect to my ftp server from anything other than the local host

2007-01-29 Thread Guillermo Gonzalez

Ok, just so everyone knows the problem I was having where I was getting a
421 error when trying to connect to my ftp server was due to an error on my
part when setting up ftpd.  I had it both in rc and in inetd.conf.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


I am unable to connect to my ftp server from anything other than the local host

2007-01-27 Thread Guillermo Gonzalez

When I try to ftp localhost I get this:

[EMAIL PROTECTED] ~]$ ftp localhost
Trying ::1...
Connected to localhost.
220- Welcome message goes here  :D
220 tester FTP server (Version 6.00LS) ready.
331 Guest login ok, send your email address as password.
230- READ OR DIE!!1
230 Guest login ok, access restrictions apply.
Remote system type is UNIX.
Using binary mode to transfer files.

However, when I attempt to ftp to the box's ip I get:

[EMAIL PROTECTED] ~]$ ftp 192.168.1.108
Connected to 192.168.1.108.
421 Service not available, remote server has closed connection.

I'm running bsd 6.1.
I keep reading online that when that happens, it is due to a problem with
some config file.
I don't think there is a problem with it but I've listed it just in case.

pam file in /etc/pam.d/ftp

# auth
authrequiredpam_nologin.so  no_warn
authsufficient  pam_opie.so no_warn
no_fake_prompts
authrequisite   pam_opieaccess.so   no_warn allow_local
#auth   sufficient  pam_krb5.so no_warn
#auth   sufficient  pam_ssh.so  no_warn
try_first_pass
authrequiredpam_unix.so no_warn
try_first_pass

# account
#accountrequiredpam_krb5.so
account requiredpam_unix.so

# session
session requiredpam_permit.so

The program is the regular ftpd that comes with bsd.  I'm using inetd it
with a line
in inetd.conf:
ftpstream  tcp nowait  root/usr/local/libexec/ftpd ftpd -l -l

I also have a line in my passwd file for ftp as anonymous:
ftp:*:14:5:Anonymous FTP Admin:/home/ftp:/nonexistent
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]