Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
glftpd unknow error: canonicalize local hostname ???
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
cptmorgan
Tux's lil' helper
Tux's lil' helper


Joined: 28 Jan 2004
Posts: 129
Location: California

PostPosted: Tue Sep 14, 2004 7:45 am    Post subject: glftpd unknow error: canonicalize local hostname ??? Reply with quote

Ive been trying to get glftpd to work forever.... this is what ive done...

cat /etc/hosts.allow
Code:

glftpd: all


cat /etc/xinetd.conf
Code:

defaults
{
        instances      = 60
        log_type       = SYSLOG authpriv info
        log_on_success = HOST PID
        log_on_failure = HOST
        cps            = 25 30
}

includedir /etc/xinetd.d


cat /etc/xinetd.d/glftpd
Code:

service glftpd
{
    disable         = no
    flags           = REUSE NAMEINARGS
    socket_type     = stream
    protocol        = tcp
    wait            = no
    user            = root
    server          = /usr/sbin/tcpd
    server_args     = /opt/glftpd/bin/glftpd -l -i -z cert=/etc/glftpd-dsa.pem -o -r /opt/glftpd/glftpd.conf -s/opt/glftpd/bin/glstrings.bin
#    only_from       = 0.0.0.0
}

Code:

# Custom
ifip 127.0.0.1 192.168.*.*
elseip
pasv_addr cptmorgan.homelinux.net 1
pasv_ports 27900-28000
endifip
allow_fxp yes


Also Ive forwared all the correct ports on my router (passive ports and connection port). Still no one can connect from outside my router and niether can I throught ncftp cptmorgan.homelinux.net 5446 but i can with ftp cptmorgan.homelinux.net 5446 and localhost ??

ive noticed this message in /var/log/messages
Code:

Sep 14 00:21:38 mybox glftpd:81.216.10.61: connected: Couldn't canonicalize local hostname (3)


netstat -nap | grep 5446
Code:

tcp        0      0 0.0.0.0:5446            0.0.0.0:*               LISTEN      18438/xinetd

listening on 0.0.0.0 ?? im so lost... errrrr
Back to top
View user's profile Send private message
Propagandhi
n00b
n00b


Joined: 09 Jul 2003
Posts: 27

PostPosted: Thu Sep 23, 2004 4:21 pm    Post subject: Reply with quote

i'm having this excact same problem and i dont know what caused it. must be something i updated since it was working perfectly and now it isnt.

my confs are pretty much same as yours, some minor differencies.

i hope someone knows the answer.
Back to top
View user's profile Send private message
c4
Guru
Guru


Joined: 21 Feb 2004
Posts: 312
Location: Sweden

PostPosted: Thu Sep 23, 2004 5:08 pm    Post subject: Reply with quote

@ cptmorgan:

Have you added your port(s) to /etc/services

Code:
mv@tbird133 mv $ less /etc/services | grep glftpd
glftpd  2121/tcp
glftpd  2121/udp


I dont think gl will run without them
_________________
AMD64 Gentoo Hardened server
AMD64 Xubuntu Desktop
X86 Dreamlinux Vaio laptop
Back to top
View user's profile Send private message
dj_farid
l33t
l33t


Joined: 14 Jun 2004
Posts: 613

PostPosted: Thu Sep 23, 2004 6:23 pm    Post subject: Reply with quote

Only the tcp line is needed in /etc/services. Glftpd is not using udp.
Back to top
View user's profile Send private message
Propagandhi
n00b
n00b


Joined: 09 Jul 2003
Posts: 27

PostPosted: Fri Sep 24, 2004 3:57 am    Post subject: Reply with quote

ok, figured it out.
in glftpd.conf
pasv_addr has something to do with that, either set it to your ip number or comment it out.

at least that worked for me
Back to top
View user's profile Send private message
dj_farid
l33t
l33t


Joined: 14 Jun 2004
Posts: 613

PostPosted: Fri Sep 24, 2004 5:40 am    Post subject: Reply with quote

Quote:

pasv_addr <ip> [1]
Determines what IP/Host is used for passive mode.

If you want glftpd to bind to this interface (for example, if you use
more than one NIC in the same box and you want passive connections to
not use the default one), just do "pasv_addr x.x.x.x". If you want
glftpd to only report this IP to the client but to bind to the default
interface (as in when your box only has an internal IP and you're using
NAT), do "pasv_addr x.x.x.x 1".

If you have multiple pasv_addr lines, glftpd will cycle through them in
a round-robin style each time a file is transferred using passive mode.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum