surpass

module
v1.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 21, 2023 License: MIT

README

# Surpass A simple proxy client and server

Proxy Mode

  • Process mode - Use Netfilter driver to intercept process traffic
  • Tun mode - Use WinTun or OpenVpn to create virtual adapter
  • Web mode - System web proxy

Other Features

  • UDP NAT FullCone(depend on your server)

Protocols

  • Ntcp protocol like socks5 and more features
  • Socks5

Support OS

  • Windows x64
  • Linux
  • MacOS

Build And Run

Windows

  • Compile dependencies

    • Golang1.19 or Higher
    • MinGW-w64 for Windows(here user version 8.1.0)
    • Visual Studio 2017 or Higher
  • Build Client

    • Go to path surpass/pkg/bridgeC/c/adapter/ and open adapter.sln with visual studio
    • Select release_c_dll(debug_c_dll) Solution configuration
    • Build adapter.dll
    • Next Build with Go
$ cd cmd/client
$ ./build.sh

if successfull,all the file will copy to the path "bin/windows/client/"

  • Build Server

build for windows

$ cd cmd/server
$ ./build.sh windows

build for linux

$ cd cmd/server
$ ./build.sh linux

or define by your system

$ cd cmd/server
$ ./build.sh

References

  1. https://github.com/lwip-tcpip/lwip --lwIP is a small independent implementation of the TCP/IP protocol
  2. https://github.com/eycorsican/go-tun2socks --refer to files for lwip
  3. https://github.com/WireGuard/wintun --an other VPN implementation for windows

Directories

Path Synopsis
cmd
pkg
mempool
该文件实现内存管理,实现原理是开辟大块内存,然后在大内存上分配固定大小的内存块 请在合适的场景使用
该文件实现内存管理,实现原理是开辟大块内存,然后在大内存上分配固定大小的内存块 请在合适的场景使用
protocol/ntcp
NTCP[Network transmission control protocol] Support tcp/udp/tcp bind/udp bind/mgr/ping
NTCP[Network transmission control protocol] Support tcp/udp/tcp bind/udp bind/mgr/ping
proxy
客户端本地代理处理逻辑
客户端本地代理处理逻辑

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL