-Zaks
Router and Starcraft - Page 2
Forum Index > BW General |
Zaks
Bulgaria73 Posts
-Zaks | ||
ky[Z]
China1730 Posts
| ||
portos
Belgium121 Posts
On September 02 2003 14:25 bisong wrote: hmmm... can you give me your iptables script mail me at starcrud_ph@yahoo.com Hey that's my fucking email addy you fuck!?!LMAO choychoy is in the house!! | ||
bisong
17 Posts
| ||
Yarertz
Djibouti1891 Posts
| ||
Meat
Netherlands3751 Posts
you need to update the software though, in first instance it worked like crap with bnet but i guess they made one hell of a patch | ||
Meat
Netherlands3751 Posts
| ||
Bull-Demon
United States582 Posts
I opened the 6112 port once a long time ago and it let me host games. But ever since I formatted it won't let me host games. If I forward the 6112 port, it says I have a poor connection,and it won't let me play at all. =[ War3 also disconnects a lot with my router. Like EVERY game. Anyone know any solutions for either of these problems? | ||
Wannasee
United States175 Posts
| ||
bez
Sweden137 Posts
thx. | ||
Wannasee
United States175 Posts
| ||
Meat
Netherlands3751 Posts
No idea about the firmware version, it was the latest 1 month ago. But i cant check it atm. | ||
bez
Sweden137 Posts
I was also able to create games with people from the internal network joining! anyways, the code is as follows (for all of you that don't understand: this is the linux iptables-routing configuration that enables multiple bw-clients behind the same ip): #!/bin/bash #empty the current routing tables iptables -t nat -F iptables -F echo Enabling BNET for i in 1 2 3 do # handle the forward to the machine iptables -t nat -A PREROUTING -p udp -d 1.1.1.1 --dport 630$i -j DNAT --to-destination 192.168.1.$i:6112 # handle the translation of packets from the machine iptables -t nat -A POSTROUTING -p udp -s 192.168.1.$i --sport 6112 -j SNAT --to-source 1.1.1.1:630$i done echo Enabling Standard Forward iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE echo "1" >/proc/sys/net/ipv4/ip_forward echo 0 > /proc/sys/net/ipv4/conf/all/rp_filter #end Explanation of above: 1.1.1.1 is your external IP (the one that shows on the internet) 192.168.1 is to be exhanged for your internal IP-series that combined with "for i in 1 2 3" allows the IP:s 192.168.1.1 , 192.168.1.2 and 192.168.1.3 (you can edit this line as you want, eg "for i in 10 11 12 13 14" and so forth) Here comes the IMPORTANT part of the configuration: iptables actually takes into consideration what rules are executed first, I always made the MASQUERADE rule execute first, thus disabling the whole span of the other rules. ALLWAYS put your MASQUERADE rule LAST! The two last lines enable forwarding and disable the udp filter (required). I _really_ hope you get it working. If not, contact me at d02ez@efd.lth.se See you @ B.Net Thanks for the best StarCraft site ever TL-team! | ||
Meat
Netherlands3751 Posts
| ||
Bull-Demon
United States582 Posts
I had to do something to some ports (search on linksys support site for "battle.net" topics), but it works great now. War3 works perfect too. ^_^ | ||
Redcloak
United States530 Posts
| ||
ky[Z]
China1730 Posts
On September 05 2003 06:59 Redcloak wrote: For my Linksys router I put it on DMZ, cuz that thing was always gaying up games. hmmm how do i change it to DMZ......? -_- | ||
bez
Sweden137 Posts
I solved it! I successfully made an iptables configuration that allows simultaneous single-ip clients inside the same game. I am going to dedicate a freakin page for this. I was also able to create games with people from the internal network joining! anyways, the code is as follows (for all of you that don't understand: this is the linux iptables-routing configuration that enables multiple bw-clients behind the same ip): #!/bin/bash iptables -t nat -F iptables -F echo Enabling BNET iptables -t nat -A POSTROUTING -s 192.168.1.1 -p udp --sport 6112 -j SNAT --to-source 1.1.1.1:6118 iptables -t nat -A PREROUTING -d 1.1.1.1 -p udp --dport 6118 -j DNAT --to-destination 192.168.1.1$ iptables -t nat -A POSTROUTING -s 192.168.1.2 -p udp --sport 6112 -j SNAT --to-source 1.1.1.1:6119 iptables -t nat -A PREROUTING -d 1.1.1.1 -p udp --dport 6119 -j DNAT --to-destination 192.168.1.2$ iptables -t nat -A POSTROUTING -s 192.168.1.3 -p udp --sport 6112 -j SNAT --to-source 1.1.1.1:6120 iptables -t nat -A PREROUTING -d 1.1.1.1 -p udp --dport 6120 -j DNAT --to-destination 192.168.1.3$ echo Enabling Standard Forward iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE echo "1" >/proc/sys/net/ipv4/ip_forward echo 0 > /proc/sys/net/ipv4/conf/all/rp_filter #end Explanation of above: 1.1.1.1 is your external IP (the one that shows on the internet) 192.168.1.1 to 192.168.1.3 is to be exhanged for your internal IP-series. Here comes the IMPORTANT part of the configuration: iptables actually takes into consideration what rules are executed first, I always made the MASQUERADE rule execute first, thus disabling the whole span of the other rules. ALLWAYS put your MASQUERADE rule LAST! The two last lines enable forwarding and disable the udp filter (required). ******CHANGES: In the last version there were problems with Others joining your created games. Now that problem no longer exists. | ||
| ||