Anonymous FTP Setup

IMPORTANT NOTE:
This process will break the customer's domain for a day. It is important that the customer know this to avoid their frustration and ours. Make sure the customer understands this before you make any changes to their domain.

Setup DNS
  1. Shell to defiant and go to /etc/dns/zones/reverse. vi db.209.30.3
  2. Pick an available ip address, remove the generic entry and replace with 'www.domain.com.' DON'T FORGET THE TRAILING PERIOD!
  3. Change the serial number to the current date, in the form yyyymmdd00. If it is already there, increment the last number by one.
  4. Remember (or write down) the ip addy, write and quit, go to /etc/dns/zones/virtual-domains and open the zone file for the domain in question (more db.domain-com-or- net-or-org).Note any special record assignments and write them down. Also note the serial number.
  5. Replace the db.domain-com file with db.OLD-STYLE (cp db.OLD-STYLE db.domain-com).
  6. Edit the new db.domain-com file (sudo vi db.domain-com) and replace xxx.xxx.x.xx with the ip address you selected. Increment the old serial number by one, write and quit from the file, and update DNS (update-dns).

Web Interface
  1. Go to http://www.flash.net/domains/add_domain_special.cgi.
  2. Add the ip address in the first field, the absolute path for their home directory (/home/u/s/userid/www) in the second field, and the domain name in the third field (domain.com) and submit.
  3. Remove the domain by domain name from httpd.conf.

Setup Web and FTP
  1. Shell to the web server (caligula) and go to /etc. Sudo vi ip_aliases.
  2. This file is laid out in numerical order. Find the section where the ip address you selected should be, and copy and paste an entry and make the appropriate changes to reflect the ip address you are setting up. It should look something like this:
    #
    # ftp.domain.com
    #
    ifconfig hme0:28 209.30.3.28 up

        Note that hme0:?? is the last number of the ip address you are setting up.

WHOA! It is so very important that you don't screw the ifconfig entry up! Check and double/triple-check your line before you hit 'enter'! Also be very careful on the next step as well, since you will be (again) dealing with ifconfig!

  1. Write and quit, then sudo the last line of the entry you just created. You may have to use the absolute path to ifconfig, (/usr/sbin/ifconfig).
  2. Change to /home/ftpd. Do:
    sudo ./ftpdvhost domain.com ip.add.re.ss userid DIALIN /home
  3. Change to /usr/local/etc. Edit proftpd.conf (sudo vi). Go to the bottom of the file, copy and paste the last entry (24 lines), and edit the entry to reflect the domain you are setting up. You will change "so-and-so.com's FTP server," and the entries pointing to their home directory.
  4. Write and quit.
  5. Now go to /httpd/conf. Edit httpd.conf (sudo vi). Find the section with all the Listen ip:80 entries for virtual domains. Add the new entry in numerical order. Write and quit.

The ftp site will be up within four hours, as the ftp daemon reloads its config that often. The web site will be up at 5 a.m. the following morning. If worse comes to worse, you could hold off on updating their db file until the next morning. This would keep their web site up, and they could access their ftp via the ip address. IF YOU DO THIS, don't forget to remove the domain from httpd.conf after you update their db file.


5/11 smw