piperak
asked on
My router login page appears whenever I am trying to access my webserver's homepage
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?
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?
Any progress? Are you still working on this? Do you need more information?
ASKER
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.
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...
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...
ASKER
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.
ASKER
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.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
no ip http server