Urso_Polar
(usa Ubuntu)
Enviado em 13/08/2012 - 15:24h
Amigos, boa tarde! Não consigo colocar o server ftp de um cliente para funcionar. Passo-a-passo do que fiz:
01) Criei uma conta no no-ip e instalei o cliente no Servidor (Um Debian 6, com uma placa de rede só e ip fixo). A rede está desta forma:
a) Modem Opticom Dslink 485 (GVT roteado), ligado a um switch de 8 portas e servidor pendurado neste switch.
Saída do comando noip2:
root@NERV-01:/etc# noip2 -S
No noip2 processes active.
Configuration data from /usr/local/etc/no-ip2.conf.
Account ne******01@gmail.com
configured for:
host meuserver.no-ip.org
Executing /etc/proftpd/noip2.sh upon successful update.
Updating every 5 minutes via /dev/eth0 with NAT enabled.
root@NERV-01:/etc#
02) Instalei o proftpd. Segue arquivo de configuração:
# /etc/proftpd/proftpd.conf -- This is a basic ProFTPD configuration file.
# To really apply changes reload proftpd after modifications.
#
# Includes DSO modules
Include /etc/proftpd/modules.conf
# Set off to disable IPv6 support which is annoying on IPv4 only boxes.
#UseIPv6 on
# If set on you can experience a longer connection delay in many cases.
IdentLookups off
ServerName "Bem-vindo! NERV-01 Ftp Server"
ServerType standalone
DeferWelcome on
MultilineRFC2228 on
DefaultServer on
ShowSymlinks on
AllowForeignAddress on
TimeoutNoTransfer 600
TimeoutStalled 600
TimeoutIdle 1200
DisplayLogin welcome.msg
DisplayChdir .message true
ListOptions "-l"
DenyFilter \*.*/
# Use this to jail all users in their homes
# DefaultRoot ~
# Users require a valid shell listed in /etc/shells to login.
# Use this directive to release that constrain.
# RequireValidShell off
# Port 21 is the standard FTP port.
Port 21
# In some cases you have to specify passive ports range to by-pass
# firewall limitations. Ephemeral ports can be used for that, but
# feel free to use a more narrow range.
# PassivePorts 49152 65534
# If your host was NATted, this option is useful in order to
# allow passive tranfers to work. You have to use your public
# address and opening the passive ports used on your firewall as well.
MasqueradeAddress meuserver.no-ip.org
# This is useful for masquerading address with dynamic IPs:
# refresh any configured MasqueradeAddress directives every 8 hours
<IfModule mod_dynmasq.c>
# DynMasqRefresh 28800
</IfModule>
03) Abri as portas no modem Dslink 485:
Advanced Setup --> NAT --> Virtual Servers
Lá startei a porta 21 como tcp/udp, no ip 192.168.1.100 (ip do servidor) e da mesma forma a porta 20.
Já tentei N portas diferentes, tanto no proftpd.conf quanto no modem e nada! não acesso de fora como
ftp://meuserver.no-ip.org e internamente
ftp://192.168.1.100 pede usuário e senha. No modo interno já tentei os 2 users criados com suas senhas e não funciona!
Grato desde já!