Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

udp2raw (client 出发地)-> tinymapper(当tcp中继) -> udp2raw(server 目的地) #21

Open
sklohk opened this issue Dec 15, 2021 · 2 comments

Comments

@sklohk
Copy link

sklohk commented Dec 15, 2021

你好 Mr.wangyu,

我尝试透过 tinymapper 转 udp2raw, 无法成功连接:
Dec 15 12:00:56 raspbian udp2raw_arm[231706]: [2021-12-15 12:00:56][INFO]using port 64365
Dec 15 12:00:56 raspbian udp2raw_arm[231706]: [2021-12-15 12:00:56][INFO]state changed from client_idle to client_tcp_handshake
Dec 15 12:00:56 raspbian udp2raw_arm[231706]: [2021-12-15 12:00:56]INFOsent tcp syn
Dec 15 12:00:56 raspbian udp2raw_arm[231706]: [2021-12-15 12:00:56][INFO]state changed from client_tcp_handshake to client_handshake1
Dec 15 12:00:56 raspbian udp2raw_arm[231706]: [2021-12-15 12:00:56]INFOsent handshake1
Dec 15 12:00:57 raspbian udp2raw_arm[231706]: [2021-12-15 12:00:57]INFOsent handshake1
Dec 15 12:00:58 raspbian udp2raw_arm[231706]: [2021-12-15 12:00:58]INFOsent handshake1
Dec 15 12:01:00 raspbian udp2raw_arm[231706]: [2021-12-15 12:01:00]INFOsent handshake1
Dec 15 12:01:01 raspbian udp2raw_arm[231706]: [2021-12-15 12:01:01]INFOsent handshake1
Dec 15 12:01:01 raspbian udp2raw_arm[231706]: [2021-12-15 12:01:01][INFO]state back to client_idle from client_handshake1

同样的配置, udp2raw (client) -> udp2raw (server), 是可以顺利连接。tinymapper 是在一个固定ip的机器上,如果按以下,是可以连接:
udp2raw(client 出发地) -> [ tinymapper 的位置,改为: ] udp2raw(server 当中继) -> udp2raw(client 当中继) -> udp2raw(server 目的地)
上次你关于 speederv2, tinyvpn 用 mode 0 的指教,使我对udp2raw,speederv2进一步认识,希望你能指导tinymapper当udp2raw中继 的应用。
sk

@wangyu-
Copy link
Owner

wangyu- commented Dec 15, 2021

tinyportmapper是tcp代理,无法容许raw packet正常穿过,转发不了udp2raw。

想要转发udp2raw,典型的方法是在第三台机器上面用iptables规则。

@sklohk
Copy link
Author

sklohk commented Dec 15, 2021

谢谢 Mr.wangyu
按你的指导,直接第三台机器设置portforward,顺利转出。
sk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants