/* HINT: Search archives @ http://www.indyramp.com/masq/ before posting! */


Hi Alin...I apologize if you're getting redundant advice...however for what
you want to do, you don't need to bend over backwards with changing IPs when
you want to play SC or any other stuff. I play on Battle.Net AND host a
masqueraded Bnetd server. The following entry works perfectly for both
scenarios. Battle.Net checks your UDP connection to port 6112 when you connect
but the connection is TCP while you are in chat. The traffic changes to UDP
6112 between you and the person hosting a game - not the BattleNet server,
when you are at the screen to choose your race. From that point through the
game it is all UDP 6112 between you and the game host with an occasional
keepalive connection with the server. Although the LooseUDP patch is included
in the later kernels, I still found more consistent performance using portfw.
You should have that tool already.My current kernel is 2.2.6. 


Hope you find this helpful.





Regards,


Jeff


-------------------------------------------------------------------


# ---------------------------------------


# Battle.Net (Diablo & StarCraft)


#--------------------------------





 EXTERNAL_INTERFACE = "eth0"


 IPADDR = <Your Cable IP>


 ANYWHERE = "any/0"


 UNPRIVPORTS = "1024:65535"


 WINBOX = "192.168.1.x"


 LINUXBOX = "192.168.1.x"





    ipchains -A input  -i $EXTERNAL_INTERFACE -p UDP  \


             -s $ANYWHERE 6112 \


             -d $IPADDR $UNPRIVPORTS -j ACCEPT





    ipchains -A output -i $EXTERNAL_INTERFACE -p UDP  \


             -s $IPADDR $UNPRIVPORTS \


             -d $ANYWHERE 6112 -j ACCEPT





    ipchains -A input  -i $EXTERNAL_INTERFACE -p TCP  \


             -s $ANYWHERE 6112 \


             -d $IPADDR $UNPRIVPORTS -j ACCEPT





    ipchains -A output -i $EXTERNAL_INTERFACE -p TCP  \


             -s $IPADDR $UNPRIVPORTS \


             -d $ANYWHERE 6112 -j ACCEPT





    ipchains -A input  -i $EXTERNAL_INTERFACE -p UDP  \


             -s $ANYWHERE $UNPRIVPORTS \


             -d $IPADDR 6112  -j ACCEPT





    ipchains -A output -i $EXTERNAL_INTERFACE -p UDP  \


             -s $IPADDR 6112 \


             -d $ANYWHERE $UNPRIVPORTS -j ACCEPT





    ipchains -A input  -i $EXTERNAL_INTERFACE -p TCP  \


             -s $ANYWHERE $UNPRIVPORTS \


             -d $IPADDR 6112  -j ACCEPT





    ipchains -A output -i $EXTERNAL_INTERFACE -p TCP  \


             -s $IPADDR 6112 \


             -d $ANYWHERE $UNPRIVPORTS -j ACCEPT





#Forwards UDP packets to WinBox


ipmasqadm portfw -a -P udp -L $IPADDR 6112 -R $WINBOX 6112





#Forwards TCP packets to Bnetd server on LinuxBox


ipmasqadm portfw -a -P tcp -L $IPADDR 6112 -R $LINUXBOX 6112


------------------------------------------------------------------------------------------------




"This place looks expensive...I feel like I'm wasting money just standing
here." - H.J. Simpson






_______________________________________________
Masq maillist  -  [EMAIL PROTECTED]
Admin requests can be handled at http://www.indyramp.com/masq-list/
or email to [EMAIL PROTECTED]

PLEASE read the HOWTO and search the archives before posting.
You can start your search at http://www.indyramp.com/masq/

Reply via email to