module
Version:
v1.0.3
Opens a new window with list of versions in this module.
Published: Dec 21, 2023
License: MIT
Opens a new window with license information.
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
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 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
- https://github.com/lwip-tcpip/lwip --lwIP is a small independent implementation of the TCP/IP protocol
- https://github.com/eycorsican/go-tun2socks --refer to files for lwip
- https://github.com/WireGuard/wintun --an other VPN implementation for windows
Directories
¶
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 |
|
|
|
客户端本地代理处理逻辑 |
|
|
|
|
|
|
Click to show internal directories.
Click to hide internal directories.