???????????????? (vpncmd)
PacketiX VPN ?? vpncmd ??????????????????????????????????vpncmd ???????
PacketiX VPN ???????????? PacketiX VPN ???????????????? Windows ? GUI ????????
????????????????????????????

vpncmd ??
vpncmd ????
vpncmd ???????PacketiX VPN ????????????????????vpncmd ??????????? GUI ????????
?????????????????????????Windows / Linux / FreeBSD / Solaris / Mac OS X ??????
PacketiX VPN ?????????????????????????????????????
???????? vpncmd
vpncmd ?? PacketiX VPN ???????????????????
Windows ? VPN Server / VPN Client / VPN Bridge ???????????????????? [PacketiX
VPN ???????????????? (vpncmd)] ????????Windows ???? vpncmd ???????????????????
?????? "vpncmd" ???????? vpncmd ?????????????
???? UNIX ??????????????? VPN Server / VPN Client / VPN Bridge ?? vpncmd ??????
?????????????????? vpnserver?vpnclient ??? vpnbridge ???????????????????????????
????? PacketiX VPN ??????????????????????????????? vpncmd ??????????????????????
????????????????????????????vpncmd ????? Windows ??????????????????? VPN Server/ VPN Client / VPN Bridge ?????????????
vpncmd ?????
vpncmd ???????????????????????????????????vpncmd ??????????????????????????????
? SSH ?????????????????????????vpncmd ??????????????????????????????????????????
??????????????? ?6.2.3 vpncmd ????????????????????? ??? ?6.2.5 ?????? ?????????

vpncmd ??????
vpncmd ??? 3 ????????????????????
1. VPN Server ??? VPN Bridge ??????
?????????????????????? PacketiX VPN Server ??? PacketiX VPN Bridge ??????
??????????????
2. VPN Client ??????
?????????????????????? PacketiX VPN Client ??????????????????
3. VPN Tools ??????? (????????????) ???
VPN Server ? VPN Client ??????????????vpncmd ???????????????????????????
?????????????????????????????
vpncmd ???????????????????????????????????????????????? 1 ?? 3 ???? 1 ????????????
??????????????????????? vpncmd ???????????????????????????????
vpncmd ???? - PacketiX VPN ????????????????
PacketiX VPN ???????????????? (vpncmd ????)
Version 2.10 Build 5070
Compiled Tue Dec 6 14:18:20 2005 by yagi at ILC308
Copyright (C) 2004-2006 SoftEther Corporation. All Rights Reserved.
vpncmd ????????????????????
1. VPN Server ??? VPN Bridge ???
2. VPN Client ???
3. VPN Tools ??????? (????????????)
1 - 3 ???:?????????
???????
vpncmd ????????????????????????????? ">" ??????????????????????????????????????
???????????? 4 ??????? vpncmd ?????????????????????????
VPN Server ????????
VPN Server ??????????????????VPN Server ????????????????????????????????????????
VPN Server>

???????????? VPN Server ?????????????????????????????? ServerStatusGet ?????
HubCreate ??????????????????????? 60 ??????
???????? Hub ???????????????? HUB ????????? HUB ???????????????
VPN Server>Hub Default
Hub ???? - ?????? HUB ???
?? HUB "DEFAULT" ????????
???????????????
VPN Server/DEFAULT>?? HUB ????????
?? HUB ???????????Hub ??????????????? HUB ???????????????????????????????????
VPN Server/?? HUB ?>?? VPN Server ??????? HUB ??????????????????????????????????????
???????? HUB ???????????????????????????????? Online ????? SetMaxSession ???????
?????VPN Server ???????????????????? VPN Server ????????????????????????????????
??????????? 170 ??????
????? HUB ?????????? VPN Server ??????????????Hub ?????????????????????????????
VPN Server/DEFAULT>Hub
Hub ???? - ?????? HUB ???
?? HUB ???????????
???????????????
VPN Server>
VPN Bridge ???????? VPN Server ?????????????????????????????????????VPN Bridge???? HUB ? "BRIDGE" ????????? 1 ????????????? "BRIDGE" ?? HUB ?????????????
VPN Client ????????
VPN Client ????????????????????????????????
VPN Client>???? VPN Client ??????????????????????????????????????? 65 ??????

