net_config_sample.GIF

SoftEther

SteVPN_setup.msi

kaizawa-vpn-ste-win.zip

sources
ste.c
ste_local.c*1
netste.inf
ste.h
sted.h
sted_win.h
getopt_win.h
sources
sted.c
sted_socket.c
getopt_win.c
sources
stehub.c
getopt_win.c

http://github.com/kaizawa/vpn-ste-win

install-security-alert.png
installer-installing.png
install-driver-security-alert.png
install-finish.png

*2

*3

start-wizard.png
how-to-install.png
select-network-driver.png
select-adapter.png
select-copy-source.png
finish.png

ste.sys
sted.exe
stehub.exe

SteMiniportinitialize

Usage: stehub.exe [ -I | -U ] [ -p port] [-d level]

       -p port   : Port nubmer
       -d level  : Debug level[0-1] 
       -I        : Install Service
       -U        : Uninstall Service
C:\winvpn> stehub -p 8888

firewall-alert.png
sservice-stehub-detail.png

Usage: sted.exe [ -i instance] [-h hub[:port]] [ -p proxy[:port]] [-d level] [-I|-U]
       -i instance     : Instance number of the ste device
       -h hub[:port]   : Virtual HUB and its port number
       -p proxy[:port] : Proxy server and its port number
       -d level        : Debug level[0-3]
       -I              : Install Service
       -U              : Uninstall Service
C:\winvpn> sted.exe -i 0 -h hub.example.com 

service-sted-detail.png
*4

Host To Lan

net_config_sample.GIF





  1. C:> \Program Files\SteVPN\stehub -p 8888
  2. C:\>\Program Files\SteVPN\sted.exe -h localhost:8888
    debuglevel = 0
    device path = \\.\STE0
    Successfully opened STE device
    Successfully connected with HUB



  1. C:\>\Program Files\SteVPN\sted.exe -h HostA:8888
    debuglevel = 0
    device path = \\.\STE0
    Successfully opened STE device
    Successfully connected with HUB

Host to Host

net_config_h2h.gif

  1. C:\> cd \winvpn
    C:\winvpn>
  2. C:\winvpn> stehub.exe -p 8888



  1. C:\> cd \winvpn
    C:\winvpn>
  2. C:\winvpn>sted.exe -h hostA:8888
    debuglevel = 0
    device path = \\.\STE0
    Successfully opened STE device
    Successfully connected with HUB

  1. hostC # make install
    /usr/sbin/install -s -f /kernel/drv/sparcv9 -m 0755 -u root -g sys ste
    /usr/sbin/install -s -f /kernel/drv -m 0644 -u root -g sys ste.conf
    /usr/sbin/install -s -d /usr/local/bin
    /usr/sbin/install -s -f /usr/local/bin -m 0755 -u root sted
    /usr/sbin/install -s -f /usr/local/bin -m 0755 -u root stehub
    hostC #
  2. hostC # /usr/sbin/ifconfig ste0 plumb
    hostC # /usr/sbin/ifconfig ste0 192.168.0.2 up
    hostC # /usr/sbin/ifconfig ste0 ether 8:0:20:0:0:2
    hostC # /usr/sbin/ifconfig -a
    lo0: flags=1000849 mtu 8232 index 1
            inet 127.0.0.1 netmask ff000000
    hme0: flags=1000843 mtu 1500 index 2
            inet 172.29.80.33 netmask ffffff00 broadcast 172.29.80.255
            ether 8:0:20:d3:da:8a
    ste0: flags=1001843 mtu 1500 index 3
            inet 192.168.0.2 netmask ffffff00 broadcast 192.168.0.255
            ether 8:0:20:0:0:2
    hostC #
  3. hostC # /usr/local/bin/sted -h hostA:8888
    Successfully connected with HUB
    Going to background mode
    hostC #

  1. SteMiniportinitialize
  2. SteCreateAdapter
  3. SteRegisterDevice

  1. SteMiniportSendPackets
  2. StePutQueue
  3. ReadFile
  4. SteDispatchRead
  5. SteGetQueue

  1. WriteFile
  2. SteDispatchWrite
  3. SteAllocateRecvPacket
  4. StePutQueue
  5. NdisSetTimer

CreateEvent ObReferenceObjectByHandle ReadFile

typedef struct stehead 
{


} stehead_t;

WriteFile

struct conn_stat {

   int fd;                 /* FD */

};

Y:\vpn-ste-win>build
BUILD: Compile and Link for x86
BUILD: Loading c:\winddk\7600.16385.1\build.dat...
BUILD: Computing Include file dependencies:
BUILD: Start time: Tue Jan 03 01:08:41 2012
BUILD: Examining y:\vpn-ste-win directory tree for files to compile.
   y:\vpn-ste-win\exe\sted Invalidating OACR warning log for 'root:x86chk'
BUILD: Saving c:\winddk\7600.16385.1\build.dat...
1>BUILD: Compiling and Linking y:\vpn-ste-win\exe\sted directory
2>BUILD: Compiling and Linking y:\vpn-ste-win\exe\stehub directory
Configuring OACR for 'root:x86chk' - <OACR on>
1>Compiling - exe\sted\sted.c
2>Compiling - exe\stehub\stehub.c
2>Compiling - exe\stehub\getopt_win.c
1>Compiling - exe\sted\sted_socket.c
2>Compiling - exe\stehub\generating code...
2>Linking Executable - exe\stehub\i386\stehub.exe
1>Compiling - exe\sted\getopt_win.c
1>Compiling - exe\sted\generating code...
1>Linking Executable - exe\sted\i386\sted.exe
1>BUILD: Compiling and Linking y:\vpn-ste-win\sys directory
1>Compiling - sys\ste.c
1>Compiling - sys\ste_local.c
1>Compiling - sys\generating code...
1>Linking Executable - sys\i386\ste.sys
BUILD: Finish time: Tue Jan 03 01:09:00 2012
BUILD: Done
 
   13 files compiled - 5 Warnings - 2,544 LPS
   3 executables built




*1
*2
*3
*4

トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS