home *** CD-ROM | disk | FTP | other *** search
/ Chip 2005 June / ccd0605.iso / Software / Shareware / Comunicatii / nat32 / script / n2p < prev    next >
Text File  |  2002-02-21  |  342b  |  19 lines

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