Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 06-03-2004, 05:35 PM   #1
Registered: Aug 2003
Posts: 44

Rep: Reputation: 15
static IP, a router, getting apache working ok Lan-side


I have apache 1.3 set up on slackware 9.1. It is behind a Netgear DG834 router and my ISP have supplied me with at static IP. The router supplies my slack box with an IP via dhcp and I have the router set so that people on the wan side can see my server. Cool.

What I am trying to do is set up my hosts/routing (really not sure) so that both lan and wan side I can input my static IP (from my ISP) into a browser and bring up the apache server I have running locally (this will allow me to use absolute URLs on my pages and in my CMS configs and use them locally).

At the moment the IP from my ISP takes me (lan side) to my router.... if I add the relevant port it doesn't. Do I add details to httpd.conf, or /etc/hosts (or is it iptables I need to use?)? Im a little lost as I have been working on this a little blind and I can't see the wood for the trees!!!

Any pointers greatfully received!
Old 06-03-2004, 06:45 PM   #2
Senior Member
Registered: Sep 2002
Location: CA
Distribution: openSuSE, Cent OS, Slackware
Posts: 1,131

Rep: Reputation: 75
Use your router to forward the http requests to you webserver. I think this is all you need.
Old 06-04-2004, 12:02 PM   #3
Registered: Aug 2003
Posts: 44

Original Poster
Rep: Reputation: 15
Thanks for the reply!

I will have a look at this and post any feedback if I get it going ok!

Well, looking at This page I don't think I'll be able to view my site from inside the LAN using my static IP and my DG834 router:

"This router/modem does not support loopback which would enable you to connect to your network by using your WAN IP.

Try connecting to »yourWANIP/ and you will probably get the router admin page.

It's not an inherent flaw of NAT devices as my FVS318, my Linksys WGT54G and my oooold BEFSR411 all supported loopback.
It is sort of a feature that has been taken for granted by anybody other than users of the DG834, DG824, RP614 (v2 supports it) or MR814."

Are there any options I can explore on my Linux install? I have tried adding lines to /etc/hosts, with no luck.

Last edited by flippantfig; 06-06-2004 at 07:22 AM.


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
Can my Linux box be used as a transparent proxy on the LAN side of my router? Steve2001 Linux - Networking 5 02-01-2005 11:12 AM
Routing LAN -> WAN -> LAN with unhelpful router synx13 Linux - Networking 2 06-14-2004 02:35 PM
IP-less sniffing on WAN side of internet router codeape Linux - Networking 18 02-17-2004 02:18 PM
Static LAN IP Under RedHat 9.0 Brad4321 Linux - Networking 3 12-31-2003 07:42 PM
Static IP on LAN Help please Scotty2435 Linux - Networking 2 12-17-2001 06:10 PM > Forums > Linux Forums > Linux - Networking

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

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