summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2012-01-06 02:55:39 +0000
committerChristian Pointner <equinox@anytun.org>2012-01-06 02:55:39 +0000
commit5b9ecb685b1c1458ed95ed866ac55b88bee17359 (patch)
tree6a9b58d88e6383527090a8f9e2093574cf6a2d95
parentcleanup at ming-cross script for anytun (diff)
added some windoof shit
-rw-r--r--contrib/anytun-example.bat5
-rw-r--r--contrib/tap32/OemWin2k.inf187
-rw-r--r--contrib/tap32/tap0901.catbin0 -> 7579 bytes
-rw-r--r--contrib/tap32/tap0901.sysbin0 -> 25216 bytes
-rw-r--r--contrib/tap32/tap_install.bat2
-rw-r--r--contrib/tap32/tap_remove.bat2
-rw-r--r--contrib/tap32/tapinstall.exebin0 -> 78336 bytes
-rw-r--r--contrib/tap64/OemWin2k.inf187
-rw-r--r--contrib/tap64/tap0901.catbin0 -> 7551 bytes
-rw-r--r--contrib/tap64/tap0901.sysbin0 -> 29696 bytes
-rw-r--r--contrib/tap64/tap_install.bat2
-rw-r--r--contrib/tap64/tap_remove.bat2
-rw-r--r--contrib/tap64/tapinstall.exebin0 -> 82432 bytes
-rw-r--r--contrib/tap64/tapinstall.exe.minifest.txt16
14 files changed, 403 insertions, 0 deletions
diff --git a/contrib/anytun-example.bat b/contrib/anytun-example.bat
new file mode 100644
index 0000000..f00e19a
--- /dev/null
+++ b/contrib/anytun-example.bat
@@ -0,0 +1,5 @@
+@rem Point to point example
+@rem please make sure to keep the remote-host parameter, even if it's wrong, to avoid problems with windows firewall
+@rem anytun --interface 0.0.0.0 --passphrase lala --type tap --ifconfig 5.0.225.2/8 --remote-host 1.1.1.2 --remote-port 4444
+anytun --interface 0.0.0.0 --passphrase lala --type tap --ifconfig 5.0.225.1/8 --remote-host 1.1.1.1 --remote-port 4444 --role right
+pause \ No newline at end of file
diff --git a/contrib/tap32/OemWin2k.inf b/contrib/tap32/OemWin2k.inf
new file mode 100644
index 0000000..8089434
--- /dev/null
+++ b/contrib/tap32/OemWin2k.inf
@@ -0,0 +1,187 @@
+; ****************************************************************************
+; * Copyright (C) 2002-2008 OpenVPN Technologies, Inc. *
+; * This program is free software; you can redistribute it and/or modify *
+; * it under the terms of the GNU General Public License version 2 *
+; * as published by the Free Software Foundation. *
+; ****************************************************************************
+
+; SYNTAX CHECKER
+; cd \WINDDK\3790\tools\chkinf
+; chkinf c:\src\openvpn\tap-win32\i386\oemwin2k.inf
+; OUTPUT -> file:///c:/WINDDK/3790/tools/chkinf/htm/c%23+src+openvpn+tap-win32+i386+__OemWin2k.htm
+
+; INSTALL/REMOVE DRIVER
+; tapinstall install OemWin2k.inf TAP0901
+; tapinstall update OemWin2k.inf TAP0901
+; tapinstall remove TAP0901
+
+;*********************************************************
+; Note to Developers:
+;
+; If you are bundling the TAP-Win32 driver with your app,
+; you should try to rename it in such a way that it will
+; not collide with other instances of TAP-Win32 defined
+; by other apps. Multiple versions of the TAP-Win32
+; driver, each installed by different apps, can coexist
+; on the same machine if you follow these guidelines.
+; NOTE: these instructions assume you are editing the
+; generated OemWin2k.inf file, not the source
+; OemWin2k.inf.in file which is preprocessed by winconfig
+; and uses macro definitions from settings.in.
+;
+; (1) Rename all tapXXXX instances in this file to
+; something different (use at least 5 characters
+; for this name!)
+; (2) Change the "!define TAP" definition in openvpn.nsi
+; to match what you changed tapXXXX to.
+; (3) Change TARGETNAME in SOURCES to match what you
+; changed tapXXXX to.
+; (4) Change TAP_COMPONENT_ID in common.h to match what
+; you changed tapXXXX to.
+; (5) Change SZDEPENDENCIES in service.h to match what
+; you changed tapXXXX to.
+; (6) Change DeviceDescription and Provider strings.
+; (7) Change PRODUCT_STRING in constants.h to what you
+; set DeviceDescription to.
+;
+;*********************************************************
+
+[Version]
+ Signature = "$Windows NT$"
+ CatalogFile = tap0901.cat
+ ClassGUID = {4d36e972-e325-11ce-bfc1-08002be10318}
+ Provider = %Provider%
+ Class = Net
+
+; This version number should match the version
+; number given in SOURCES.
+ DriverVer=01/22/2008,9.00.00.4
+
+[Strings]
+ DeviceDescription = "TAP-Win32 Adapter V9"
+ Provider = "TAP-Win32 Provider V9"
+
+;----------------------------------------------------------------
+; Manufacturer + Product Section (Done)
+;----------------------------------------------------------------
+[Manufacturer]
+ %Provider% = tap0901
+
+[tap0901]
+ %DeviceDescription% = tap0901.ndi, tap0901
+
+;---------------------------------------------------------------
+; Driver Section (Done)
+;---------------------------------------------------------------
+
+;----------------- Characteristics ------------
+; NCF_PHYSICAL = 0x04
+; NCF_VIRTUAL = 0x01
+; NCF_SOFTWARE_ENUMERATED = 0x02
+; NCF_HIDDEN = 0x08
+; NCF_NO_SERVICE = 0x10
+; NCF_HAS_UI = 0x80
+;----------------- Characteristics ------------
+
+[tap0901.ndi]
+ CopyFiles = tap0901.driver, tap0901.files
+ AddReg = tap0901.reg
+ AddReg = tap0901.params.reg
+ Characteristics = 0x81
+
+[tap0901.ndi.Services]
+ AddService = tap0901, 2, tap0901.service
+
+[tap0901.reg]
+ HKR, Ndi, Service, 0, "tap0901"
+ HKR, Ndi\Interfaces, UpperRange, 0, "ndis5"
+ HKR, Ndi\Interfaces, LowerRange, 0, "ethernet"
+ HKR, , Manufacturer, 0, "%Provider%"
+ HKR, , ProductName, 0, "%DeviceDescription%"
+
+[tap0901.params.reg]
+ HKR, Ndi\params\MTU, ParamDesc, 0, "MTU"
+ HKR, Ndi\params\MTU, Type, 0, "int"
+ HKR, Ndi\params\MTU, Default, 0, "1500"
+ HKR, Ndi\params\MTU, Optional, 0, "0"
+ HKR, Ndi\params\MTU, Min, 0, "100"
+ HKR, Ndi\params\MTU, Max, 0, "1500"
+ HKR, Ndi\params\MTU, Step, 0, "1"
+ HKR, Ndi\params\MediaStatus, ParamDesc, 0, "Media Status"
+ HKR, Ndi\params\MediaStatus, Type, 0, "enum"
+ HKR, Ndi\params\MediaStatus, Default, 0, "0"
+ HKR, Ndi\params\MediaStatus, Optional, 0, "0"
+ HKR, Ndi\params\MediaStatus\enum, "0", 0, "Application Controlled"
+ HKR, Ndi\params\MediaStatus\enum, "1", 0, "Always Connected"
+ HKR, Ndi\params\MAC, ParamDesc, 0, "MAC Address"
+ HKR, Ndi\params\MAC, Type, 0, "edit"
+ HKR, Ndi\params\MAC, Optional, 0, "1"
+ HKR, Ndi\params\AllowNonAdmin, ParamDesc, 0, "Non-Admin Access"
+ HKR, Ndi\params\AllowNonAdmin, Type, 0, "enum"
+ HKR, Ndi\params\AllowNonAdmin, Default, 0, "1"
+ HKR, Ndi\params\AllowNonAdmin, Optional, 0, "0"
+ HKR, Ndi\params\AllowNonAdmin\enum, "0", 0, "Not Allowed"
+ HKR, Ndi\params\AllowNonAdmin\enum, "1", 0, "Allowed"
+
+;----------------------------------------------------------------
+; Service Section
+;----------------------------------------------------------------
+
+;---------- Service Type -------------
+; SERVICE_KERNEL_DRIVER = 0x01
+; SERVICE_WIN32_OWN_PROCESS = 0x10
+;---------- Service Type -------------
+
+;---------- Start Mode ---------------
+; SERVICE_BOOT_START = 0x0
+; SERVICE_SYSTEM_START = 0x1
+; SERVICE_AUTO_START = 0x2
+; SERVICE_DEMAND_START = 0x3
+; SERVICE_DISABLED = 0x4
+;---------- Start Mode ---------------
+
+[tap0901.service]
+ DisplayName = %DeviceDescription%
+ ServiceType = 1
+ StartType = 3
+ ErrorControl = 1
+ LoadOrderGroup = NDIS
+ ServiceBinary = %12%\tap0901.sys
+
+;-----------------------------------------------------------------
+; File Installation
+;-----------------------------------------------------------------
+
+;----------------- Copy Flags ------------
+; COPYFLG_NOSKIP = 0x02
+; COPYFLG_NOVERSIONCHECK = 0x04
+;----------------- Copy Flags ------------
+
+; SourceDisksNames
+; diskid = description[, [tagfile] [, <unused>, subdir]]
+; 1 = "Intel Driver Disk 1",e100bex.sys,,
+
+[SourceDisksNames]
+ 1 = %DeviceDescription%, tap0901.sys
+
+; SourceDisksFiles
+; filename_on_source = diskID[, [subdir][, size]]
+; e100bex.sys = 1,, ; on distribution disk 1
+
+[SourceDisksFiles]
+tap0901.sys = 1
+
+[DestinationDirs]
+ tap0901.files = 11
+ tap0901.driver = 12
+
+[tap0901.files]
+; TapPanel.cpl,,,6 ; COPYFLG_NOSKIP | COPYFLG_NOVERSIONCHECK
+; cipsrvr.exe,,,6 ; COPYFLG_NOSKIP | COPYFLG_NOVERSIONCHECK
+
+[tap0901.driver]
+ tap0901.sys,,,6 ; COPYFLG_NOSKIP | COPYFLG_NOVERSIONCHECK
+
+;---------------------------------------------------------------
+; End
+;---------------------------------------------------------------
diff --git a/contrib/tap32/tap0901.cat b/contrib/tap32/tap0901.cat
new file mode 100644
index 0000000..6ba3971
--- /dev/null
+++ b/contrib/tap32/tap0901.cat
Binary files differ
diff --git a/contrib/tap32/tap0901.sys b/contrib/tap32/tap0901.sys
new file mode 100644
index 0000000..0f93221
--- /dev/null
+++ b/contrib/tap32/tap0901.sys
Binary files differ
diff --git a/contrib/tap32/tap_install.bat b/contrib/tap32/tap_install.bat
new file mode 100644
index 0000000..06de8b9
--- /dev/null
+++ b/contrib/tap32/tap_install.bat
@@ -0,0 +1,2 @@
+tapinstall.exe install OemWin2k.inf TAP0901
+pause \ No newline at end of file
diff --git a/contrib/tap32/tap_remove.bat b/contrib/tap32/tap_remove.bat
new file mode 100644
index 0000000..dfde01e
--- /dev/null
+++ b/contrib/tap32/tap_remove.bat
@@ -0,0 +1,2 @@
+tapinstall.exe remove OemWin2k.inf TAP0901
+pause \ No newline at end of file
diff --git a/contrib/tap32/tapinstall.exe b/contrib/tap32/tapinstall.exe
new file mode 100644
index 0000000..6d978cd
--- /dev/null
+++ b/contrib/tap32/tapinstall.exe
Binary files differ
diff --git a/contrib/tap64/OemWin2k.inf b/contrib/tap64/OemWin2k.inf
new file mode 100644
index 0000000..3a0398c
--- /dev/null
+++ b/contrib/tap64/OemWin2k.inf
@@ -0,0 +1,187 @@
+; ****************************************************************************
+; * Copyright (C) 2002-2008 OpenVPN Technologies, Inc. *
+; * This program is free software; you can redistribute it and/or modify *
+; * it under the terms of the GNU General Public License version 2 *
+; * as published by the Free Software Foundation. *
+; ****************************************************************************
+
+; SYNTAX CHECKER
+; cd \WINDDK\3790\tools\chkinf
+; chkinf c:\src\openvpn\tap-win32\i386\oemwin2k.inf
+; OUTPUT -> file:///c:/WINDDK/3790/tools/chkinf/htm/c%23+src+openvpn+tap-win32+i386+__OemWin2k.htm
+
+; INSTALL/REMOVE DRIVER
+; tapinstall install OemWin2k.inf TAP0901
+; tapinstall update OemWin2k.inf TAP0901
+; tapinstall remove TAP0901
+
+;*********************************************************
+; Note to Developers:
+;
+; If you are bundling the TAP-Win32 driver with your app,
+; you should try to rename it in such a way that it will
+; not collide with other instances of TAP-Win32 defined
+; by other apps. Multiple versions of the TAP-Win32
+; driver, each installed by different apps, can coexist
+; on the same machine if you follow these guidelines.
+; NOTE: these instructions assume you are editing the
+; generated OemWin2k.inf file, not the source
+; OemWin2k.inf.in file which is preprocessed by winconfig
+; and uses macro definitions from settings.in.
+;
+; (1) Rename all tapXXXX instances in this file to
+; something different (use at least 5 characters
+; for this name!)
+; (2) Change the "!define TAP" definition in openvpn.nsi
+; to match what you changed tapXXXX to.
+; (3) Change TARGETNAME in SOURCES to match what you
+; changed tapXXXX to.
+; (4) Change TAP_COMPONENT_ID in common.h to match what
+; you changed tapXXXX to.
+; (5) Change SZDEPENDENCIES in service.h to match what
+; you changed tapXXXX to.
+; (6) Change DeviceDescription and Provider strings.
+; (7) Change PRODUCT_STRING in constants.h to what you
+; set DeviceDescription to.
+;
+;*********************************************************
+
+[Version]
+ Signature = "$Windows NT$"
+ CatalogFile = tap0901.cat
+ ClassGUID = {4d36e972-e325-11ce-bfc1-08002be10318}
+ Provider = %Provider%
+ Class = Net
+
+; This version number should match the version
+; number given in SOURCES.
+ DriverVer=01/22/2008,9.00.00.4
+
+[Strings]
+ DeviceDescription = "TAP-Win32 Adapter V9"
+ Provider = "TAP-Win32 Provider V9"
+
+;----------------------------------------------------------------
+; Manufacturer + Product Section (Done)
+;----------------------------------------------------------------
+[Manufacturer]
+ %Provider% = tap0901, NTamd64
+
+[tap0901.NTamd64]
+ %DeviceDescription% = tap0901.ndi, tap0901
+
+;---------------------------------------------------------------
+; Driver Section (Done)
+;---------------------------------------------------------------
+
+;----------------- Characteristics ------------
+; NCF_PHYSICAL = 0x04
+; NCF_VIRTUAL = 0x01
+; NCF_SOFTWARE_ENUMERATED = 0x02
+; NCF_HIDDEN = 0x08
+; NCF_NO_SERVICE = 0x10
+; NCF_HAS_UI = 0x80
+;----------------- Characteristics ------------
+
+[tap0901.ndi]
+ CopyFiles = tap0901.driver, tap0901.files
+ AddReg = tap0901.reg
+ AddReg = tap0901.params.reg
+ Characteristics = 0x81
+
+[tap0901.ndi.Services]
+ AddService = tap0901, 2, tap0901.service
+
+[tap0901.reg]
+ HKR, Ndi, Service, 0, "tap0901"
+ HKR, Ndi\Interfaces, UpperRange, 0, "ndis5"
+ HKR, Ndi\Interfaces, LowerRange, 0, "ethernet"
+ HKR, , Manufacturer, 0, "%Provider%"
+ HKR, , ProductName, 0, "%DeviceDescription%"
+
+[tap0901.params.reg]
+ HKR, Ndi\params\MTU, ParamDesc, 0, "MTU"
+ HKR, Ndi\params\MTU, Type, 0, "int"
+ HKR, Ndi\params\MTU, Default, 0, "1500"
+ HKR, Ndi\params\MTU, Optional, 0, "0"
+ HKR, Ndi\params\MTU, Min, 0, "100"
+ HKR, Ndi\params\MTU, Max, 0, "1500"
+ HKR, Ndi\params\MTU, Step, 0, "1"
+ HKR, Ndi\params\MediaStatus, ParamDesc, 0, "Media Status"
+ HKR, Ndi\params\MediaStatus, Type, 0, "enum"
+ HKR, Ndi\params\MediaStatus, Default, 0, "0"
+ HKR, Ndi\params\MediaStatus, Optional, 0, "0"
+ HKR, Ndi\params\MediaStatus\enum, "0", 0, "Application Controlled"
+ HKR, Ndi\params\MediaStatus\enum, "1", 0, "Always Connected"
+ HKR, Ndi\params\MAC, ParamDesc, 0, "MAC Address"
+ HKR, Ndi\params\MAC, Type, 0, "edit"
+ HKR, Ndi\params\MAC, Optional, 0, "1"
+ HKR, Ndi\params\AllowNonAdmin, ParamDesc, 0, "Non-Admin Access"
+ HKR, Ndi\params\AllowNonAdmin, Type, 0, "enum"
+ HKR, Ndi\params\AllowNonAdmin, Default, 0, "1"
+ HKR, Ndi\params\AllowNonAdmin, Optional, 0, "0"
+ HKR, Ndi\params\AllowNonAdmin\enum, "0", 0, "Not Allowed"
+ HKR, Ndi\params\AllowNonAdmin\enum, "1", 0, "Allowed"
+
+;----------------------------------------------------------------
+; Service Section
+;----------------------------------------------------------------
+
+;---------- Service Type -------------
+; SERVICE_KERNEL_DRIVER = 0x01
+; SERVICE_WIN32_OWN_PROCESS = 0x10
+;---------- Service Type -------------
+
+;---------- Start Mode ---------------
+; SERVICE_BOOT_START = 0x0
+; SERVICE_SYSTEM_START = 0x1
+; SERVICE_AUTO_START = 0x2
+; SERVICE_DEMAND_START = 0x3
+; SERVICE_DISABLED = 0x4
+;---------- Start Mode ---------------
+
+[tap0901.service]
+ DisplayName = %DeviceDescription%
+ ServiceType = 1
+ StartType = 3
+ ErrorControl = 1
+ LoadOrderGroup = NDIS
+ ServiceBinary = %12%\tap0901.sys
+
+;-----------------------------------------------------------------
+; File Installation
+;-----------------------------------------------------------------
+
+;----------------- Copy Flags ------------
+; COPYFLG_NOSKIP = 0x02
+; COPYFLG_NOVERSIONCHECK = 0x04
+;----------------- Copy Flags ------------
+
+; SourceDisksNames
+; diskid = description[, [tagfile] [, <unused>, subdir]]
+; 1 = "Intel Driver Disk 1",e100bex.sys,,
+
+[SourceDisksNames]
+ 1 = %DeviceDescription%, tap0901.sys
+
+; SourceDisksFiles
+; filename_on_source = diskID[, [subdir][, size]]
+; e100bex.sys = 1,, ; on distribution disk 1
+
+[SourceDisksFiles]
+tap0901.sys = 1
+
+[DestinationDirs]
+ tap0901.files = 11
+ tap0901.driver = 12
+
+[tap0901.files]
+; TapPanel.cpl,,,6 ; COPYFLG_NOSKIP | COPYFLG_NOVERSIONCHECK
+; cipsrvr.exe,,,6 ; COPYFLG_NOSKIP | COPYFLG_NOVERSIONCHECK
+
+[tap0901.driver]
+ tap0901.sys,,,6 ; COPYFLG_NOSKIP | COPYFLG_NOVERSIONCHECK
+
+;---------------------------------------------------------------
+; End
+;---------------------------------------------------------------
diff --git a/contrib/tap64/tap0901.cat b/contrib/tap64/tap0901.cat
new file mode 100644
index 0000000..622a45e
--- /dev/null
+++ b/contrib/tap64/tap0901.cat
Binary files differ
diff --git a/contrib/tap64/tap0901.sys b/contrib/tap64/tap0901.sys
new file mode 100644
index 0000000..14bf5bf
--- /dev/null
+++ b/contrib/tap64/tap0901.sys
Binary files differ
diff --git a/contrib/tap64/tap_install.bat b/contrib/tap64/tap_install.bat
new file mode 100644
index 0000000..06de8b9
--- /dev/null
+++ b/contrib/tap64/tap_install.bat
@@ -0,0 +1,2 @@
+tapinstall.exe install OemWin2k.inf TAP0901
+pause \ No newline at end of file
diff --git a/contrib/tap64/tap_remove.bat b/contrib/tap64/tap_remove.bat
new file mode 100644
index 0000000..dfde01e
--- /dev/null
+++ b/contrib/tap64/tap_remove.bat
@@ -0,0 +1,2 @@
+tapinstall.exe remove OemWin2k.inf TAP0901
+pause \ No newline at end of file
diff --git a/contrib/tap64/tapinstall.exe b/contrib/tap64/tapinstall.exe
new file mode 100644
index 0000000..852df83
--- /dev/null
+++ b/contrib/tap64/tapinstall.exe
Binary files differ
diff --git a/contrib/tap64/tapinstall.exe.minifest.txt b/contrib/tap64/tapinstall.exe.minifest.txt
new file mode 100644
index 0000000..9bdee88
--- /dev/null
+++ b/contrib/tap64/tapinstall.exe.minifest.txt
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
+ <assemblyIdentity version="1.0.0.0"
+ processorArchitecture="X86" name="tapinstall" type="win32"/>
+ <description>Installs or removes TAP devices</description>
+ <!-- Identify the application security requirements. -->
+ <ms_asmv2:trustInfo xmlns:ms_asmv2="urn:schemas-microsoft-com:asm.v2">
+ <ms_asmv2:security>
+ <ms_asmv2:requestedPrivileges>
+ <ms_asmv2:requestedExecutionLevel
+ level="requireAdministrator"
+ uiAccess="false"/>
+ </ms_asmv2:requestedPrivileges>
+ </ms_asmv2:security>
+ </ms_asmv2:trustInfo>
+</assembly> \ No newline at end of file