rustdesk / rustdesk/rustdesk-server

openwrt multiple public network interfaces can only visit one of it

Open
#161 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Rust
Stars
10.4k
Forks
2.6k
PR merge metrics
No merged PRs in 30d

Description

Describe the bug
openwrt multiple interface can only visit one of it, It could be a problem with UDP binding.

Describe the environment
rustdesk-server 1.1.6-2
OpenWrt 22.03

How to Reproduce the bug
I have an OpenWrt router, there are 3 public network interfaces pppoe0, pppoe1, pppoe2, through nftables to input and output from an interface to a certain interface, but hbbs seems to be bound to the interface pppoe0 corresponding to the default route, from the public network can only access pppoe0, and access pppoe1, pppoe2 does not work, through wireshark packet capture to find hbbs 21116 UDP returns always use the address of pppoe0, and then I change the output address to pppoe1 or pppoe2 through the nftables' nat, which still doesn't work, while other applications such as openvpn can access pppoe1 and pppoe2 in this way.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at hbbs's UDP binding and network handling, then reproduce with OpenWrt 22.03 and the three public interfaces pppoe0, pppoe1, and pppoe2. Done means clients can access hbbs through pppoe1 and pppoe2 as well as pppoe0, with UDP replies using the corresponding interface address.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.