Giter Club home page Giter Club logo

s-vpn's Introduction

S-VPN is a simple stupid VPN without any denpendency, could be easily set up on Linux.

Just for fun, dont't despise us, thank you!

I have tried it on my TP-Link MR11U, it works fine.

Get and Make

  1. Clone the repository from Github

     git clone [email protected]:geraint0923/S-VPN.git
    
  2. Get into the S-VPN' s directory

     cd S-VPN/
    
  3. Make a directory for build and get into it

     mkdir build  && cd build/
    
  4. Build

     cmake .. && make
    

#Configuration

##Client No Configuration needed, just run the command:

sclient IP port ID PWD

There will be a tunnel named tunX being set up, you could route the packet as you like.

Note: please the route rule to your server manually, like:

route add -net X.X.X.X(your server's IP) gw 192.168.3.1

or

route add -net X.X.X.X dev tunX(the tunnel used by VPN)

##Server Need a config file, like config.example:

port 123
local 192.168.3.1
user 6 a

Try the following steps:

  1. the first line indicate the port used
  2. the second line indicate the address of server in the subnet
  3. the third line indicate the user id which must range from 3 to 240(for example 6), and the password(plain text)

then run the following command:

sserver config.example(your config file name)

here a tunnel named tunX will be set up, you may need more packet forward rules operations, such as enabling IP forwarding in Linux, NAT, etc.

Some useful scripts could be found in scripts/ diretory.

s-vpn's People

Contributors

geraint0923 avatar

Stargazers

 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.