Comments (4)
$$ server同时监听在一个tcp和一个udp端口,比如443。用udpspeeder把远程的udp 443映射到本地的的1234,用kcptun把远程的tcp 443映射到本地的1234。 然后在$$ client把端口填成1234,ip填成127.0.0.1,就可以了。
from udpspeeder.
好的,解决了,谢谢您
from udpspeeder.
@wangyu-
我想问一下这个TCP和UDP分别映射是如何实现的?
/etc/kcptun/server_linux_amd64 -t "127.0.0.1:16003" -l ":16999" -mode fast2 -mtu 1300
/etc/speederv2/speederv2_amd64 -s -l0.0.0.0:16999 -r127.0.0.1:16003 -f20:10 -k "passwd"
S**的端口开在了16003.
我在服务端同时运行这2行代码,会出线端口冲突.
是用iptables?
能否给条具体代码说明一下
from udpspeeder.
@wjszh668
/etc/kcptun/server_linux_amd64 -t "127.0.0.1:16003" -l ":16999" -mode fast2 -mtu 1300
/etc/speederv2/speederv2_amd64 -s -l0.0.0.0:16999 -r127.0.0.1:16003 -f20:10 -k "passwd"
你这里面的16999只是个中间端口,并不需要kcptun和udpspeeder的相同。这个两个16999都是udp,当然会冲突。
$$ server同时监听在一个tcp和一个udp端口,比如443。用udpspeeder把远程的udp 443映射到本地的的1234,用kcptun把远程的tcp 443映射到本地的1234。 然后在$$ client把端口填成1234,ip填成127.0.0.1,就可以了。
这里面并没提到中间端口,中间端口随意选的。
from udpspeeder.
Related Issues (20)
- 请问下是否有办法只加速单个端口,而不是全部流量吗 HOT 2
- Using send() on UDP socket -- is it intended? HOT 1
- 一直有20ms延迟,传输性能很差 HOT 3
- 反射
- [Feature] reverse connectivity support.
- vxlan 是否支持?
- Remove C++ dependency HOT 1
- 是否可以通过开启多个socket加速 HOT 1
- wireguard本地client端,无法接受到数据,如何解决
- UDPspeeder+udp2raw前面还需要$$吗?
- iperf不触发udpspeeder连接?
- 大佬是否写错了? HOT 2
- 原理确实比我牛逼多了,就是代码写的真jb烂
- 编译了一个优化版本 HOT 7
- Add the ability to not bind() and not connect(), at least on client mode. It's UDP anyway.
- How to configure UDPspeeder for Wireguard? HOT 4
- How to use UDPspeeder HOT 2
- 本项目能否运行在Render或Replit项目中? HOT 1
- 请问下, 有啥法子能直接转发tcp的流量? HOT 1
- could you please add some systemd auto run script? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from udpspeeder.