tested:
may support:
TCP / KCP / WS / WSS
AES256 / AES192 / AES128 / XOR / SM4 / TEA / XTEA / Salsa20 / Blowfish
2022/06/16 @ 1.1.0.220616
2022/05/31 @ 1.0.0.220531
2022/05/10 @ 0.0.1
2022/05/09 @ history
Needs Go1.18.2 or higher download
Needs nodejs download
preparation
#clone repository
git clone https://github.com/yaooovesm/tunn.git
#change directory to tunn
cd ./tunn
Compile WebUI
#@ tunn/
#change directory to tunn/webui
cd webui
#dependencies
npm install
#build
npm run build
! after build, move 'dist' to tunn/cmd and rename as 'static'
or
use static.zip
unzip assets/static.zip -d cmd/
Compile Tunn
#dependencies
set GO111MODULE=on
go mod tidy
#change direction to tunn/cmd
cd cmd
# @linux
go build -o tunn
or
# @windows
go build -o tunn.exe
Descriptions
#Hub account
user.Account
#Hub password (auto login if password were set)
user.Password
#authentication server address
auth.Address
#authentication server port
auth.Port
#Hub certification
security.cert
#admin webui address
admin.address
#admin webui port
admin.port
#admin webui user
admin.user
#admin webui password
admin.password
Example
{
"user": {
"Account": "account",
"Password": "password"
},
"auth": {
"Address": "aaa.bbb.ccc",
"Port": 10241
},
"security": {
"cert": "cert.pem"
},
"admin": {
"address": "127.0.0.1",
"port": 8080,
"user": "admin",
"password": "P@ssw0rd"
}
}
! forward function should be enabled, when export network in Linux client
#enable ip forward in kernel
echo 1 > /proc/sys/net/ipv4/ip_forward
#setup iptables
#e.g. iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -j MASQUERADE
iptables -t nat -A POSTROUTING -s [tunn network] -j MASQUERADE
! Windows needs Privileges
! Windows needs download wintun driver with executable file
Start parameters
Example:
# @linux
./tunn -c config.json
or
# @windows
tunn.exe -c config.json
Start up successfully like this
Open your browser
Enter dashboard
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。