Git Product home page Git Product logo

alpaca-proxy's Introduction

alpaca-tunnel

alpaca-tunnel is an VPN designed for The Grass Mud Horses, also known as Caonimas. Any Caonima is welcomed to use this software. Anyone who wants to use this tool but agrees with the GFW, go fuck yourself.

Install

Currently only tested on Ubuntu 16.04 and CentOS 7. Depend on systemd. Download the codes and build.

sudo apt-get update
sudo apt-get install build-essential make -y
make && sudo make install

Configuration

  • Conf files are stored in /usr/local/etc/alpaca-tunnel.d/ by default.
  • Edit Mode/ID in config.json.
  • Edit server addresses and passwords in secrets.

alpaca-tunnel supports multiple clients with one server instance. Each server or client has an unique ID, such as 1.1 or 16.4. The format of the ID is just like the format of one half of an IP address. Note that you must allocate smaller IDs for servers, bigger IDs for clients.

Servers and clients must have the same GROUP name.

For the client, you should specify a gateway. You may also specify some forwarders if you have multiple paths, these forwarders will forward packets to the gateway.

The shell version of chnroute is too slow, so I write a C version. Edit chnroute object in the json to use it.

Usage

Show status:

systemctl status alpaca-tunnel.service

Start:

sudo systemctl start alpaca-tunnel.service
sudo /usr/local/etc/alpaca-tunnel.d/chnroute.sh add (optional)

Stop:

sudo systemctl stop alpaca-tunnel.service
sudo /usr/local/etc/alpaca-tunnel.d/chnroute.sh del (optional)

Wiki

You can find all the documentation in the wiki.md.

License

Copyright (C) 2020 alpaca-tunnel

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

The json parser was distributed under MIT license, please refer to https://github.com/zserge/jsmn.

The AES lib was copied from https://github.com/kokke/tiny-AES-c.

Bugs and Issues

  1. When a client switches the gateway between forwarders, or access more than one forwarders at the same time, it will trigger split horizon. During this time, packets will not be forwarded among the forwarders, and only the direct packets are delivered. So it may slow down the speed. (For each trigger, the log will last for about 10 seconds.)

  2. When forwarders set on a server, two clients may not be able to reach each other via the server. If you want to use P2P, don't specify forwarders on the server.

Security Warnings

This software is not designed by an security expert, and not designed for strong security. It uses static pre-shared-keys, so there is no perfect forward secrecy, and it's vulnerable to replay attack. Don't rely on it.

alpaca-proxy's People

Contributors

alpacatunnel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.