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

Port Forwarding in startupscript

Discussion in 'Tomato Firmware' started by shari, Dec 1, 2006.

  1. shari

    shari LI Guru Member

    Hi,
    I'm using tomato 0.9 in a 172.17.20.0/22 network, IP-range 172.17.20.1-172.17.23.254. The router's IP is 172.17.23.227 and if I want to forward some port to any IP different than 172.17.23.* I need to do it manually (the "nice" way is stuck to 172.17.23.* ) . I tried some iptables rules but I cannot get it to work. Please give me some example how to forward any port. Is the port forwarding using nat or some iptables module ?

    Thanks in advance
     
  2. dvaskelis

    dvaskelis Network Guru Member

    I'm not sure I understand what you're trying to do. If you port forward your external address to another address that's not in your NAT network, where would you be forwarding it to exactly?
     
  3. Toxic

    Toxic Administrator Staff Member

    I take it you have multiple subnets behind your router? if you want to port forward to a different subnet the you port forward the other routers WAN IP. is this what you mean?
     
  4. shari

    shari LI Guru Member

    Here 2 Screenshots:
    [​IMG]

    Netmask is 255.255.252.0 -> IP-range 172.17.20.0 -172.17.23.254

    [​IMG]

    I'm able to portforward only to 172.17.23.* PCs. And I need to portforward to some 172.17.22.* and 172.17.21.*
     

Share This Page