Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 20th November 2005, 09:54 AM
scull7's Avatar
scull7 Offline
Registered User
 
Join Date: Jun 2004
Location: Las Vegas, NV USA
Age: 32
Posts: 17
Angry Running Apache behind a NAT router.

OK before I give in to the temptation to run the box through one of our presses and then smash the pieces left into oblivion with a sledge. I will ask for help.

I am trying to get an apache server to serve a page in the /var/www/html/jlog directory to the internet through a dyndns.org name. I am able to access the page from our local network using it's IP (eg 192.168.*.*) and I am able to access the test page in the /var/www/html diretory. I am even able to access it from a different subnet using the server's IP (with the proper redirections when following links). I have our netopia DSL modem/router set up to forward all port 80 traffic to the linux box running the apache server (the netopia is performing NAT so I have it set to send all port 80 traffic to the apache box's internal IP (eg 192.168.*.*). However, when I try to access the page in the "jlog" directory I get a "Page Load Error". I notice that the browser status bar reports that it is trying to connect to the private ip (ie 192.168.*.*) so I know it is how apache is redirecting the web requests. Can someone tell me how to set apache up so that it will redirect properly when accessed through the inet and through the local network. Thank you in advance.
Reply With Quote
  #2  
Old 20th November 2005, 12:57 PM
tw56 Offline
Registered User
 
Join Date: Oct 2005
Location: GA, USA
Posts: 311
Sounds like you have it set up right so I'm wondering if it is an ip table setting to allow connections. I set mine with firestarter firewall so I don't know the command to allow with just iptable. Maybe someone else will.
Reply With Quote
  #3  
Old 20th November 2005, 01:16 PM
scull7's Avatar
scull7 Offline
Registered User
 
Join Date: Jun 2004
Location: Las Vegas, NV USA
Age: 32
Posts: 17
Well I would think that if it had to do with a firewall setting that I would not be receiving a reply from the server (as confirmed by the browser status bar). I will check that out though. Thank you.
Reply With Quote
  #4  
Old 20th November 2005, 01:20 PM
scull7's Avatar
scull7 Offline
Registered User
 
Join Date: Jun 2004
Location: Las Vegas, NV USA
Age: 32
Posts: 17
Well the firewall issue is OK, I can retrieve a page off of the web server. However, I cannot follow any links as when I do apache fills in the private IP in the URL instead of the public IP. I guess then my question would be how do I get Apache to fill in the public IP or the dyndns.org domain name in the URL instead of the private IP, while still enabling the private IP to be used on the internal network?
Reply With Quote
  #5  
Old 20th November 2005, 01:22 PM
tw56 Offline
Registered User
 
Join Date: Oct 2005
Location: GA, USA
Posts: 311
You are pointing outside requests to the ip address of the router which then point to the internal ip address of the server right. So you type 66.110.23.xxx or whatever in browser to go to router which forwards to 192.168.1.xxx:80 . Then in server I have it set to allow connections from 66.110.23.xxx:80 and 127.0.0.1 and 192.168.0.0 using firewall.
Reply With Quote
  #6  
Old 20th November 2005, 01:25 PM
tw56 Offline
Registered User
 
Join Date: Oct 2005
Location: GA, USA
Posts: 311
Ok that working right. I think there is a setting in the httpd.conf but I don't have access to my box right now.
Reply With Quote
  #7  
Old 20th November 2005, 01:34 PM
scull7's Avatar
scull7 Offline
Registered User
 
Join Date: Jun 2004
Location: Las Vegas, NV USA
Age: 32
Posts: 17
Yes, I believe that is the same setup I have. From what I have been reading I think that I may have to use a virtual host setting. Am I on the right track?
Reply With Quote
  #8  
Old 20th November 2005, 01:37 PM
tw56 Offline
Registered User
 
Join Date: Oct 2005
Location: GA, USA
Posts: 311
Maybe so. I have virtual host working to serve different directories with. Look in the topic from a couple of days ago virtual hosts. I gave a copy of my virtual host conf setting there.

Last edited by tw56; 20th November 2005 at 01:44 PM. Reason: typo
Reply With Quote
  #9  
Old 20th November 2005, 01:38 PM
tw56 Offline
Registered User
 
Join Date: Oct 2005
Location: GA, USA
Posts: 311
http://forums.fedoraforum.org/showthread.php?t=85445
Reply With Quote
Reply

Tags
apache, nat, router, running

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
apache behind a router with NAT ElektraMale Servers & Networking 4 15th June 2006 02:43 PM
Running TeamSpeak2 with Router Prone Servers & Networking 3 25th July 2004 08:01 PM


Current GMT-time: 20:30 (Wednesday, 19-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat