LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Setup DNS, WEB, FTP, and Mail Server Help! (https://www.linuxquestions.org/questions/linux-networking-3/setup-dns-web-ftp-and-mail-server-help-79491/)

dcdjservices 08-08-2003 04:42 PM

I installed Redhat 9 ok. It booted fine to. I cannot start my HTTP server though. I try to but it says it cannot start cuz of some resolution problem and just says that the config file with line 201. I also want to know how to find the IP address to my computer. I do an online search, but I gives me the IP address to the CBEYOND box outside. How do I find my IP address. Do I use theirs? Help Please!

MasterC 08-09-2003 12:26 AM

Wow, lots and lots of questions all in one post. Not a bad idea if you've got a networking stallion helping you..

I'd suggest from now on to start a new thread when seperate problems arise ;)

As for finding your IP address:
ifconfig

If it returns "unknown command" or whatever:
/sbin/ifconfig

This will give you the IP assigned to that machine, if any. For your external IP, if that one is private, you'll have to check a page that gives that info, something like:
http://dynamic.zoneedit.com/checkip.html

Cool

pnh73 08-09-2003 03:40 AM

It seems you are finding the configuration pretty hard. I am currently running my own hosting for myself and some friends. This is on a 500Mhz system running Red Hat 8.0. To help me configure it I use a piece of software called Webmin (www.webmin.com) this software is extremely easy to install and use. It allows you to configure all your servers through a web interface. This is accompanied with some help concerning configuration. I would recommend this to anyone who doesnt have a lot of confidence with configuration files or finds them difficult to use.

One thing i dont understand is why are you using a DNS server? I dont have one and i am running my sites through www.dyndns.org which automatically forward the sites to me. Also the people you register the site with should allow you to have the site directed to your IP. DNS seems entirely unneccessary unless you are going to use separate PC's for separate sites, which for someone hosting a site at home i would say is unneccessary. I use named virtual hosts in apache to host multiple hosts on the same computer and this works seemlessly.

I would also recommend using Postfix for your mail server. This is easier to configure than Sendmail and is very flexible and reliable.

dcdjservices 08-09-2003 11:27 AM

Thanks,
Ill try Webmin. I want to run my DNS through a free DNS provider, but Godaddy.com won't let me cuz everything ive tried says it isn't registered. I try to register but it only say ____.dcwdservices.com. Can you help me with this?

dcdjservices 08-09-2003 12:53 PM

Ok,
I tried to install Webin but it dosen't work. when i try to access localhost, it says: "not found". i still cannot access dcwdservices.com and followed the instructions it said. what do i do now. do any of you know how to setup webmin? and, lets not forget the biggest thing. i have to transfer servers quick. a hacker is deleting stuff on my site, adding stuff, and everything you name it. i really want to leave this server fast before i loose everything cuz of this hacker! help! please!

Robert0380 08-10-2003 12:41 PM

webmin runs on port 10000, try

http://localhost:10000

also phn73, sendmail was also extremely easy to setup, all i had to do was change 1 line in the sendmail.mc file to allow it to recieve mail from the internet and run the m4 command to generate a new sendmail.cf, copy it over and restart the server. im not sure if that's much harder or not than postfix, but it sure was pretty easy. but i do hear postfix is more secure.

also dynu.com lets you use their name servers if you have a dynamic ip address, but they make u pay like $30.00/year. If you really have to setup DNS, there is an excellent book, DNS and BIND from O'reilly books that explains how to setup DNS servers for BIND 4, 8 and 9 (i have the book right here in front of me). It costs like $47.00 though.

hacker issue:

when u setup a new server, the 1st thing you should do is secure it. if you plan on being a true admin, you have to learn iptables. there are several tutorial on here (do a search for iptables).

for now, take the machine offline to prevent further damage.
or you could type the following rules in as root (superuser).

iptables -P INPUT REJECT
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT

this will block access to your web server and any other server also. it would seem though that someone has your password or something. several things could have been done to the machine. if it were me, i'd forget trying to figure it out and just re-format and re-install and set a strong password, one that has no real meaning like 1$x%.25aZb or something and configure a really good firewall script. i think u can afford to do this because you arent really in a production yet.

Robert0380 08-10-2003 12:44 PM

wait...did u mean the hacker is messing up the site that's hosted elsewhere? (not on your machine) if so then just save what u still have left, change the password on the site and get crackin on the the one you are trying to put up. but still, you will need to setup a firewall script.

Snabber 08-10-2003 02:11 PM

type ifconfig to get your ip address. Post it's output here.

dcdjservices 08-16-2003 12:10 PM

What is ifconfig?

dcdjservices 08-16-2003 12:11 PM

Yes,
someone is hacking into the server in Jacksonville Florida. And, of all www folders to pick, they pick mine! I had to talk to the server people about changing my account info there, someone hacked in again and changed my password so I couldn't access it like all week!

dcdjservices 08-16-2003 12:14 PM

Ok,
I entered localhost:10000 but it said: Login Failed. I never setup a user name and password, how do I do that?

pnh73 08-20-2003 11:41 AM

you have to login with you root username (root) and password... this will give complete access the the webmin interface. The first thing i did when i got this running was to setup a webmin account that would act as my server admin. This would only allow changes to my servers that i would be running. I also restrict the webmin root login to my machine on the local network from which i admin the system.

Sorry i havent replied for ages... i've been on holiday.

dcdjservices 08-24-2003 05:30 PM

Thanks,
I tried that but it still said the same thing!

pnh73 08-24-2003 05:37 PM

Thats very strange. I just logged straight in with my root details. Have you tried logging in to root from the console (CLI) to make sure you have the correct password?

Paul

dcdjservices 08-24-2003 06:20 PM

Now, I tried to access http://localhost:10000 and it said error loading host. What is wrong now?


All times are GMT -5. The time now is 08:04 AM.