LinuxQuestions.org
Help answer threads with 0 replies.
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 08-16-2004, 08:10 AM   #1
mindfestival
Member
 
Registered: Mar 2004
Posts: 47

Rep: Reputation: 15
Question web-interface router and apache prob.


Hello again. I have also just got apache up and running and am again asking a very newbie question, so bear with me if you could hehe.. ok. I have an adsl modem/hub/router, which is set up via http, my problem lies when i connect with my browser to my current ip address, i get the web interface authentication screen instead of my site.

Thankyou for tuning in

mindfestival
 
Old 08-16-2004, 08:13 AM   #2
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
Are you absolutely sure the ip address is correct? what about http://localhost
 
Old 08-16-2004, 08:43 AM   #3
mindfestival
Member
 
Registered: Mar 2004
Posts: 47

Original Poster
Rep: Reputation: 15
yes http://localhost works and displays my apache test page.
 
Old 08-16-2004, 08:47 AM   #4
mindfestival
Member
 
Registered: Mar 2004
Posts: 47

Original Poster
Rep: Reputation: 15
My apologies for the double post... could this possibly be a router issue? Or should i scrap my hardware router and do it all through IPTables, if i make any sense.
 
Old 08-16-2004, 08:52 AM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 16,427

Rep: Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938
What is the IP address of your PC?
What distribution are you running?
Are you using a static IP or DHCP on the PC?
 
Old 08-16-2004, 09:02 AM   #6
mindfestival
Member
 
Registered: Mar 2004
Posts: 47

Original Poster
Rep: Reputation: 15
the IP address of the web server is 10.0.0.2, i am running on redhat9, and all PC have a static IP.
 
Old 08-16-2004, 12:04 PM   #7
jeffreybluml
Member
 
Registered: Mar 2004
Location: Minnesota
Distribution: Fedora Core 1, Mandrake 10
Posts: 405

Rep: Reputation: 30
do you have port 80 forwarded FROM your router TO the machine running your webpage?

Just a though...
 
Old 08-17-2004, 01:03 AM   #8
mindfestival
Member
 
Registered: Mar 2004
Posts: 47

Original Poster
Rep: Reputation: 15
Apologies for the late reply, yes i am using an alcatel speed touch pro, and have configured the routing as such.

Indx Prot Inside-addrort Outside-addrort Foreign addrort
97 6 10.0.0.2:21 0.0.0.0:21 0.0.0.0:0 template
98 6 10.0.0.2:80 0.0.0.0:80 0.0.0.0:0 template

Yeah, i read up on my port fowarding, and this seems correct, i havent configured apache in any way yet, infact, when i start it up i get "could not get servers qualified domain name, using 127.0.0.1 for ServerName". When i scan my router i get this:\

Starting nmap V. 3.00 ( www.insecure.org/nmap/ )
Interesting ports on SpeedTouch.lan (x.x.x.x):
(The 1597 ports scanned but not shown below are in state: closed)
Port State Service
21/tcp filtered ftp
23/tcp open telnet
80/tcp filtered http
1723/tcp open pptp

Nmap run completed -- 1 IP address (1 host up) scanned in 9 seconds.
This has let me to confirm that my router is doing what i tell it to do, and that the problem may be with my linux config.
 
Old 08-17-2004, 01:10 AM   #9
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
If you're connecting to the webserver inside the LAN(or from the webserver itself) then it shouldn't have anything to do with the router.
type /sbin/ifconfig and check the ip address.
 
Old 08-17-2004, 01:16 AM   #10
mindfestival
Member
 
Registered: Mar 2004
Posts: 47

Original Poster
Rep: Reputation: 15
ok my bad for not explaining fully... i can connect from inside the LAN http://10.0.0.2, from any computer no problem. It is just that i got myself an account from dyndns.org, and it is only when i try to connect to my hostname that.. after about 3 minutes, i get "page not found", the account is pointing to my correct ip address i have assured.
 
Old 08-17-2004, 01:19 AM   #11
mindfestival
Member
 
Registered: Mar 2004
Posts: 47

Original Poster
Rep: Reputation: 15
heres my ifconfig output:

[root@roomshack /]# /sbin/ifconfig
eth0 Link encap:Ethernet HWaddr 00:08:C7:2C:82:5C
inet addr:10.0.0.2 Bcast:10.255.255.255 Mask:255.0.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:8555 errors:0 dropped:0 overruns:0 frame:0
TX packets:8140 errors:0 dropped:0 overruns:0 carrier:0
collisions:4 txqueuelen:100
RX bytes:909074 (887.7 Kb) TX bytes:666053 (650.4 Kb)
Interrupt:11 Base address:0x1020

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:6525 errors:0 dropped:0 overruns:0 frame:0
TX packets:6525 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:261833 (255.6 Kb) TX bytes:261833 (255.6 Kb)
 
Old 08-17-2004, 01:50 AM   #12
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
Are you trying to connect to your hostname at dyndns.org from a machine inside your LAN behind the same router?
 
Old 08-17-2004, 01:55 AM   #13
mindfestival
Member
 
Registered: Mar 2004
Posts: 47

Original Poster
Rep: Reputation: 15
yes i am.
 
Old 08-17-2004, 02:03 AM   #14
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
It won't work that way, the router gets confused when it tries to do NAT.

If you want to test your webserver to see if its accessible from the internet you need to get someone else not on your LAN to test it for you. You can use /etc/hosts file and map it to your local ip if you want to connect to the website using the dyndns domain name in your LAN.
 
Old 08-17-2004, 02:25 AM   #15
mindfestival
Member
 
Registered: Mar 2004
Posts: 47

Original Poster
Rep: Reputation: 15
Ok i just got a mate to test it, and hes is also getting the page could not be displayed.
 
  


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
Web interface for Apache (CMS) jriis Linux - Networking 1 12-17-2004 08:41 AM
Apache 2 web server behind NAT router rober Fedora 4 12-15-2004 08:07 AM
setting up password protected web forms on an apache web server AZDAVE Linux - Security 3 07-07-2004 01:03 PM
cups web interface j-me Linux - Software 3 03-24-2003 02:01 PM
Web browsing prob dcm1878 Linux - Networking 1 06-20-2002 05:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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