VPN Tools ???
VPN Tools ???? vpncmd ?????????VPN Server ? VPN Client ?????????vpncmd ???????
????????????????????????????????????????VPN Tools ?????????????????????? 5 ??????
• About ????
• MakeCert ????
• TrafficClient ????
• TrafficServer ????
• Check ????
?????? 5 ??????? VPN Tools ????????????????????????????????
VPN Tools ????????????????????????????????
VPN Tools>
vpncmd ???
vpncmd ????????exit ???????
??????????????
???????????????????????????????Help ??? ? ???????
VPN Tools>?
??? 5 ?????????????:
About- ??????????
Check- PacketiX VPN ????????????????
MakeCert- ??? X.509 ??????????
TrafficClient - ??????????????????????
TrafficServer - ????????????????????
????????????????????"????? /?" ????????????
?????
???????????????
???????
vpncmd ???????????????????????????????????
>????? ?? /??????:?? /??????:?? ...

• ?????
?????????????????????????????????????????????????????????????????????????
?????????????????????????????
• ?? (?????)??????????????????????????????? 2 ???????????????????????
??????????????????????????????????????
???????????????"/???:" ????????????????????????? : (???) ????????????????????
???????????????? (-) ??????????????????????????????????????????????????????
??????????????
??????????????????????????????????????????????????????????????????????? "" ??????????
?????BridgeCreate ??????????????????????
BridgeCreate [hubname] [/DEVICE:device_name] [/TAP:yes|no]?? BridgeCreate ?????????????????? [hubname] ? TEST ??DEVICE ??? "Intel(R) PRO/
1000 MT Desktop Adapter" ??/TAP ? no ????????????????????

>BridgeCreate TEST /DEVICE:"Intel(R) PRO/1000 MT Desktop Adapter" /TAP:no????????????????????????????

>BridgeCreate /DEVICE:"Intel(R) PRO/1000 MT Desktop Adapter" /TAP:no TEST?????????????????
???????????
vpncmd ?????????????????????????????????????????????????????????????????????????
????????????????? BridgeCreate ??????????????????????????????????????????????????
????????????????????????????
VPN Server>BridgeCreate
BridgeCreate ???? - ?????????????
???????? HUB ?: TEST???????????: Intel(R) PRO/1000 MT Desktop Adapter????????? /TAP ?????????????/TAP ???????????????????????????????????????????????
?????????????????????????????????????????????????????????????????????????????????
?????????????????????????

??????????
vpncmd ???? 200 ?????????????????????????????????????????????????vpncmd ???????
???????????????????? UNIX ??????????????????????????????????????????????????????
?????????????????????????????????????
??????vpncmd ???????????????????????????????????????????????????? (?????????)?
??????????????????????????? ServerInfoGet ????????????????????????? UserCreate??
??????????????????????? UserGet??????????????? UserDelete???????????????????
UserList ????????????????????????????????????????????????????????
?????????????????????????????????????????????????????????????????????????????????
???????????????????????????
VPN Server>user?
"user": ??????????
???????????????????????????:
UserAnonymousSet - ?????????????????
UserCertGet- ??????????????????????????
UserCertSet- ???????????????????????????
UserCreate- ???????
UserDelete- ???????
UserExpiresSet- ????????????
UserGet- ?????????
UserList- ?????????
UserNTLMSet- ?????????? NT ?????????
UserPasswordSet - ?????????????????????????????
UserPolicyRemove - ??????????????????
UserPolicySet- ??????????????????
UserRadiusSet- ?????????? Radius ?????
UserSet- ?????????
UserSignedSet- ??????????????????????
??????????????????????
???????????? (?????????)
vpncmd ?????????????????????????????????????????????????????????????????????????
????????????????????????????????
?????ServerPasswordSet ????????????????????????????????????????????????????????
?????????????????????????????? 1 ????????????????????????????????

??ServerPasswordSet ???????????? 6 ????? "ServerP" ??????????????????????
??serverp ???????????????
VPN Server>serverp
ServerPasswordSet ???? - VPN Server ????????????
???????????????????????? Ctrl+D ???????????
?????: ********???? : ********???????????????
???????????????????????????????????? 2 ????????????????? 1 ???????????????????????
??????????????????????????: ?????????????????????????????????????????????????????
?????????????????????????
VPN Server>server"server": ??????????
???????????????????????????:
ServerCertGet- VPN Server ? SSL ??????
ServerCertSet- VPN Server ? SSL ??????????
ServerCipherGet- VPN ????????????????????
ServerCipherSet- VPN ????????????????????
ServerInfoGet- ?????????
ServerKeyGet- VPN Server ? SSL ??????????
ServerPasswordSet - VPN Server ????????????
ServerStatusGet- ?????????????
??????????????????????
?????????????????????????????????????????????????????????
???????????? (????????)?????????????????????????????????????????????????????????????????????????????????
???????????????????????????????????????????????????????????????????
??????????? 3 ????????????????
▪ RouterIfList [name]▪ RouterIfAdd [name] [/HUB:hub] [/IP:ip/mask]▪ RouterIfDel [name] [/HUB:hub]???????? 3 ?????????? "RouterIf" ?????????????????????????????????? "routerif" ??? 8 ?
???????????????

