LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-24-2004, 12:32 PM   #1
case1984
Member
 
Registered: Feb 2003
Location: Baton Rouge, LA
Distribution: ubuntu
Posts: 137

Rep: Reputation: 15
Run FTP server with dynamic ip ?


I'm running an apache server on a machine with a dynamic IP. I use zoneedit.com to forward http traffic to my IP.

Is there a way to do this with an ftp server?

I'd like to set one up, but I can't get it to work with zoneedit. Is there another way?

my current web site address is just verbbooks.com, and I'd like people to just be able to type in ftp://verbbooks.com and have it just work.

Thanks,
Michael
 
Old 07-24-2004, 01:22 PM   #2
RobertP
Member
 
Registered: Jan 2004
Location: Manitoba, Canada
Distribution: Debian
Posts: 454

Rep: Reputation: 32
Pinging verbbooks.com [207.234.129.65] with 32 bytes of data:

Reply from 207.234.129.65: bytes=32 time=156ms TTL=50
Reply from 207.234.129.65: bytes=32 time=140ms TTL=50
Reply from 207.234.129.65: bytes=32 time=125ms TTL=50

Ping statistics for 207.234.129.65:
Packets: Sent = 3, Received = 3, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 125ms, Maximum = 156ms, Average = 140ms


ftp verbbooks.com
Connected to verbbooks.com
Connection closed by remote host.

ftp 207.234.129.65
Connected to 207.234.129.65.
Connection closed by remote host.

It looks to me, from here, that the DNS is working if you are 207...

Check your server logs. I will bet ftpd or your firewall is rejecting connections for some reason.

Have you installed proftpd or ftpd? Have you configured and started the daemon?

Last edited by RobertP; 07-24-2004 at 01:23 PM.
 
Old 07-24-2004, 01:32 PM   #3
iantri
Member
 
Registered: Jul 2003
Posts: 38

Rep: Reputation: 15
It appears to me that you are using a combination of their dynamic DNS services and "WebForward". Am I correct in understanding that your ISP blocks port 80? You have "verbbooks.com" redirecting to ww2.verbbooks.com:5691.

Examination of their FAQ reveals this:

Quote:
A WebForward™ creates a hidden "A" record pointing to our web server. When our web server gets a request for your site from a visitor, our web server is designed to forward the visitor to the URL of your choosing.
This means that, verbbooks.com (and www.verbbooks.com) actually point to ZoneEdit's IP address instead of yours. It seems you have ww2.verbbooks.com actually pointing to your IP address. ZoneEdit then forwards all connections to www.verbbooks.com and verbbooks.com through to port 5691 of ww2.verbboks.com, which points to your actual IP.

EDIT: A little checking shows that this is the case. The ip for ww2.verbbooks.com resolves back to a Cox Cable address. The ip for verbbooks.com doesn't.

What you need to do is create a subdomain (like ftp.verbbooks.com) with an A record that points to your dynamic IP address. Whether they offer this level of control, I don't know, but you can't have verbbooks.com work with the WebForward service and be able to run an FTP server on that same address at the same time, because of how it works. You can, however, have a subdomain (ftp.verbbooks.com) that will work like you want.

Why are you doing this complicated redirection? Does your ISP block port 80? If you can simply do away with the redirection you will have no problems. Also, pointing it to port 5691 could cause problems for people who are surfing from behind firewalls, which may not allow people to access non-standard ports.

Also, why do you want to run an FTP server? It makes you an excellent target for attacks, and without knowing it you could end up acting as a warez server.

If you want to provide downloads (of books, or whatever) just do it through the web server. If you want to be able to upload files remotely (to change web pages, and that sort of thing) use SSH -- it has an inbuilt FTP-like capability and is signifigantly more secure. The two functions are SCP and SFTP -- SFTP acts like a command-line FTP client and SCP acts as a copy command between hosts.

Good luck,
iantri

Last edited by iantri; 07-24-2004 at 01:34 PM.
 
Old 07-24-2004, 02:15 PM   #4
case1984
Member
 
Registered: Feb 2003
Location: Baton Rouge, LA
Distribution: ubuntu
Posts: 137

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by iantri
It appears to me that you are using a combination of their dynamic DNS services and "WebForward". Am I correct in understanding that your ISP blocks port 80? You have "verbbooks.com" redirecting to ww2.verbbooks.com:5691.

Examination of their FAQ reveals this:



This means that, verbbooks.com (and www.verbbooks.com) actually point to ZoneEdit's IP address instead of yours. It seems you have ww2.verbbooks.com actually pointing to your IP address. ZoneEdit then forwards all connections to www.verbbooks.com and verbbooks.com through to port 5691 of ww2.verbboks.com, which points to your actual IP.

