Proper Command?

Discussion in 'Tomato Firmware' started by IceRay, Jan 12, 2008.

  1. IceRay

    IceRay LI Guru Member

    I am trying to allow two computer to play StarCraft on the same network without huge lag. I did some searching and found this script to put under the firewall script settings in admin:
    iptables -t nat -I PREROUTING -p udp -d **.**.***.*** --dport 63002 -j DNAT --to-destination
    iptables -t nat -I POSTROUTING -p udp -s --sport 6112 -j SNAT --to-source **.**.***.***:63002
    iptables -t nat -I PREROUTING -p udp -d **.**.***.*** --dport 63003 -j DNAT --to-destination
    iptables -t nat -I POSTROUTING -p udp -s --sport 6112 -j SNAT --to-source **.**.***.***:63003
    It changes the ports around
    I would test it, but I am unable to atm...
    Sorry if this is a stupid question... I really have no idea what I am doing.
  2. IceRay

    IceRay LI Guru Member

  3. Kiwi8

    Kiwi8 LI Guru Member

    Why dun u just make use of the Port Forwarding feature in Tomato instead of using the command-line-based iptables?
  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