Git Product home page Git Product logo

sockscrypt's Introduction

Purpose

Tunnel AES-encrypted SOCKS-5 networking with IPv6 supported

Building

install mbedtls, then run

make

Example

Generate AES-256 key for both Desktop and VPS:

dd if=/dev/random bs=32 count=1 of=aeskey

Launch plain SOCKS-5 proxy on VPS, for example with axproxy, another project here:

axproxy -v [::1]:8080

Start SocksCrypt on VPS, server-side:

./bin/sockscrypt -vs aeskey 0.0.0.0:8081 [::1]:8080

Then launch SocksCrypt on Desktop, client-side:

./bin/sockscrypt -vc aeskey [::1]:8082 <vps-ipv4>:8080

Finally check the connection with curl, client-side:

curl -x socks5h://[::1]:8082 https://ipinfo.io/json -o -

Ports used in the example:

  • 8080 - Incoming plaintext Socks-5 data on VPS
  • 8081 - Incoming ciphertext Socks-5 data on VPS
  • 8082 - Gateway on Desktop for connections to be tunneled

Help message

[skcr] SocksCrypt - ver. 1.05.1a
[skcr] usage: sockscrypt [-vdcs] aeskey-file listen-addr:listen-port endp-addr:endp-port

       option -v         Enable verbose logging
       option -d         Run in background
       option -c         Client-side mode
       option -s         Server-side mode
       aeskey-file       Plain AES-256 key file
       listen-addr       Gateway address
       listen-port       Gateway port
       endp-addr         Endpoint address
       endp-port         Endpoint port

Note: Both IPv4 and IPv6 can be used

sockscrypt's People

Contributors

aadps avatar ecnx avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

aadps

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.