LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-22-2006, 09:54 PM   #1
hybrid3
LQ Newbie
 
Registered: Oct 2006
Posts: 2

Rep: Reputation: 0
Fedora 5 / Apache / Cable / router / webserver


Quick synopsis...

...for the past few years I've run a webserver for a local high school football team out of my home using a computer I purchased for the task. A month ago the power supply and motherboard went and upon fixing, the hard drive an IBM "deathstar" said it's final goodbyes. The site was running well and I also had mailman up and running in order to have a mailing list for the program.

...due to the events above I had the power supply and motherboard replaced and purchased a new harddrive. Yesterday the nice folks over at Duke University that are member of dulug.duke.edu had and install fest and assisted me in getting Fedora 5 up and running. It's been about three plus years since I last went through the set-up for the networking and apache items to get the site up and I'm having a tough go at it now.

This is what I have...

2 computers
(a) one is a windows box that i use DHCP to grab an IP from and simply use for home use and business
(b) linux box that is being used solely for the website

Internet service is through Roadrunner and comes from the cable to a supplied router.

I have a static IP for use with the webserver.

Prior to the system going down the router and all associated items were working fine, which leads me to believe that all problems I'm experiencing at the moment are due to incomplete set-up issues.

What I have from the Roadrunner folks is a sheet that lists Public network info and Private network info. The public info is 24.172... stuff while the private is 192.168... stuff.

I have a valid hostname and the static IP is listed appropriately with the folks I have the hostname from.

This is what I'm getting...

...on the webserver...if I go to Networking and have the system set for DHCP I can see the outside world and the test page for Apache appears on one of the 192.168... available DHCP addresses, which seems to make sense. I can access this using the address either on the webserver or the other machine in the local network.

On the other hand if I change from DHCP to Static IP on the webserver (which I believe I should be doing) I'm unable to see the outside world from the webserver and does not look as though I'm able to get to the static IP from the other machine in the network, although I can bring up the apache test page from the webserver locally.

Again, I'm sure I simply have some configuration items screwed up and any help would be greatly appreciated.

Also, is there not a command anymore for system-config-httpd in fedora 5? or an equivalent.

Thanks

PS...the first time through I worked with two friends that helped me through the process and unfortunately I don't have that assistance at this time.
 
Old 10-23-2006, 03:05 PM   #2
lord-fu
Member
 
Registered: Apr 2005
Location: Ohio
Distribution: Slackware && freeBSD
Posts: 676

Rep: Reputation: 30
Hello,

Are you sure DNS is set correctly when going to a static ip? I am not sure how on Fedora, but on my machines this is handled by /etc/resolv.conf

Hope that points you in a direction.
 
Old 10-23-2006, 03:19 PM   #3
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,232
Blog Entries: 5

Rep: Reputation: 190Reputation: 190
Also when doing a Static IP setup make sure you specify the Default Gateway (the IP address of the Router 192.168...)


And of course you will have to either use the SAME Static IP your Webserver was using before, or you will need to modify the configuratin in the Router to forward the right Ports (80) from the Internet to the Webserver.. Check the User guide for your router for Port Forwarding.
 
Old 10-23-2006, 03:20 PM   #4
Jaqui
Member
 
Registered: Jan 2006
Location: Vancouver BC
Distribution: LFS, SLak, Gentoo, Debian
Posts: 291

Rep: Reputation: 36
configure the router to have the webserver box in a dmz, outside of the router firewall.
[ the iptables on the serverbox are the same firewall, and won't conflict with the server. ]
you only need one ip address to access the server, the router ip address.
the server box can use a local network ip and the router will mask that to it's public ip address.
I turned off dhcp on my router and just use local network ips that I manually assign, it's not needed to use dhcp.
[ though re installing windows to not use it is a pain, I'm sorry you still use the malware ]
The routershould have the static public ip address as it's exteral ip address,the server should only have a local ip address.
 
Old 10-23-2006, 08:51 PM   #5
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,232
Blog Entries: 5

Rep: Reputation: 190Reputation: 190
Egads that silly DMZ setting in the routers is the worst feature they put in them..

There is no reason you should ever use that DMZ feature. If you need ONE port forwarded, Forward ONE port.. to put the entire system outside the NAT box by using the DMZ option is just silly, and also it throws away what extra security the NAT box may provide.. (covering your tail for a misconfigured iptables for instance..)

Sure use iptables on the Server, but if you can't forward ONLY the ports you need from the router using the simple web interface, I sure as heck have to question wether you can configure iptables properly.. Don't solve a small problem with a sledge hammer, and Don't use the DMZ option in Broadband routers..
 
Old 10-24-2006, 03:20 AM   #6
Jaqui
Member
 
Registered: Jan 2006
Location: Vancouver BC
Distribution: LFS, SLak, Gentoo, Debian
Posts: 291

Rep: Reputation: 36
it's handy to make sure you have the actual server working right.
when you have 2 firewalls between your server and the internet either one can kill connectivity.
removing one is a means to make sure it isn't the problem.
 
Old 10-25-2006, 12:05 PM   #7
hybrid3
LQ Newbie
 
Registered: Oct 2006
Posts: 2

Original Poster
Rep: Reputation: 0
thanks

THanks for all of the help...

...I was able to work it out...it was a default gateway issue.

I had the DNS correct, the Static IP correct, but I had the default gateway incorrect, which needed to be the Router address.

All is working well.

Greatly appreciate it and the fellas on the football team are also grateful!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
HELP - Can't access Fedora 4 Apache Webserver from other computer jun_tuko Linux - Networking 2 01-01-2006 01:49 AM
Webserver on router Lee_Ball Linux - Security 6 07-26-2005 06:39 PM
Question for multi-user webserver (Apache) on Fedora wycolorado Linux - Newbie 3 09-26-2004 01:20 AM
Apache Webserver 403 Forbidden Errors (User not in apache group?) Mankind75 Mandriva 4 07-08-2004 06:30 AM
the webserver and the router jr87 Linux - Networking 0 08-10-2003 05:50 PM


All times are GMT -5. The time now is 08:42 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration