Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
boytm committed Aug 13, 2015
1 parent 19490e4 commit 9f9a7ce
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 13 deletions.
22 changes: 13 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,26 @@
The minivtun is a tiny layer 3 vpn service on posix platform.
And this is a windows client for it.

### Installation
# Installation #

# Install windows tap driver
site: https://github.com/OpenVPN/tap-windows https://github.com/OpenVPN/tap-windows6
precompiled binary:
### Install windows tap driver

site:
https://github.com/OpenVPN/tap-windows https://github.com/OpenVPN/tap-windows6

precompiled binary:
* NIDS 5 (windows xp and above) https://swupdate.openvpn.org/community/releases/tap-windows-9.9.2_3.exe
* NIDS 6 (windows vista and above) https://swupdate.openvpn.org/community/releases/tap-windows-9.21.1.exe


# Install required development components
python 2.7
python package: ipaddress pywin32 M2Crypto
### Install required development components
python 2.7
python package: ipaddress pywin32 M2Crypto

# Compile and pack
### Compile and pack
python setup.py py2exe

### Usage
# Usage #

Mini virtual tunneller in non-standard protocol.
Usage:
Expand All @@ -42,3 +45,4 @@ Client: Connect VPN to the server (assuming address vpn.abc.com), with local vir

python tun.py -r vpn.abc.com:1414 -a 10.7.0.33/24


10 changes: 8 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
import py2exe

setup(
options = {'py2exe': {'bundle_files': 1, 'compressed': True}},
console=['tun.py']
options = {'py2exe': {
'optimize':2,
'bundle_files': 3,
'compressed': True,
}
},
console=['tun.py'],
zipfile = None
)
4 changes: 2 additions & 2 deletions tun.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
from struct import unpack


unused_input_buffer = 'unused' # workground for NIDS 6 dirver
unused_output_buffer = win32file.AllocateReadBuffer(4) # workground for NIDS 6 dirver
unused_input_buffer = 'unused' # workaround for NIDS 6 dirver
unused_output_buffer = win32file.AllocateReadBuffer(4) # workaround for NIDS 6 dirver

handle = None
sock = None
Expand Down

0 comments on commit 9f9a7ce

Please sign in to comment.