Setting Create DOTA di Linux

8 11 2006

Buatlah rules pada router box linux agar dapat create dota

[root@mendem root]#

[root@mendem root]#vi /etc/sysconfig/iptables

#Dota
#Client 1
-A PREROUTING -d 202.xxx.xxx.xxx -i eth0 -p tcp -m tcp –dport 6112 -j DNAT –to-destination 192.168.xxx.xxx:6112
-A PREROUTING -s 192.168.xxx.0/255.255.255.0 -d 202.xxx.xxx.xxx -i eth1 -p tcp -m tcp –dport 6112 -j DNAT –to-destination 192.168.xxx.xxx:6112

rules diatas untuk create di satu client. bila ingin membuat 2 client atau lebih tinggal buat rules seperti diatas, namun portnya diganti 6113 dan seterusnya. setelah itu….

[root@mendem root]#service iptables restart

command ini untuk mengaktifkan rules yg kita buat. kemudian kita cek dengan command

[root@mendem root]#iptables -L -n -t nat

Chain PREROUTING (policy ACCEPT)
target prot opt source destination
DNAT tcp — 0.0.0.0/0 202.xxx.xxx.xxx tcp dpt:6112 to:192.168.xxx.xxx:6112
DNAT tcp — 192.168.xxx.0/24 202.xxx.xxx.xxx tcp dpt:6112 to:192.168.xxx.xxx:6112
Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
SNAT all — 192.168.xxx.0/24 0.0.0.0/0 to:202.xxx.xxx.xxx
Chain OUTPUT (policy ACCEPT)
target prot opt source destination

bila terlihat seperti diatas, maka rules yang kita buat telah berhasil. Kita bisa create games dota, kawan kita yg berada diluar jaringan bisa join, begitu dengan kawan kita yang berada didalam jaringan.

selamat mencoba :D ;))
nb : rules diatas digunakan pada router dengan OS Fedora Core / Redhat


Actions

Informations

RSS feed | Trackback URI

Komentar »

Belum ada komentar.

Nama (wajib)
E-mail (required - never shown publicly)
URI
Komentar Anda (smaller size | larger size)
You may use <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> in your comment.

Trackback responses to this post