How to create Rooms for DOTA using Linux

How to create Rooms/Games ( host of the games )

These Router setting only for cybercafe staff/owner ( expert only )

Linux Router :

eth1 = local ethernet
eth0 = public ethernet

Step One

open /etc/rc.d/rc.local –> redhat, slackware,fedora , exect ubuntu using /etc/rc.local
type –> vi /etc/rc.d/rc.local

Step Two

Start editing , put these fit with your net configuration setting.
Forwarding public ip to lokal ip
[quote]

##First PC

/sbin/iptables -t nat -I PREROUTING -i eth1 -p tcp -d 202.159.53.20 –dport 6112 -j DNAT –to-destination 192.168.0.1:6112

/sbin/iptables -t nat -I PREROUTING -i eth1 -p udp -d 202.159.53.20 –dport 6112 -j DNAT –to-destination 192.168.0.1:6112

##Second Pc

/sbin/iptables -t nat -I PREROUTING -i eth1 -p tcp -d 202.159.53.20 –dport 6113 -j DNAT –to-destination 192.168.0.2:6113
/sbin/iptables -t nat -I PREROUTING -i eth1 -p udp -d 202.159.53.20–dport 6113 -j DNAT –to-destination 192.168.0.2:6113
[/quote]do the same with others pc, dont forget to fit the ip and port at the client pc and Games client port.

NEXT….

Step Three

[quote] /sbin/iptables -t nat -A POSTROUTING -o eth0 -s 192.168.0.0/24 -j SNAT –to-source 202.159.53.20

########## Create BY vampire_surfer , vampirezsr@gmail.com ################

[/quote]#Save/restore configuration
/sbin/iptables-save > /etc/sysconfig/iptables.rules
/sbin/iptables-restore < /etc/sysconfig/iptables.rules

From Step Two – Step Three put at the end of the /etc/rc.d/rc.local

After that .. press ESC , press :wq
esc+ : wq! –> saving /etc/rc.d/rc.local

Step Four ( Type in root terminal )
Quote:

/sbin/service iptables save
/sbin/iptables-save > iptables-rules
/sbin/iptables-restore < iptables-rules
/sbin/service iptables save
/sbin/service iptables restart

Set your games client port at Game play option port ( at the warcfart client ) fit with the rules that u put in your /etc/rc.d/rc.local

done.

Leave a Comment

Your email address will not be published. Required fields are marked *