cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
11847
Views
0
Helpful
45
Replies

Cisco Model 881 - Unable to NAT to web server

isaaczhun
Level 1
Level 1

Hi,

I hope there any someone here can help me out.

Apparently the problem seems simple enough however I couldn't get it working. My router is being configured to access a web server in the network which is on port 80. However, port 80 is being used by my router's setup page. Therefore whenever I key in my public IP address, it will just immediately direct me to the router's page.

I have also tried opening up other ports like 5050 and set my web server to port 5050. Internally within the LAN itself everyone can access the web server with port 5050. However, going from public IP address with port 5050 doesn't work. Am I missing anything here?

All the firewalls are configured.

Thanks in advanced.

45 Replies 45

Hi,

  You need to see connections on your router when testing from the internet.  This is not correct, tcp xxx.xxx.xxx.xxx:5050 192.168.1.39:80  ---  

Pleast post "show running" here again. If it works with tcp/21 and tcp/1723. It should not be a problem with tcp/5050. 

Toshi 

Hi Toshi,

Therefore I shouldn't be using the same internet connection as the server if that is what you mean?

Hi,

   If I open web browser or do telnet on my pc now, you should see connections. And you already did telnet or console to router to type "show ip nat trans" and "show access-l"  at the same time. Yes,I'm in the internet. This is what we want to test.

Post the result of command below

!

Router#telnet 192.168.1.39 5050 /source-interface fastether4

!

Toshi

Hi Toshi,

I type in "! Router#telnet 192.168.1.39 5050 /source-interface fastether4 !"

however there is no result showing. Just like pressing enter again.

Result:

xxx10M#$net 192.168.1.39 5050 /source-interface fastether4!

xxx10M#

Hi,

    Please do this

xxx10M#telnet 192.168.1.39 5050 /source-interface fastether4

Toshi


Hi Toshi,

I'm seeing my WAMP server stuff coming out

xxx10M#telnet 192.168.1.39 5050 /source-interface fastether4

Trying 192.168.1.39, 5050 ... Open

^C

        "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

        WAMPSERVER Homepage

       

       

       

       

       

              

  • Version 2.1
  •                

  • Version Française
  •        

           

    Server Configuration

           

                   

    Apache Version :

        

    2.2.17

                   

    PHP Version :

        

    5.3.5

                   

    Loaded Extensions :

                   

                           

                             

    • Core
    • bcmath
    • calendar
    • com_dotnet
    • ctype
    • date
    • ereg
    • filter
    • ftp
    • hash
    • iconv
    • json
    • mcrypt
    • SPL
    • odbc
    • pcre
    • Reflection
    • session
    • standard
    • mysqlnd
    • tokenizer
    • zip
    • zlib
    • libxml
    • dom
    • PDO
    • Phar
    • SimpleXML
    • wddx
    • xml
    • xmlreader
    • xmlwriter
    • apache2handler
    • gd
    • mbstring
    • mysql
    • mysqli
    • pdo_mysql
    • pdo_sqlite
    • pdf
    • mhash
    • xdebug
    •                        

                     

                     

      MySQL Version :

          

      5.5.8

             

             

      Tools

             

                       

      • phpinfo()
      •                

      • phpmyadmin
      •        

               

        Your Projects

               

                 

        • system
        • test
        • website
        •        

                 

          Your Aliases

                 

                   

          • phpmyadmin
          • sqlbuddy
          • webgrind
          •        

                   

                           

          • http://www.wampserver.com">WampServer
          • -

                   

          • http://www.wampserver.com/en/donations.php">Donate
          • -

                           

          • http://www.alterway.fr">Alter Way
          •        

            [Connection to 192.168.1.39 closed by foreign host]

            Hi,

               Okay. Please post the current running configuraion.

            xxx10M#show running.

            Toshi

            interface FastEthernet0

            !

            interface FastEthernet1

            !

            interface FastEthernet2

            !

            interface FastEthernet3

            !

            interface FastEthernet4

            description 00062299sng$ES_WAN$

            ip address xx.xx.xx.xx 255.255.255.252

            ip nat outside

            ip virtual-reassembly

            duplex full

            speed 100

            !

            interface Vlan1

            description $ETH-SW-LAUNCH$$INTF-INFO-HWIC 4ESW$

            ip address xx.xx.xx.xx 255.255.255.240 secondary

            ip address 192.168.1.1 255.255.255.0

            ip nat inside

            ip virtual-reassembly

            ip tcp adjust-mss 1452

            !

            ip forward-protocol nd

            ip http server

            ip http access-class 23

            ip http authentication local

            ip http secure-server

            ip http timeout-policy idle 60 life 86400 requests 10000

            !

            ip dns server

            ip nat inside source list 1 interface FastEthernet4 overload

            ip nat inside source static tcp 192.168.1.39 21 interface FastEthernet4 21

            ip nat inside source static tcp 192.168.1.201 1723 interface FastEthernet4 1723

            ip nat inside source static tcp 192.168.1.39 5050 interface FastEthernet4 5050

            ip route 0.0.0.0 0.0.0.0 xx.xx.xx.xx

            !

            access-list 1 permit 192.168.1.0 0.0.0.255

            no cdp run

            Hi,

              Okay , Just read your private message.

            Toshi

            See reply.

            Hi,

              I'm 100% sure that we cannot open connections to your router with tcp/5050. Then ask your ISP.  I'm 100% sure that you can use TCP/80(http) to connect to your web server.

              Please change the port on web server to TCP/80.  And we will test it.

            Toshi

            Hi Toshi,

            I have changed it to port 80 for the web server. However by typing the public ip address to the URL it is still going to the router setup page.

            Hi,

              No, Its not. I saw WampServer Apache Server 2.2.17.  It's working like a charm. Where are you testing from?

              Keep in mind you need to test when you're not in Local LAN 192.168.1.0/24 and you can access the internet.

            Toshi

            Kept forgetting I'm on LAN.

            If you saw it then it should be working fine.

            Thanks for the help!

            Hi,

               Hahaha....  It's okay

            Toshi