home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2005 June
/
ccd0605.iso
/
Software
/
Shareware
/
Comunicatii
/
nat32
/
script
/
VPNS
< prev
next >
Wrap
Text File
|
2004-06-07
|
439b
|
22 lines
#!tcl
#
# VPN Server mappings
#
if {$argc != 2 } {
error {Usage: VPNS IPaddress|off Port}
}
set addr [lindex $argv 0]
set port [lindex $argv 1]
if {$addr == "off"} {
exec "ppmaps delete tcp $port"
exec "amaps delete $port"
exec "gmaps delete $addr \$SRCIP"
} else {
exec "ppmap add tcp $port $addr 1723"
exec "amap add $port \"gmap add $addr \$SRCIP\" \"gmap delete $addr \$SRCIP\""
}