??????????????????????????????????????????????
?????
RouterIfList
RouterIfAdd
RouterIfDel

?????
RIL
RIA
RID

????????????????vpncmd ???????????????????????????? (???????) ???????????????????
??????????????????????????????? (????????????????????????)?
???????????????????????????????
?????
?????
LogPacketSaveTypelpst
RadiusServerSet
rss
SetMaxSession
sms
ClusterMemberInfoGet cmig
ServerStatusGetssg?????????????????????????????????????????????????????????????????????????????????
????????????????????????? LogPacketSaveType ??????????? lpst ????????????? lps ?
lp ??????????????
?????????????????vpncmd ????????????????????????????????????????????????????????
?????????????????????????????????????????????????????
?????????????
??????????????????????????????? (???) ????????????????????????????????????????
SecureNatHostSet ???????????????????????????????

NatSet [/MTU:mtu] [/TCPTIMEOUT:tcp_timeout] [/UDPTIMEOUT:udp_timeout] [/L???????? /MTU?/TCPTIMEOUT?/UDPTIMEOUT ??? /LOG ? 3 ??????????????????
????????????????????????????????????????????????????????? 1 ?????????????????????
????????????????????????????????????? 4 ????????????????????????????
???
?????
/MTU
/M
/TCPTIMEOUT /T/UDPTIMEOUT /U/LOG/L

??????????????????????????????????????
?????????????????????????????????????????????????????????????????????????????????
???????????????????????????????????????????????????????????????????? (*) ?????????
?????
???????????????????????????????????????????Ctrl + D ???????????
VPN Server>sps
ServerPasswordSet ???? - VPN Server ????????????
???????????????????????? Ctrl+D ???????????
?????: ***???? : ^D
VPN Server>??????????????????? Ctrl + D ?????????????????????????????????????????????

??????????
?????????
vpncmd ??????????????????????????????????????????????????????vpncmd ???????????
?????????????????????????????????????????????????????????????????????????????????
????????????vpncmd ????????????????????????????????
??????????????????????????
????????????????????????????????????????????????????????????
▪ ????? --help▪ ????? -help▪ ????? /help▪ ????? -?
▪ ????? /?
▪ ??????
▪ man ?????
▪ ??????

?????????????????????????????--help ??? /? ????????????????????????????????????
???? BridgeCreate ????????????????????????
VPN Server>BridgeCreate?
BridgeCreate ???? - ?????????????
???? "BridgeCreate" ????
[??]?????????????
[??]?????????????? VPN Server ????????
????????????????? VPN Server ???????? HUB ?????
Ethernet ???? (LAN ???) ??????? 2 ??????????????
?????
????? tap ???? (?????????????????) ???????
HUB ??????????????????? (tap ????? Linux ??????
???????)?
?????? Ethernet ???? (LAN ???) ?????????? LAN ????
?????????????????????????????? LAN ??????
????????????
??????????????VPN Server ????????????
[????]
BridgeCreate [hubname] [/DEVICE:device_name] [/TAP:yes|no][?????]
hubname - ????????????????????
/DEVICE - ?????? Ethernet ???? (LAN ???) ???? tap ?????
???????Ethernet ????????? BridgeDeviceList ????
?????????????
/TAP- ???????? LAN ??????? tap ???????????? yes ?????? (Linux ???????????)???????? no????????
VPN Server>????????????????????
???????????????????????????????????????????????????????????????????
▪ man▪ help▪ ?

??????????????????
VPN Server>help??? 173 ?????????????:
About
AcAdd
AcDel
AcListAccessAdd
AccessDelete: (??)
UserSetUserSignedSet- ??????????
- IP ????????????????
- IP ?????????????????
- IP ??????????????????
- ???????????????
- ???????????????
- ?????????
- ??????????????????????

????????????????????"????? /?" ????????????
?????
VPN Server>?????????????????????????????????????????????????????????????????????????????????
?????????
▪ ????? --help▪ ????? -help▪ ????? /help▪ ????? -?
▪ ????? /?
▪ ??????
▪ man ?????
▪ ??????
??????????????????????????????????cascade? ??????????
VPN Server>cascade?
"cascade": ??????????
???????????????????????????:
CascadeAnonymousSet- ?????????????????????????
CascadeCertGet
CascadeCertSet
CascadeCompressDisable
CascadeCompressEnable
CascadeCreate
CascadeDelete- ???????????????????????
- ?????????????????????????
???????
- ?????????????????????
- ?????????????????????
- ?????????????
- ??????????

CascadeDetailSet
CascadeEncryptDisable
CascadeEncryptEnable
CascadeGet
CascadeList
CascadeOffline
CascadeOnline
CascadePasswordSet- ??????????????????
- ???????????????????
- ???????????????????
- ?????????????
- ????????????
- ???????????????????
- ???????????????????
- ?????????????????????????
???
CascadePolicySet- ?????????????????????????
?
CascadeProxyHttp- ????????????? HTTP ?????????
??????
CascadeProxyNone- ??????????????? TCP/IP ?????
CascadeProxySocks- ????????????? SOCKS ?????????
??????
CascadeRename- ?????????????
CascadeServerCertDelete - ????????????????????
CascadeServerCertDisable - ?????????????????????????
??
CascadeServerCertEnable - ?????????????????????????
??
CascadeServerCertGet- ????????????????????
CascadeServerCertSet- ????????????????????
CascadeSet- ??????????????
CascadeStatusGet- ????????????????
CascadeUsernameSet- ???????????????????????
??????????????????????
VPN Server>

vpncmd ????????????????????
vpncmd ????????????????????????????????? vpncmd ????????????????????? IP ???????
??????????????????vpncmd ???????????????????????????????? VPN Server ???????????
?????????????????????????????????????????
vpncmd ?????????????????
vpncmd ??????????
?????
vpncmd???????

PacketiX VPN ????????????????
vpncmd ???????PacketiX VPN ?????????????????????????????????
??vpncmd ??????????????????????????????? VPN Client?VPN
Server???? VPN Bridge ?????????????????????????????VPN Tools ?
????????VPN Server ? VPN Client ??????????????????????????????
?????????????
vpncmd ???/IN ??? /OUT ???????????????????????????????????????
?????????????????????????????????????????vpncmd ??????????????
??
????????????/IN ???????????????????????????????????????????????
???????/CMD ???????????????????????????????????????????????/
IN ?????? /CMD ??????????????????????vpncmd ?????????????????
?????????????? (??????? 0) ??????
Windows ??????????? 1 ??? vpncmd ??????????? Windows ????????
??? [????????????] ???? vpncmd ???????? vpncmd ????????????????
???UNIX ????????????????????PATH ???????????????????????
vpncmd [host:port] [/CLIENT|/SERVER|/TOOLS] [/HUB:hub]?????????
[/ADMINHUB:adminhub] [/PASSWORD:password] [/IN:infile][/OUT:outfile] [/CMD commands...]vpncmd ?????????????????????????
[????:?????] ???????????????????????????????????????????????????
host:port???????????VPN Client ???????????????????????
/CLIENTVPN Client ?????????????/SERVER ????????????????
VPN Server ??? VPN Bridge ?????????????/CLIENT ??????????????
/SERVER??
VPN Tools ?????????????????????????????????????? (MakeCert ???
/TOOLS?) ???????????? (SpeedTest ????) ?????????
VPN Server ???? HUB ??????????????? HUB ? 'hub' ??????????????
/HUB?? /HUB ?????????????????????????????????
VPN Server ????????????????? HUB ? 'adminhub' ???????/HUB ???
/ADMINHUB??????????????? HUB ???????????????????????????
?????????????????????????? 'password' ??????????????????????????
/PASSWORD????????????????
??????????????????????????????????????? 'infile' ???????/IN ??????
???????????????????????????????????? vpncmd ??????????????????
/IN????????????????Unicode (UTF-8) ???????????????????/CMD ?????
?????????? (/CMD ?????????? /IN ???????)?
???????????????????????????????????????????????????? 'outfile' ???
/OUT?????????????????????????????????????????????????????????????
Unicode (UTF-8) ????????????????
/CMD ?????????? 'command_line...' ?????????????????????????????
/CMD?? vpncmd ????????????/IN ??????????????? (/IN ?????????? /IN ???
????)?/CMD ???????????? vpncmd ????????????????????

????????
????????????????
vpncmd ??????????????????????????????????????????????????????????????????? VPN
Server / VPN Bridge ????????????VPN Client ????????? vpncmd ????????????????????
VPN Client ??????????????
PacketiX VPN ???????????????????????????????????????????????? CSV ?????????????
??????????????? HUB ???????????????????????????? GUI ???????????????????????????
????? vpncmd ????????????????????????????????????????????????
???vpncmd ??????????????? VPN Server ?????????????????????????????????????? VPN
Server ??? HUB ??????????????????? HUB ????????????????????????????????????????
????????????vpncmd ?????????????????????
???????? vpncmd ???????????
vpncmd ?????????????????????1 ???????????????????????????????????vpncmd ????
/CMD ?????????
vpncmd ? /CMD ?????????VPN Server / VPN Client / VPN Bridge ??????/CMD ???????
??????????????????????????????????VPN Server ??? HUB "DEFAULT" ?????????
"ABC" ?????????????????? vpncmd ??????????
vpncmd /server ????? /password:????? /adminhub:DEFAULT/cmd UserCreate ABC /GROUP:none /REALNAME:none /NOTE:none?????????????? /CMD ???????????????vpncmd ???????

C:\>vpncmd /server localhost /adminhub:DEFAULT /cmd UserCreate ABC /GROUP/REALNAME:none /NOTE:none
vpncmd ???? - PacketiX VPN ????????????????
PacketiX VPN ???????????????? (vpncmd ????)
Version 2.10 Build 5070
Compiled Tue Dec 6 14:18:20 2005 by yagi at ILC308
Copyright (C) 2004-2006 SoftEther Corporation. All Rights Reserved.
VPN Server "localhost" (??? 8888) ????????
VPN Server ?????????????

?? HUB "DEFAULT" ????????
VPN Server/DEFAULT>UserCreate ABC /GROUP:none /REALNAME:none /NOTE:none
UserCreate ???? - ???????
???????????????
C:\>???????? vpncmd ???????????
????????1 ?????????????? 1 ??? vpncmd ??????????????????????????????? 1,000 ??????
????????????1,000 ? vpncmd ????????????????????????????????????????? vpncmd ????
?????????????????????????????????CPU ??????????????????
??????????????????????????????????????????vpncmd ??????? /IN ????????????????????
??????????????????????????????????????????????????? vpncmd ???????
???????????????????? batch.txt ??????????????????????????????? (?????????) ????????
????? UTF-8 ????????????
Hub DEFAULT
UserCreate jiro /GROUP:none /REALNAME:"?? ??" /NOTE:none
UserCreate yas /GROUP:none /REALNAME:"?? ?" /NOTE:none
UserCreate idai /GROUP:none /REALNAME:"?? ??" /NOTE:none
UserCreate yokote /GROUP:none /REALNAME:"?? ??" /NOTE:none
UserCreate ihihihi /GROUP:none /REALNAME:"??????" /NOTE:none
UserCreate yuta /GROUP:none /REALNAME:"?? ???" /NOTE:none????????????????????? vpncmd ???????
vpncmd /server ????? /in:batch.txt????vpncmd ?????????????????????????????????????????????????????????????????????
???????????

6-2-1.gifbatch.txt ???????????????

?????
vpncmd ??????????????????? /OUT ????????????????????vpncmd ???????????????????
???????????????vpncmd ??????????????????????????????????vpncmd ????????????????
???????????????????????????????

vpncmd ????????
vpncmd ??????????????????????????????????????????????????0 ??????

?????
Windows ??????????
Windows ???????vpncmd ?????????? PacketiX VPN ????????????????????????????????
?????????????????????????????????????????????????????????????????????????????????
?????
UNIX ??????????
Linux ???? UNIX ?? vpncmd ?????????? PacketiX VPN ?????????????????????????????
??????????????????????????????????????????? LANG ??????????????????????????????
??????????????????LANG ?????????????????????????????
• ja_JP.eucJP• ja_JP.shift_jis• ja_JP.UTF-8???LANG ??????????????????????????????????????EUC-JP ?????????????PacketiX
VPN ?????????????????????????? LANG ?????????????????????????????

Windows ?? vpncmd ?????
Windows ???PacketiX VPN ?????????????????? PacketiX VPN ?????????????????????
(???? C:\Program Files\PacketiX VPN Server ??) ?????????? vpncmd.exe ???????????
????? vpncmd ??????????
????? Administrators ??? vpncmd ????????????????????? [????????????] ??? vpncmd ??
???????vpncmd ????????????????
UNIX ????????????????PATH ??????????????/usr/local/bin ????????????? vpncmd ???
hamcore.se2 ????????????????????????????

vpncmd ?????????
vpncmd ??? PacketiX VPN Server / VPN Client / VPN Bridge ????????????????????????
?????????????????????????????????????????????? vpncmd ??????????????????????????
??????????????????????????vpncmd ???????????????? Windows ???? VPN Bridge ?
exe-only ???UNIX ???? VPN Bridge ??????????????????
• vpncmd.exe ????????
(UNIX ????????vpncmd ????)• hamcore.se2 ????