database64128 / swgp-go

🐉 Simple WireGuard proxy with minimal overhead for WireGuard traffic.
GNU Affero General Public License v3.0
224 stars 23 forks source link

Proxy in TCP mode + documentation is not enough! #15

Closed alpha856 closed 1 year ago

alpha856 commented 2 years ago

Hello, In some ISP's or countries most UDP connection ports are blocked. can you please develop proxy in TCP mode? also i can't understand how to integrate proxy config with wireguard? can you please explain about config for clients and config for servers? you send only one sample config and i don't know this is for server only or client only or may seprate to using each other?

database64128 commented 2 years ago

See https://github.com/database64128/swgp-go/discussions/11#discussioncomment-3290275. Basically you use interfaces on your "server" to run a proxy listener and points to your wg "server". On your "client" use peers to start a wg listener to accept packets from your wg "client" and forwards them to your proxy server.

Proxying UDP traffic over TCP is a terrible idea. What you are looking for is a proxy solution like Shadowsocks. Take a look at my implementation of Shadowsocks 2022: https://github.com/database64128/shadowsocks-go