This is a simple communication agent, you can think of it as a little toy, it is highly extensible, can surprise (or scare)
Note that it's not a vpn, and it's much lighter than a vpn, which means it's less cumbersome
Huh? You're right, it's not very technical. If you can sum it up in one sentence, it's an io.Copy of two net.Conn's, you can write one
What can go-cfc do?
It can perform Intranet penetration to connect two devices
The price of a server is not cheap, if the performance is still high, the cost will be heavy, computing to the local device, the server only needs to forward the data delivery, although the response speed is sacrificed, but it will reduce the cost of computing performance
It has a built-in communication protocol, and you can even use the protocol directly
Why is this thing here?
I just wanted to ssh my raspberry PI
I dug up a raspberry PI that I didn't use for a long time, and I wanted to do something with it, but my energy was limited, and I had a job, and I couldn't ssh the Raspberry PI for development whenever I wanted
Sometimes, I want to ssh my Raspberry PI at work to see things or install software
But I couldn't ssh my Raspberry PI, because Raspberry PI was at home and I was in the company, so I couldn't directly connect the two Intranet
I was annoyed, but I didn't want to install someone else's Intranet penetration tool (cumbersome and difficult to understand), so I wrote this to solve the Raspberry PI problem in ssh's home
But, obviously, it's not just for ssh, and maybe you can use it for other things
It even helped me save installing unnecessary tools at work, after all, some environment variable Settings are tedious, right?
How to use it?
It's essentially a tool library, but if you want to use it directly, you can just use the compiled ones here.