Categorygithub.com/calmw/socks5
repositorypackage
0.0.3
Repository: https://github.com/calmw/socks5.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# README

socks5

  • 目前实现了以下三个功能中的第一个,可以满足大部分代理需求,后续功能开发中
    • 0x01 CONNECT 连接目标服务器
    • 0x02 BIND 绑定,客户端会接收来自代理服务器的链接,也就是说告诉代理服务器创建socket,监听来自目标机器的连接。像FTP服务器这种主动连接客户端的应用场景。
    • 0x03 UDP ASSOCIATE UDP中继

测试

使用

  • 使用示例:
package main

import (
	"github.com/calmw/socks5"
)

func main() {
	server := socks5.NewServer("0.0.0.0", socks5.WithPort(6666))
	server.ListenAndServe()
}