https://github.com/invisiblemanvpn/invisibleman-tun
Tunneling service for Invisible Man applications (uses tun2socks and wintun)
https://github.com/invisiblemanvpn/invisibleman-tun
Last synced: about 1 year ago
JSON representation
Tunneling service for Invisible Man applications (uses tun2socks and wintun)
- Host: GitHub
- URL: https://github.com/invisiblemanvpn/invisibleman-tun
- Owner: InvisibleManVPN
- License: mit
- Created: 2023-04-12T16:13:22.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2024-10-23T08:10:23.000Z (over 1 year ago)
- Last Synced: 2025-05-07T03:47:15.141Z (about 1 year ago)
- Language: C#
- Size: 79.1 KB
- Stars: 9
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Invisible Man - TUN
> 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](https://github.com/xjasonlyu/tun2socks) and [wintun](https://www.wintun.net).
This service creates the network interface and sets routes automatically.
## Getting started
- If you just want to use this service:
- Download it from [releases](https://github.com/InvisibleManVPN/InvisibleMan-TUN/releases/latest).
- Start the service by this instruction:
```
InvisibleMan-TUN -port={port}
```
- But if you want to get the source of the service, follow these steps:
- Download the [requirements](#requirements)
- Clone a copy of the repository:
```
git clone "https://github.com/InvisibleManVPN/InvisibleMan-TUN.git"
```
- Change to the directory:
```
cd InvisibleMan-TUN
```
- Download one of the versions of [tun2socks](https://github.com/xjasonlyu/tun2socks/releases/latest) based on your OS and extract it to `/InvisibleMan-TUN` and `/TUN-Wrapper` directories.
**NOTE:** After extracting the file, change its name to `tun2socks.exe`.
- Download [wintun](https://www.wintun.net), extract it and copy one of versions based on your OS to `/InvisibleMan-TUN` and `/TUN-Wrapper` directories.
**NOTE:** Make sure the dll file name is `wintun.dll`.
- Make `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
```
- Run the project as administrator:
```
dotnet run -port={port}
```
## Communicate with the service
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
```
## Requirements
- Go https://go.dev/dl/
- .Net https://dotnet.microsoft.com/download
## Contacts
- Web [invisiblemanvpn.github.io](https://invisiblemanvpn.github.io)
- Email [invisiblemanvpn@gmail.com](mailto:invisiblemanvpn@gmail.com)