ziwon / viproxy

Go TCP proxy library that translates between AF_INET and AF_VSOCK.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

VIProxy

The VIProxy package implements a TCP proxy that translates between AF_INET and AF_VSOCK connections. The proxy takes as input two addresses, one being AF_INET and the other being AF_VSOCK. The proxy then starts a TCP listener on the in-address and once it receives an incoming connection to the in-address, it establishes a TCP connection to the out-addresses. Once both connections are established, the proxy copies data back and forth.

The example directory contains a simple example of how one would use viproxy.

About

Go TCP proxy library that translates between AF_INET and AF_VSOCK.

License:Mozilla Public License 2.0


Languages

Language:Go 97.4%Language:Makefile 2.6%