Tomato + WRT54G- cannot access the router via its WAN IP

Discussion in 'Tomato Firmware' started by ansh, Mar 9, 2009.

  1. ansh

    ansh Addicted to LI Member

    Hello All,

    I have a linksys WRT54G and I have flashed Tomato Firmware v1.23.1607 on it.

    I have a network set up as follows:

    router - WAN (
    - LAN ( devices connected.

    I have connected the network cable to the WAN port and have DHCP configured. it is getting an IP address via DHCP.

    The LAN device IP is static configured. With network gateway and DNS configured. DHCP server is enabled with a range of -

    I have connected a computer to LAN port of the router it gets an IP address of I am able to access internet via my computer.

    Also I can ping computers in external network ie eg;
    Also the router WAN can be pinged via devices from external network ie from

    If i run a client server application

    1. Server on router and client on
    i cannot send data packets.

    2. If client on router and server on
    i can send data packets.

    3. If server client in any of connected LAN devices I can
    transfer data to and fro.

    It seems i can send out packets however cannot recieve packets via WAN port IP -

    Am i missing some setting?

    Could some one help me with the same?

    Thanks in advance.

  2. fyellin

    fyellin LI Guru Member

    I'm not completely sure I understand your setup. I'm assuming that by you mean a random computer on the network.

    In general, to run a server inside your LAN, you need to much with Port Forwarding. The router receives all traffic intended for the LAN. If the packet is a response to an outgoing packet, it routes the incoming packet appropriately. But if the packet is from a client making initial contact with a server, if has no idea where to forward that packet. Most routers intentionally drop the packet, as this is the most secure thing to do.

    Go to the port forwarding page. If you know which ports need to be forwarded to, then do so. If you want everything forwarded to that specific machine, then declare it to be the DMZ machine; expect that machine to be bombarded with lots of random traffic.
  3. ansh

    ansh Addicted to LI Member

    I have downloaded the source code of tomato and compiled the same.
    I have compiled and downloaded simple client - server application on to the router which i launch via telnet.

    hence the router has the server and client applications running.

    I do accept that for communication between computer connected on LAN and a computer in public network port forwarding would be required.

    However I fail to understand that if the router has two MAC's for WAN and LAN with two IP address why I should not be able to do data transfer from the router via its WAN.



  4. bripab007

    bripab007 Network Guru Member

    Sounds like a firewall thing to me. You make it sound as if you have some sort of server/client app that can be run on the router itself, and you're trying to send data back and forth between the router itself, at it's WAN address of, and some other machine on the WAN/DMZ at

    To do that, you need to allow allow WAN/DMZ hosts to communicate with your router, and depending on the type of port/packet, you alter various settings. For example, if you wanted to get to your router's web GUI, you have to go to Administration > Admin Access and check the box for Remote Access....this will now accept incoming requests to the router's WAN IP address at port 80, 8080, 443, or whatever...or you can turn the SSH service which will accept incoming requests to the router's WAN IP address at port 22, or whatever you set it as.

    So, what server are you running on the router itself that you need to allow another WAN/DMZ host to get to? NTP server or something?
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice