Няма описание

Ambroz Bizjak 347fa1a7a5 ncd: Store the NCDStingIndex pointer in NCDValMem. преди 10 години
arpprobe 5153894f43 Use badvpn_add_library for all internal libraries. преди 11 години
base 9314b91783 Refactoring using MemRef. преди 11 години
blog_generator a21e23fe8a port to compile with MSVC преди 13 години
bproto a21e23fe8a port to compile with MSVC преди 13 години
bproto_generator 3291a4713e bproto_generator: fix aliasing issues преди 13 години
client a23d1d7f84 client, server: implement experimental support for performing SSL operations in worker threads преди 13 години
cmake af505a92a2 system: add a BReactor implementation using the GLib event loop преди 14 години
dhcpclient 5153894f43 Use badvpn_add_library for all internal libraries. преди 11 години
dostest 47431d77c0 add some programs for playing with DoS attacks on TCP преди 13 години
examples 347fa1a7a5 ncd: Store the NCDStingIndex pointer in NCDValMem. преди 10 години
flooder a23d1d7f84 client, server: implement experimental support for performing SSL operations in worker threads преди 13 години
flow faa7a69c48 compile PIC versions of internal libraries, to be used by NCD plugins преди 13 години
flowextra 5153894f43 Use badvpn_add_library for all internal libraries. преди 11 години
generated 2d242ebc89 ncd: Permit functions with have zero arguments. преди 11 години
lemon 20d7a01ad9 Add NCD, the Network Configuration Daemon преди 15 години
lime 198d6cd4b8 Initial import преди 15 години
lwip cedb690976 lwip: Fix undefined behavior. преди 11 години
misc 752c6b492b version 1.999.130 преди 11 години
ncd 347fa1a7a5 ncd: Store the NCDStingIndex pointer in NCDValMem. преди 10 години
ncd-request 347fa1a7a5 ncd: Store the NCDStingIndex pointer in NCDValMem. преди 10 години
nspr_support 5153894f43 Use badvpn_add_library for all internal libraries. преди 11 години
predicate 5153894f43 Use badvpn_add_library for all internal libraries. преди 11 години
protocol ed6449d06a tun2socks: IPv6 support. Includes updated lwIP version and udpgw program. преди 13 години
random 5153894f43 Use badvpn_add_library for all internal libraries. преди 11 години
scripts 4d020a06ed scripts/copy_nss: copy programs too преди 15 години
security 5153894f43 Use badvpn_add_library for all internal libraries. преди 11 години
server ae14d254ac server: Fix bug forgetting to call BSSLConnection_ReleaseBuffers(). преди 12 години
server_connection 5153894f43 Use badvpn_add_library for all internal libraries. преди 11 години
socksclient 5153894f43 Use badvpn_add_library for all internal libraries. преди 11 години
stringmap 5153894f43 Use badvpn_add_library for all internal libraries. преди 11 години
structure 194edaec18 structure: Vector: Reduce interface. преди 11 години
system f844123ab2 system/BConnection: Add option to take ownership of the pipe_fd. преди 11 години
tests 93bc612a21 get rid of some warnings преди 13 години
threadwork 5153894f43 Use badvpn_add_library for all internal libraries. преди 11 години
tun2socks 64e54ba888 Refactoring using MemRef. преди 11 години
tunctl 65011dfa08 Fix some variable shadowing (no bugs). преди 11 години
tuntap 92a2fc831b Fix TUN/TAP operation with Linux kernel 3.19. преди 11 години
udevmonitor 5153894f43 Use badvpn_add_library for all internal libraries. преди 11 години
udpgw 1ba0000b7c udpgw: fix clang warning преди 12 години
udpgw_client 5153894f43 Use badvpn_add_library for all internal libraries. преди 11 години
CMakeLists.txt 88c5266e22 CMakeLists.txt: Don't build the -plugin libs by default. преди 11 години
COPYING 0d99d6a26a switch to using the New BSD License преди 14 години
ChangeLog 752c6b492b version 1.999.130 преди 11 години
INSTALL c736d012bd INSTALL: mention how to avoid NSS dependency when it's not needed преди 13 години
INSTALL-WINDOWS c4017da109 INSTALL-WINDOWS: openssl compiles fine without "no-asm". Add note that prebuilt versions of libraries are available. преди 13 години
README.md 44bbee7fd6 Readme adaptation. преди 10 години
badvpn.7 0d99d6a26a switch to using the New BSD License преди 14 години
badvpn.nix 1be45b445d Nix expressions: Separate the package function from the composition. преди 11 години
blog_channels.txt 462ed77f14 ncd: Implement object reference infrastructure and objref module. преди 11 години
build.nix 1be45b445d Nix expressions: Separate the package function from the composition. преди 11 години
compile-tun2sock.sh 2ecf51b42f Use env in shebangs. преди 11 години
compile-udpgw.sh 2ecf51b42f Use env in shebangs. преди 11 години
fix_flex.php a21e23fe8a port to compile with MSVC преди 13 години
generate_files bb9ca1fe73 ncd: rename NCDValue{Generator,Parser} to NCDVal{Generator,Parser} преди 13 години

