Tunneling service for Invisible Man applications (uses tun2socks and wintun)
Invisible Man TUN is an open-source and free service that allows you to tunnel all of your system's traffic. It uses tun2socks and wintun.
This service creates the network interface and sets routes automatically.
If you just want to use this service:
InvisibleMan-TUN -port={port}
But if you want to get the source of the service, follow these steps:
git clone "https://github.com/InvisibleManVPN/InvisibleMan-TUN.git"
cd InvisibleMan-TUN
/InvisibleMan-TUN
and /TUN-Wrapper
directories.
tun2socks.exe
./InvisibleMan-TUN
and /TUN-Wrapper
directories.
wintun.dll
.tun.dll
file and copy to the /InvisibleMan-TUN
directory:
cd TUN-Wrapper
go build --buildmode=c-shared -o tun.dll -trimpath -ldflags "-s -w -buildid=" .
copy tun.dll ..\InvisibleMan-TUN
dotnet run -port={port}
After running the service on a specific port, you need to connect to the service via a socket
. So, you should open a socket
to the chosen port
. This is the port that allows your application and service to communicate with each other. Then you can use commands to control the service. Currently, we have two valid commands:
enable
: Enables the tunneling service and set a network interface.
-command=enable -device={device} -proxy={ip}:{port} -address={address} -server={server} -dns={dns}
disable
: Disables the tunneling service and remove the network interface.
-command=disable