1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Port forwarding limitations

Discussion in 'Tomato Firmware' started by Artur, Jan 13, 2012.

  1. Artur

    Artur Networkin' Nut Member

    Hi everyone
    Got a problem. The Tomato Firmware GUI can take up to 50 entries for basic port forwarding. I have to forward 4 ports for each destination address within LAN (different ext ports and the same int port for each device, for example forward ext port 81 to int port 80, port 27 to port 23.... for A device; ext port 82 to int port 80, port 28 to port 23... for B device etc) . With this limitation i can connect up to 12 devices. Is there any way to bypass that limit?
    Thanks in advance
  2. ntest7

    ntest7 Network Guru Member

    You can forward the ports manually with iptables commands in Administration -> scripts -> firewall.

    untested example to forward port 11001 to (might need to tweak the syntax a little)
    # first set the NAT table
    iptables -t nat -A PREROUTING -p tcp --dport 11001 -j DNAT --to
    # now open the port
    iptables -A wanin -m state --state NEW,ESTABLISHED,RELATED -p TCP -d --dport 11001 -j ACCEPT

Share This Page