README.md

BadVPN

Introduction

In this project I host some of my open-source networking software. All of the software is written in C and utilizes a custom-developed framework for event-driven programming. The extensive code sharing is the reason all the software is packaged together. However, it is possible to compile only the required components to avoid extra dependencies.

NCD programming language

NCD (Network Configuration Daemon) is a daemon and programming/scripting language for configuration of network interfaces and other aspects of the operating system. It implements various functionalities as built-in modules, which may be used from an NCD program wherever and for whatever purpose the user needs them. This modularity makes NCD extremely flexible and extensible. It does a very good job with hotplugging in various forms, like USB network interfaces and link detection for wired devices. New features can be added by implementing statements as C-language modules using a straightforward interface.

Tun2socks network-layer proxifier

The tun2socks program "socksifes" TCP connections at the network layer. It implements a TUN device which accepts all incoming TCP connections (regardless of destination IP), and forwards the connections through a SOCKS server. This allows you to forward all connections through SOCKS, without any need for application support. It can be used, for example, to forward connections through a remote SSH server.

Peer-to-peer VPN

The VPN part of this project implements a Layer 2 (Ethernet) network between the peers (VPN nodes). The peers connect to a central server which acts as a communication proxy allowing the peers to establish direct connections between each other (data connections). These connections are used for transferring network data (Ethernet frames), and can be secured with a multitude of mechanisms. Notable features are:

  • UDP and TCP transport
  • Converges very quickly after a new peer joins
  • IGMP snooping to deliver multicasts efficiently (e.g. for IPTV)
  • Double SSL: if SSL is enabled, not only do peers connect to the server with SSL, but they use an additional layer of SSL when exchanging messages through the server
  • Features related to the NAT problem:
    • Can work with multiple layers of NAT (needs configuration)
    • Local peers inside a NAT can communicate directly
    • Relaying as a fallback (needs configuration)

Documentation

  • [NCD] - Introduction to the NCD language.
  • [badvpn] - General description of BadVPN and its features.
  • [Examples] - Quick guide to setting up a working VPN.
  • [badvpn_server], [badvpn_client] - Documentation of individual programs.

Requirements

NCD only works on Linux. Tun2socks works on Linux and Windows. The P2P VPN works on Linux, Windows and FreeBSD (not tested often).

Installation

Packages are available for NixOS (badvpn), Gentoo Linux (net-misc/badvpn), Arch Linux (AUR package badvpn) and Ubuntu (see Installation). A Windows build is available too. If you want to build BadVPN from source, see INSTALL or INSTALL-WINDOWS.

License

The BSD 3-clause license as shown below applies to most of the code.

Copyright (c) 2009, Ambroz Bizjak <ambrop7@gmail.com>
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright
   notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
   notice, this list of conditions and the following disclaimer in the
   documentation and/or other materials provided with the distribution.
3. Neither the name of the author nor the
   names of its contributors may be used to endorse or promote products
   derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

List of third-party code included in the source:

  • lwIP - A Lightweight TCP/IP stack. License: lwip/COPYING