Skip to content

easzlab/ezvpn

Repository files navigation

EZVPN

Lưu trình

  1. Bản cài đặt đăng ký Thông qua mTLS, bản cài đặt sử dụng token, phục vụ đoan nghiệm chứng thông qua, thành lập wss liên tiếp ( khống chế liên tiếp )

  2. Bản cài đặt nghe lén cảng Khống chế liên tiếp thành lập thành công sau, bản cài đặt nghe lén tcp cảng, nghe lén thực tế socks5 lưu lượng thỉnh cầu

  3. Bản cài đặt thực tế lưu lượng xử lý Bản cài đặt tân lưu lượng liên tiếp thành lập sau, tân kiến wss số liệu liên tiếp, liên tiếp thành lập thành công sau; số liệu chuyển phát như sau: (socks client) <--conn--> Agent <--ws--> Server <--conn--> (socks server) <--> Destination

Biên dịch

  1. macOS
# biên dịch ezvpn-agent
GOOS=darwin GOARCH=amd64 CGO=0 go build -o ezvpn-agent cmd/agent/main.go
# biên dịch ezvpn-server
GOOS=darwin GOARCH=amd64 CGO=0 go build -o ezvpn-server cmd/server/main.go
  1. linux
# biên dịch ezvpn-agent
GOOS=linux GOARCH=amd64 CGO=0 go build -o ezvpn-agent cmd/agent/main.go
# biên dịch ezvpn-server
GOOS=linux GOARCH=amd64 CGO=0 go build -o ezvpn-server cmd/server/main.go
  1. windows
# biên dịch ezvpn-agent.exe, duy trì hậu trường vận hành
GOOS=windows GOARCH=amd64 CGO=0 go build -ldflags -H=windowsgui -o ezvpn-agent.exe cmd/agent/main.go
# biên dịch ezvpn-server.exe, duy trì hậu trường vận hành
GOOS=windows GOARCH=amd64 CGO=0 go build -ldflags -H=windowsgui -o ezvpn-server.exe cmd/server/main.go