GithubHelp home page GithubHelp logo

5l1v3r1 / frivpn Goto Github PK

View Code? Open in Web Editor NEW

This project forked from znuh/frivpn

0.0 1.0 0.0 204 KB

multithreaded openvpn client (WIP)

License: GNU General Public License v2.0

Makefile 0.51% C 63.38% Lua 32.42% C++ 0.74% CMake 1.66% Shell 1.27%

frivpn's Introduction

frivpn

A multi-threaded OpenVPN client (WIP)

With Raspberry Pis, ODROIDs and APUs becoming ubiquitous and cheap devices, they are often used and configured as VPN gateways to the Internet. OpenVPN can't use those devices to their full capacity, since it runs single-threaded and quickly maxes out one CPU core due to the lack of hardware-accelerated AES cryptography.

frivpn is multi-threaded and runs on multiple (all) CPU cores, which results in the best possible VPN bandwidth and throughput.

Device OpenVPN frivpn Comment
APU.1D ~30 Mbit/s ~60 Mbit/s DualCore 1GHz AMD G series T40E
ODROID XU4 ~24 Mbit/s ~170 Mbit/s QuadCore 2GHz Cortex-A15
Raspberry Pi 3 ~20 Mbit/s ~?? Mbit/s QuadCore 1.2GHz Cortex-A53
Raspberry Pi 2 ~15 Mbit/s ~?? Mbit/s QuadCore 900MHz Cortex-A7

Installation

Packages

ArchLinux

# yaourt -S frivpn-git

From Source

Dependencies

Debian (stretch)

# apt install build-essential cmake lua5.2 lua5.2-dev lua-posix lua-luaossl \
              lua-cqueues lua-socket libssl-dev liblzo2-dev

Ubuntu 17.10 (artful)

# apt install build-essential cmake lua liblua5.2-dev lua-posix lua-luaossl \
              lua-cqueues libssl-dev liblzo2-dev

ArchLinux

# yaourt -S cmake lua lua-posix lua-luaossl lua-cqueues openssl lzo

Build it

$ git clone https://github.com/znuh/frivpn.git
$ mkdir frivpn/build
$ cd frivpn/build
$ cmake ..
$ make

Run it

The frivpn_client expects a config as the first parameter. See the configs directory for configuration examples.

$ ./frivpn_client.lua configs/ipredator

Troubleshooting & Caveats

While frivpn is generally compatible with any OpenVPN server, it (currently) requires the server to be configured in the following way:

  • TCP protocol (no UDP support as of now)
  • Server cert, but no client certs
  • Username & password auth
  • tls-auth enabled
  • comp-lzo enabled
  • cipher AES-256-CBC
  • auth SHA1

Found an OpenVPN-compatible service that doesn't work with frivpn yet? Open an issue and let us know!

frivpn's People

Contributors

kochchef avatar muesli avatar znuh avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.