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

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:
    Code:
    iptables -t nat -I PREROUTING -p udp -d **.**.***.*** --dport 63002 -j DNAT --to-destination 192.168.1.100:6112
    iptables -t nat -I POSTROUTING -p udp -s 192.168.1.100 --sport 6112 -j SNAT --to-source **.**.***.***:63002
    iptables -t nat -I PREROUTING -p udp -d **.**.***.*** --dport 63003 -j DNAT --to-destination 192.168.1.103:6112
    iptables -t nat -I POSTROUTING -p udp -s 192.168.1.103 --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

    Anyone?
     
  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?
     

Share This Page