Solved

My router login page appears whenever I am trying to access my webserver's homepage

Posted on 2004-10-19
8
263 Views
Last Modified: 2008-03-10
I have a cisco soho 96 router on a static ADSL line. I have set up an apache webserver on a machine which I can access locally (127.0.0.1) but whenever I try to access it from the internet (www.mydomain.com) I come across the login page of my router. I have forwarded port 80 on my local machine which is on address 10.10.10.2. My webserver is set up to listen to port 80 on 10.10.10.2. My router configuration is the following:

interface Ethernet0
ip address 10.10.10.1 255.255.255.0
ip nat inside
no ip mroute-cache
!
ip nat inside source list 102 interface Dialer1 overload
ip nat inside source static tcp 10.10.10.2 80 interface Dialer 80
ip classless
ip route 0.0.0.0 0.0.0.0 Dialer1
ip http server
no ip http secure-server
!
access-list 102 permit ip 10.10.10.0 0.0.0.255 any

Is there a way to avoid my router's login page whenever I access my webserver?
0
Comment
Question by:piperak
  • 3
  • 3
8 Comments
 
LVL 79

Expert Comment

by:lrmoore
ID: 12349324
Turn off the router's web service:
   
   no ip http server
0
 
LVL 79

Expert Comment

by:lrmoore
ID: 12403518
Any progress? Are you still working on this? Do you need more information?
0
 

Author Comment

by:piperak
ID: 12404770
I tried that but i did not get my webserver's homepage. It just doen't show the login page anymore(nor any error page). It seems like all the traffic for port 80 goes to my router's address and stays there. No forwarding takes place. However traffic at other ports gets forwarded with no problem.(I am forwarding ports 4662 and 4672 for emule and it works fine). I got a second router from a friend (tomson-alcatel speedtouch 510i) and i get the same problem. I tried to change the address and the ports that apache is listening to and still have the same problem. Then i tried a usb isdn modem and everything works fine. So i know that the router is responsible for the problem and not apache but I am stuck.
0
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 
LVL 79

Expert Comment

by:lrmoore
ID: 12404816
OK.. couple of suggestions:

router#clear ip nat trans *

ip nat inside source static tcp 10.10.10.2 80 interface Dialer 80
                                                                                   ^^ Should be Dialer1 80
!
access-list 102 deny tcp host 10.10.10.2 eq 80 any
access-list 102 permit ip 10.10.10.0 0.0.0.255 any
!

Also, make sure you are testing it from remote host...

0
 

Author Comment

by:piperak
ID: 12409822
Ok that did it, partly. I can access my webserver from the outside now but not from my own network. I need both because I am trying to use a web application, not just view a local webpage.So what I need is a way to force my router to allow me to view my  homepage when I use my website's address from my local network.
0
 

Author Comment

by:piperak
ID: 12512338
Well i found what was wrong with my network. When i got my domain name i asked my ISP to point my static ip to that domain name. They did it partly. When i do a forward lookup with did i get my domain name. But when i do a reverse lookup i get nothing. I asked them to complete the dns entry and my problems were solved.
0
 
LVL 1

Accepted Solution

by:
DarthMod earned 0 total points
ID: 16143801
PAQed with points (125) refunded

DarthMod
Community Support Moderator
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

New Server 172.16.200.2  was moved from behind Router R2 f0/1 to behind router R1 int f/01 and has now address 172.16.100.2. But we want users still to be able to connected to it by old IP. How to do it ? We can used destination NAT (DNAT).  In DNAT…
Getting hacked is no longer a matter or "if you get hacked" — the 2016 cyber threat landscape is now titled "when you get hacked." When it happens — will you be proactive, or reactive?
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now