Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[conf] Glftpd
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
ProT-0-TypE
Veteran
Veteran


Joined: 20 Dec 2003
Posts: 1624
Location: Cagliari

PostPosted: Fri Dec 17, 2004 8:21 pm    Post subject: [conf] Glftpd Reply with quote

salve a tutti! Piccolo problemino col server ftp GLFTPD:
Non accetta connessioni da utenti dietro router o con fastweb.
Non ho la minima idea del perchè.. anche perchè nella conf non c'è nulla di particolare..
vi posto:
Code:
 cat /etc/xinetd.d/glftpd
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:
cat /etc/xinetd.conf
defaults
{
#       only_from      = 0.0.0.0
        instances      = 60
        log_type       = SYSLOG authpriv info
        log_on_success = HOST PID
        log_on_failure = HOST
        cps            = 25 30
}

includedir /etc/xinetd.d




Code:
 cat /etc/glftpd.conf
# Server shutdown: 0=server open, 1=deny all but siteops, !*=deny all, etc
shutdown 0

[CUT]posto solo la prima parte, il resto sono solo impostazioni sui permessi, ma visto che non riesce nemmeno a connettersi, penso siano superflue..

Back to top
View user's profile Send private message
ProT-0-TypE
Veteran
Veteran


Joined: 20 Dec 2003
Posts: 1624
Location: Cagliari

PostPosted: Fri Dec 17, 2004 9:59 pm    Post subject: Reply with quote

ultime novità:
Qualcuno dietro NAT riesce a connettersi ma si ferma a:
Code:
150 Opening BINARY mode data connection for directory listing
Back to top
View user's profile Send private message
RedNeckCracker
Tux's lil' helper
Tux's lil' helper


Joined: 27 Oct 2003
Posts: 146
Location: Italy

PostPosted: Sat Dec 18, 2004 8:38 am    Post subject: Reply with quote

Per far funzionare glftpd dietro ad un NAT:

Google wrote:

To make the PASV commands work, you need to reconfigure glftpd. this is a frag from glftpd.docs:

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 usingM
NAT), do "pasv_addr x.x.x.x 1".

you need the second case. glftpd must announce the external astaro IP when receiving a PASV command, but it must bind to its NAT address. Note that this will not work correctly if your external address is dynamic ..

now take a look at this:

pasv_ports <X> <Y>M
Causes glftpd to pick an open port between X and Y when making a
passive connection, instead of picking a random port.

You should have at least 10 ports per user, so if you have 30 users
online, this range should be 300, i.e. pasv_ports 2000 2300

limit the PASV port range with this command, then create DNAT rules for the port range to get forwarded to the glftpd machine.

Now your glftpd should be fully FXP compatible.

_________________
Rage powered

http://www.stud.ntnu.no/~shane/stasj/pics/humor/div/faster_bigger.jpg
Back to top
View user's profile Send private message
ProT-0-TypE
Veteran
Veteran


Joined: 20 Dec 2003
Posts: 1624
Location: Cagliari

PostPosted: Sat Dec 18, 2004 11:09 am    Post subject: Reply with quote

si, avevo già provato questo:
Code:
pasv_ports 2000-2150
pasv_addr prototype.dyndns.org 1

ma non cambia nulla :'(
Back to top
View user's profile Send private message
ProT-0-TypE
Veteran
Veteran


Joined: 20 Dec 2003
Posts: 1624
Location: Cagliari

PostPosted: Sun Dec 19, 2004 8:43 pm    Post subject: Reply with quote

nessuno che usa glftpd??
Back to top
View user's profile Send private message
Kind_of_blue
Guru
Guru


Joined: 10 Oct 2004
Posts: 485

PostPosted: Sun Dec 19, 2004 9:06 pm    Post subject: Reply with quote

non è che hai un contratto aziendale e invece dell'hag hai un router?
Back to top
View user's profile Send private message
ProT-0-TypE
Veteran
Veteran


Joined: 20 Dec 2003
Posts: 1624
Location: Cagliari

PostPosted: Sun Dec 19, 2004 9:52 pm    Post subject: Reply with quote

no aspetta, il problema è diverso. Io ho adsl senza router e sono quelli con fastweb o co router che non riescono ad accedere al mio pc!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) 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