INSTALL 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. 1 Requirements
  2. 1.1 Operating system
  3. Linux:
  4. - Linux kernel 2.6. Kernel 2.4 will work, but performance will suffer.
  5. - tested on x86, x86_64 and ARM architectures. Not tested on any big-endian architecture.
  6. Windows:
  7. - Windows XP or newer; tested on Windows XP and Windows 7
  8. FreeBSD:
  9. - Not regularly tested.
  10. Other systems are not supported.
  11. 1.2 Compilers
  12. Linux:
  13. - gcc
  14. - clang, except >=3.0 (clang bug http://llvm.org/bugs/show_bug.cgi?id=11535)
  15. Windows:
  16. - gcc from the mingw-w64 project for 32-bit targets
  17. C language features used:
  18. - Standard (all part of C99):
  19. - designated initializers
  20. - stdint.h, inttypes.h, stddef.h
  21. - intermingled declarations and code
  22. - for loop initial declaration
  23. - one-line "//" comments
  24. - Extensions:
  25. - packed structure attribute (to pack a structure and allow unaligned access)
  26. 1.3 CMake
  27. The build system uses CMake.
  28. 1.4 OpenSSL
  29. Libcrypto (part of OpenSSL) is used for block ciphers, hash functions and random data generation.
  30. 1.5 Network Security Services (NSS)
  31. The NSS library from Mozilla is used for TLS support. NSS command-line tools are also needed
  32. for setting up certificates.
  33. 1.6 TAP-Win32 (Windows only) (runtime only)
  34. The TAP-Win32 driver, part of OpenVPN.
  35. 2 Compilation
  36. 2.1 Compiling on Linux
  37. $ tar xf badvpn-<version>.tar.bz2
  38. $ mkdir build
  39. $ cd build
  40. $ cmake ../badvpn-<version> -DCMAKE_INSTALL_PREFIX=/usr/local
  41. $ make
  42. If you want to install it, run as root:
  43. # make install
  44. If you only want NCD or tun2socks and not the VPN system, you can avoid the NSS dependency by passing
  45. the following to the cmake command:
  46. -DBUILD_NCD=1 -DBUILD_TUN2SOCKS=1 -DBUILD_NOTHING_BY_DEFAULT=1
  47. 2.2 Compiling for Windows
  48. See the file INSTALL-WINDOWS for detailed instructions.
  49. 3 Usage
  50. The primary documentation is on the BadVPN homepage, http://code.google.com/p/badvpn/ .
  51. Additionally, some man pages are installed (badvpn(7), badvpn-server(8), badvpn-client(8)).