Networking Forums

Networking Forums > Computer Networking > Linux Networking > ftp server and dyndns

Reply
Thread Tools Display Modes

ftp server and dyndns

 
 
Bill
Guest
Posts: n/a

 
      12-30-2008, 06:26 PM
Hi

LAMP, VSFTPD on Ubuntu 7.10

The server hosts several unqualified sites.
The DNS is on DynDNS for 5 of them.
I access the web trough a speedstream router.
Ports 20-21 and 50000-50100 are rerouted to the server.

I want to access the ftp on the server by one of the sites address.

In vsftpd.conf I have:
=====
pasv_promiscuous=yes
pasv_enable=yes
pasv_mis_port=50000
pasv_max_port=50100
pasv_address=asite.selfip.com (was 192.168.2.3)
anonymous_enable=no
local_enable=yes
write_enable=yes
======

Tried with g6ftpserver.com with asite.selfip.com on port 21 leads to :
=======
* About to connect() to asite.selfip.com port 21
* Trying 70.55.139.51... connected
* Connected to nregimbald.selfip.com (70.55.139.51) port 21
* FTP response reading failed
* Closing connection #0
========


if I try with the external IP of the router it works.

What am I missing ?




Thanks
 
Reply With Quote
 
 
 
 
Mark Hobley
Guest
Posts: n/a

 
      12-30-2008, 11:08 PM
Bill <(E-Mail Removed)> wrote:

> What am I missing ?


Some routers will not allow you to access your internal resources via
your domain name. However, you can access your resources externally
using your domain name.

A fix is to modify the /etc/hosts file on your internal client machine,
and put your fully qualified hostname against the IP address of your
server.

If you want to test externally, you can either go to a friends or
neighbours house and borrow their internet for five minutes, or you can
find an externally hosted shell account to do your tests.

I noticed recently that internet web search engines follow links to the
anonymous ftp server. I don't know what they do there, presumably they
crawl the files for indexable content.

Mark.

--
Mark Hobley
Linux User: #370818 http://markhobley.yi.org/

 
Reply With Quote
 
Pascal Hambourg
Guest
Posts: n/a

 
      12-31-2008, 08:05 AM
Hello,

Bill a écrit :
>
> I access the web trough a speedstream router.
> Ports 20-21 and 50000-50100 are rerouted to the server.


Port 20 is used as a source port for outbound (active mode) data
connections, so it should not need to be rerouted.

> pasv_address=asite.selfip.com (was 192.168.2.3)


It the router handles FTP correctly, this option should not be necessary
and could even disrupt the router's operation.

> Tried with g6ftpserver.com with asite.selfip.com on port 21 leads to :
> =======
> * About to connect() to asite.selfip.com port 21
> * Trying 70.55.139.51... connected
> * Connected to nregimbald.selfip.com (70.55.139.51) port 21
> * FTP response reading failed
> * Closing connection #0
> ========
>
> if I try with the external IP of the router it works.


Could it be that asite.selfip.com resolves to the wrong IP address ?
 
Reply With Quote
 
Bill
Guest
Posts: n/a

 
      12-31-2008, 01:45 PM
Pascal Hambourg a écrit :
> Hello,
>
> Bill a écrit :
>>
>> I access the web trough a speedstream router.
>> Ports 20-21 and 50000-50100 are rerouted to the server.

>
> Port 20 is used as a source port for outbound (active mode) data
> connections, so it should not need to be rerouted.


Sorry only port 20 is specified in the router's conf

>> pasv_address=asite.selfip.com (was 192.168.2.3)

>
> It the router handles FTP correctly, this option should not be necessary
> and could even disrupt the router's operation.


It's ok on the LAN but on the web I must provide the IP.

>> Tried with g6ftpserver.com with asite.selfip.com on port 21 leads to :
>> =======
>> * About to connect() to asite.selfip.com port 21
>> * Trying 70.55.139.51... connected
>> * Connected to nregimbald.selfip.com (70.55.139.51) port 21
>> * FTP response reading failed
>> * Closing connection #0
>> ========
>>
>> if I try with the external IP of the router it works.

>
> Could it be that asite.selfip.com resolves to the wrong IP address ?


Well the actual external IP is not the same. Why ?
But it says "connected", why is it denying the read operation? The login
I gave is a real one and works locally.

The sites on the server are virtual sites and none is registered, they
only serve as private sites that we can reach when we're out.

See the difference.

logged with the actual IP
> * About to connect() to 70.52.72.145 port 21
> * Trying 70.52.72.145... connected
> * Connected to 70.52.72.145 (70.52.72.145) port 21
> < 220 " Serveur FTP prive, Bienvenue et respectez la propriété d'autrui. !!"
>
>> USER anonymous

> < 331 Please specify the password.
>
>> PASS *****

> < 530 Login incorrect.
> * Access denied: 530
> * Closing connection #0


now with the dyndns domain name
> * About to connect() to nregimbald.selfip.com port 21
> * Trying 70.55.139.51... connected
> * Connected to nregimbald.selfip.com (70.55.139.51) port 21
> * FTP response reading failed
> * Closing connection #0


See the different addresses ? (70.52.72.145 and 70.55.139.51)
Dyndns would give 2 different IPs to access depending on the protocol used ?
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SSH server with SBC DSL and DynDNS Matthew Denny Linux Networking 2 08-04-2005 12:01 PM
dyndns Wolfgang Maron Network Routers 3 07-25-2005 02:43 AM
dyndns.org Rage Linux Networking 1 06-20-2005 10:08 PM
OT: dyndns Eric Linux Networking 0 12-04-2004 05:31 AM
DynDNS problems with DI-614+ Bayardo Alvarez Wireless Internet 0 06-04-2004 03:52 PM



1 2 3 4 5 6 7 8 9 10 11