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

Notices


Reply
  Search this Thread
Old 04-15-2004, 06:38 AM   #1
Boffy
Member
 
Registered: Jul 2003
Location: Durham, UK
Distribution: Ubuntu 8.04
Posts: 419

Rep: Reputation: 30
Apache and NAT Routing


I want to create an apache web server from my home pc but it is behind my router. Whenever you type the external IP address you get the setup page for my router. How can I make it divert to the apache server - hosted on 192.168.1.2.

Boffy
 
Old 04-15-2004, 07:41 AM   #2
tuxguy
Member
 
Registered: Mar 2004
Location: North Bay, Ontario - CANADA
Distribution: Debian
Posts: 77

Rep: Reputation: 16
tell your router to forward port 80 (HTTP) to your apache server.. if your using IPTABLES... head over to http://iptables-script.dk/index1.php and it will generate the script for ya.

Later
jesse
 
Old 04-15-2004, 08:01 AM   #3
Boffy
Member
 
Registered: Jul 2003
Location: Durham, UK
Distribution: Ubuntu 8.04
Posts: 419

Original Poster
Rep: Reputation: 30
The router im behind is a unex external router
 
Old 04-15-2004, 08:55 AM   #4
tuxguy
Member
 
Registered: Mar 2004
Location: North Bay, Ontario - CANADA
Distribution: Debian
Posts: 77

Rep: Reputation: 16
go to your router setup page... and tell it to forward port 80 to your server IP address.. shouldn't be a problem.
 
Old 04-15-2004, 10:44 AM   #5
Robert0380
LQ Guru
 
Registered: Apr 2002
Location: Atlanta
Distribution: Gentoo
Posts: 1,280

Rep: Reputation: 47
yea, you'll want to disable that router setup page if remote users are seeing it too. dont want anybody trying to log into your router just because they can.
 
Old 04-15-2004, 12:23 PM   #6
Boffy
Member
 
Registered: Jul 2003
Location: Durham, UK
Distribution: Ubuntu 8.04
Posts: 419

Original Poster
Rep: Reputation: 30
I have tried to do it by using somthing called "Virtual Server" to little avail. I was wondering if anyone else had solved the problem for their router.
 
Old 04-15-2004, 07:29 PM   #7
tuxguy
Member
 
Registered: Mar 2004
Location: North Bay, Ontario - CANADA
Distribution: Debian
Posts: 77

Rep: Reputation: 16
What model of router is it? WF704? I will try and find the manual online and see what it has to offer...

Jesse
 
Old 04-16-2004, 04:40 AM   #8
Boffy
Member
 
Registered: Jul 2003
Location: Durham, UK
Distribution: Ubuntu 8.04
Posts: 419

Original Poster
Rep: Reputation: 30
It turns out I had done it all along, I had configured the port forwarding correctly however from my computer I could only get at the router config page. Im asked a friend to test it and they got it to work fine. Thanks for all the advice though non the less.

Bofy
 
  


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
Two-way NAT routing MPowers Linux - Networking 3 06-24-2005 04:24 PM
routing through nat booyah Linux - Networking 3 01-17-2004 09:40 PM
real routing under nat routing nothingmuch Linux - Networking 4 10-27-2003 04:11 PM
Routing behind NAT bax *BSD 5 04-26-2003 06:38 PM
Routing and nat Morning_Star Linux - Networking 5 02-11-2003 12:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:57 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