home *** CD-ROM | disk | FTP | other *** search
/ Chip 2005 June / ccd0605.iso / Software / Shareware / Comunicatii / nat32 / script / BATTLE < prev    next >
Text File  |  2003-10-23  |  329b  |  17 lines

  1. #!tcl 
  2.  
  3. # Battle Net mappings 
  4. if {$argc == 0} { 
  5.     error {Usage: battle IPaddress|off} 
  6. set addr [lindex $argv 0] 
  7. if {$addr == "off"} { 
  8.     exec "ppmaps delete udp 6112:6119"
  9.     exec "umaps delete 6112:6119"
  10. } else { 
  11.     exec "ppmap add udp 6112:6119 $addr 6112"
  12.     exec "umap add 6112:6119 1"
  13. }
  14.