udp2raw-tunnel
一个将UDP模拟成TCP流量的工具,用来绕过运营商的UDP限速设置(有效性非100%)。
wget https://github.com/wangyu-/udp2raw-tunnel/releases/download/20181113.0/udp2raw_binaries.tar.gz
mkdir udp2raw
tar zxf udp2raw_binaries.tar.gz -C udp2raw
1 2 3 4 5 | # Run at server side: . /udp2raw_amd64 -s -l0.0.0.0:4096 -r 127.0.0.1:7777 -k "passwd" --raw-mode faketcp -a # Run at client side . /udp2raw_amd64 -c -l0.0.0.0:3333 -r44.55.66.77:4096 -k "passwd" --raw-mode faketcp -a |
也可以使用–conf-file加载配置文件
server.conf
1 2 3 4 5 6 7 8 9 10 11 | -s # You can add comments like this # Comments MUST occupy an entire line # Or they will not work as expected # Listen address -l 0.0.0.0:4096 # Remote address -r 44.55.66.77:8888 -a -k passwd --raw-mode faketcp |
1 | . /udp2raw_amd64 --conf- file server.conf |
windows使用https://github.com/wangyu-/udp2raw-multiplatform/releases客户端
非root运行
使用capability赋予权限
1 2 3 4 5 | sudo setcap cap_net_raw+ep udp2raw_amd64 iptables -I INPUT -s 44.55.66.77 -p tcp -m tcp --sport 11111 -j DROP sudo -u nobody . /udp2raw_amd64 -s -l0.0.0.0:4096 -r 44.55.66.77:11111 -k "passwd" --raw-mode faketcp |
由于VPS的问题,可能无法达成预期效果