Giter Club home page Giter Club logo

Comments (4)

wangyu- avatar wangyu- commented on May 18, 2024

$$ server同时监听在一个tcp和一个udp端口,比如443。用udpspeeder把远程的udp 443映射到本地的的1234,用kcptun把远程的tcp 443映射到本地的1234。 然后在$$ client把端口填成1234,ip填成127.0.0.1,就可以了。

from udpspeeder.

McLeeX avatar McLeeX commented on May 18, 2024

好的,解决了,谢谢您

from udpspeeder.

SacredOath avatar SacredOath commented on May 18, 2024

@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.

wangyu- avatar wangyu- commented on May 18, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.