View previous topic :: View next topic |
Author |
Message |
ProT-0-TypE Veteran
Joined: 20 Dec 2003 Posts: 1624 Location: Cagliari
|
Posted: Fri Dec 17, 2004 8:21 pm Post subject: [conf] Glftpd |
|
|
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 |
|
|
ProT-0-TypE Veteran
Joined: 20 Dec 2003 Posts: 1624 Location: Cagliari
|
Posted: Fri Dec 17, 2004 9:59 pm Post subject: |
|
|
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 |
|
|
RedNeckCracker Tux's lil' helper
Joined: 27 Oct 2003 Posts: 146 Location: Italy
|
Posted: Sat Dec 18, 2004 8:38 am Post subject: |
|
|
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 |
|
|
ProT-0-TypE Veteran
Joined: 20 Dec 2003 Posts: 1624 Location: Cagliari
|
Posted: Sat Dec 18, 2004 11:09 am Post subject: |
|
|
si, avevo già provato questo:
Code: | pasv_ports 2000-2150
pasv_addr prototype.dyndns.org 1 |
ma non cambia nulla :'( |
|
Back to top |
|
|
ProT-0-TypE Veteran
Joined: 20 Dec 2003 Posts: 1624 Location: Cagliari
|
Posted: Sun Dec 19, 2004 8:43 pm Post subject: |
|
|
nessuno che usa glftpd?? |
|
Back to top |
|
|
Kind_of_blue Guru
Joined: 10 Oct 2004 Posts: 485
|
Posted: Sun Dec 19, 2004 9:06 pm Post subject: |
|
|
non è che hai un contratto aziendale e invece dell'hag hai un router? |
|
Back to top |
|
|
ProT-0-TypE Veteran
Joined: 20 Dec 2003 Posts: 1624 Location: Cagliari
|
Posted: Sun Dec 19, 2004 9:52 pm Post subject: |
|
|
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 |
|
|
|