EDIT: A little checking shows that this is the case. The ip for ww2.verbbooks.com resolves back to a Cox Cable address. The ip for verbbooks.com doesn't.

What you need to do is create a subdomain (like ftp.verbbooks.com) with an A record that points to your dynamic IP address. Whether they offer this level of control, I don't know, but you can't have verbbooks.com work with the WebForward service and be able to run an FTP server on that same address at the same time, because of how it works. You can, however, have a subdomain (ftp.verbbooks.com) that will work like you want.


That's exactly correct! But what I would like to do is just have ftp://ftp.verbbooks.com accessable from an ftp client. Is that somehow possible?

Quote:
Why are you doing this complicated redirection? Does your ISP block port 80? If you can simply do away with the redirection you will have no problems. Also, pointing it to port 5691 could cause problems for people who are surfing from behind firewalls, which may not allow people to access non-standard ports.
Yes, my ISP blocks port 80.
Could you maybe suggest a port that might not get blocked by a firewall? I know they block 80 and I think they block 20 and 21.

Quote:
Also, why do you want to run an FTP server? It makes you an excellent target for attacks, and without knowing it you could end up acting as a warez server.
Part of the reason I'm doing this is to gain real-world experience. If I screw up and get hacked or something, then I'll learn not to do that again.
I could just have http downloads, but then I wouldn't know how to set up and run an ftp server.

Quote:
If you want to provide downloads (of books, or whatever) just do it through the web server. If you want to be able to upload files remotely (to change web pages, and that sort of thing) use SSH -- it has an inbuilt FTP-like capability and is signifigantly more secure. The two functions are SCP and SFTP -- SFTP acts like a command-line FTP client and SCP acts as a copy command between hosts.

Good luck,
iantri
 
Old 07-24-2004, 10:56 PM   #5
iantri
Member
 
Registered: Jul 2003
Posts: 38

Rep: Reputation: 15
Anyway, the gist of what you need to do is to generate a new A record for ftp.verbbooks.com that points to your IP address, like in this screenshot (from the ZoneEdit website):

http://www.zoneedit.com/img/screenshot-assign.gif

As I understand it, you simply enter your current IP address and configure your dynamic DNS client to update that record too, but, since I don't use ZoneEdit, I'm not entirely sure on the details.

Once you have created the A record for ftp.verbbooks.com, any request for that domain name will go straight through to your IP address.

Quote:
Yes, my ISP blocks port 80.
Could you maybe suggest a port that might not get blocked by a firewall? I know they block 80 and I think they block 20 and 21.
Well, guess which ports FTP runs on. That's right! You can, of course, run it on a non-standard port, but your mileage may vary.

Why are the major American ISPs so evil? Very few Canadian ISPs block any ports at all, with only the big ones (Rogers, Sympatico) blocking port 25 and nothing more. And they (Sympatico) just recently dropped all bandwidth caps.

IMHO, ISPs should be in the business of providing INTERNET access, not access to a few Internet services, such as the web...

Last edited by iantri; 07-24-2004 at 10:57 PM.
 
Old 07-25-2004, 07:08 AM   #6
charon79m
Member
 
Registered: Oct 2003
Distribution: Just about anything... so long as it is Debain based.
Posts: 297

Rep: Reputation: 30
If you want real-world, get an ISP that does not block ports. I was having the same issue with my cable internet provider, so I switched to DSL and they block nothing. I'm also able to have as many public IPs as I want at no extra cost.

(This is via Earthlink/Sprint.)

Cheers.

MrKnisely
 
Old 07-25-2004, 09:55 AM   #7
case1984
Member
 
Registered: Feb 2003
Location: Baton Rouge, LA
Distribution: ubuntu
Posts: 137

Original Poster
Rep: Reputation: 15
iantri: I'll set it up, and post back if it works, thanks for the help!

charon79m: I'm trying to avoid switching to DSL, because in my area it's a lot slower than the local cable provider, and I get a special deal through work and school which makes cable about half the cost of DSL. In a perfect world, I'd have DSL.

Thanks!
Michael
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Updating Name server with dynamic ip changes terek Linux - Newbie 4 08-31-2005 07:21 AM
How to start and run FTP server?? zaoka Linux - General 4 07-30-2005 05:01 PM
dynamic iptables based on ftp logs epoo Linux - Security 10 04-30-2005 12:22 AM
dynamic iptables based on ftp logs epoo Linux - Networking 0 04-28-2005 01:50 AM
setting up ftp with a dynamic IP address jdolluc Linux - Networking 5 08-26-2003 10:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration