Hao's Blog
WireGuard+UDPspeeder+Udp2raw-tunnel

1、wireguard server、client配置文件

=== 服务端

[Interface]
PrivateKey = GM6FNjDbR00HIGW0uQ8OJYIlHcqBfdPsU/tgI8aD5FE=
Address = 192.168.0.1/24
ListenPort = 50002
DNS = 8.8.8.8
MTU = 1200

[Peer]
PublicKey = 4FLjX+kbPG3OBj4xtXPa+pHVqLu+gKtXgvn13UFAdEE=
AllowedIPs = 192.168.0.0/24


=== 客户端

[Interface]
PrivateKey = eNxVoH6lYOWPMbW/aSviT3duIEtyYcPXjU6yDMUH0nk=
Address = 192.168.0.2/24
DNS = 8.8.8.8

[Peer]
PublicKey = 5u48GZDvsYFeUhJDKuTHugVn6ERSNB51s6bPuJQRVAY=
Endpoint = 127.0.0.1:12315
AllowedIPs = 0.0.0.0/0, ::0/0
PersistentKeepalive = 25

2、supervisor管理的UDPspeeder+Udp2raw-tunnel配置

=== 服务端

[supervisord]
nodaemon=false

[program:udp2raw]
user=root
directory=/opt/udp2raw
command=/opt/udp2raw/udp2raw_amd64 -s -l 0.0.0.0:50001 -r 127.0.0.1:50000 --raw-mode faketcp -a -k moon5
autorestart=true

[program:udpspeeder]
user=root
directory=/opt/udpspeeder
command=/opt/udpspeeder/speederv2_amd64 -s -l 0.0.0.0:50000 -r 127.0.0.1:50002 -f 10:6 -k "passwd" --mode 0 --timeout 3
autorestart=true

=== 客户端

[supervisord]
nodaemon=false

[program:udp2raw]
user=root
directory=/opt/udp2raw
command=/opt/udp2raw/udp2raw_amd64 -c -l 127.0.0.1:12316 -r your_vps_ip:50001 --raw-mode easyfaketcp -k moon5
autorestart=true

[program:udpspeeder]
user=root
directory=/opt/udpspeeder
command=/opt/udpspeeder/speederv2_amd64 -c -l 0.0.0.0:12315 -r 127.0.0.1:12316 -f 10:6 -k "passwd"  --mode 0 --timeout 3
autorestart=true