View previous topic :: View next topic |
Author |
Message |
cptmorgan Tux's lil' helper
Joined: 28 Jan 2004 Posts: 129 Location: California
|
Posted: Tue Sep 14, 2004 7:45 am Post subject: glftpd unknow error: canonicalize local hostname ??? |
|
|
Ive been trying to get glftpd to work forever.... this is what ive done...
cat /etc/hosts.allow
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 |
|
|
Propagandhi n00b
Joined: 09 Jul 2003 Posts: 27
|
Posted: Thu Sep 23, 2004 4:21 pm Post subject: |
|
|
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 |
|
|
c4 Guru
Joined: 21 Feb 2004 Posts: 312 Location: Sweden
|
Posted: Thu Sep 23, 2004 5:08 pm Post subject: |
|
|
@ 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 |
|
|
dj_farid l33t
Joined: 14 Jun 2004 Posts: 613
|
Posted: Thu Sep 23, 2004 6:23 pm Post subject: |
|
|
Only the tcp line is needed in /etc/services. Glftpd is not using udp. |
|
Back to top |
|
|
Propagandhi n00b
Joined: 09 Jul 2003 Posts: 27
|
Posted: Fri Sep 24, 2004 3:57 am Post subject: |
|
|
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 |
|
|
dj_farid l33t
Joined: 14 Jun 2004 Posts: 613
|
Posted: Fri Sep 24, 2004 5:40 am Post subject: |
|
|
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 |
|
|
|