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

fix: fake-ip TUN模式和游戏模式下的转发问题 #1357

Merged
merged 2 commits into from
Apr 16, 2021
Merged

fix: fake-ip TUN模式和游戏模式下的转发问题 #1357

merged 2 commits into from
Apr 16, 2021

Conversation

cubarco
Copy link
Contributor

@cubarco cubarco commented Apr 15, 2021

  • fix: fake-ip TUN和游戏模式时tailscale转发失效
  • fix: fake-ip TUN模式或游戏模式时,端口转发失效

添加tailscale的网段到localnetwork
去程包会走prerouting,但是openclash表没有规则来RETURN,这里根据内网ip、内网服务端口来添加规则。
@cubarco
Copy link
Contributor Author

cubarco commented Apr 15, 2021

Tailscale的地址范围:

More specifically, we assign addresses in the 100.64.0.0/10 subnet (from 100.64.0.0 to 100.127.255.255). This is called the “Carrier Grade NAT” (CGNAT) address space, reserved by RFC6598, IANA-Reserved IPv4 Prefix for Shared Address Space.

https://tailscale.com/kb/1015/100.x-addresses

@vernesong vernesong merged commit 612e90c into vernesong:master Apr 16, 2021
@openips
Copy link

openips commented Apr 16, 2021

需要合并到dev吗

github-actions bot added a commit to longcat99/OpenClash that referenced this pull request Apr 16, 2021
* https://github.com/vernesong/OpenClash:
  fix: fake-ip TUN模式和游戏模式下的转发问题 (vernesong#1357)
  change: compatible with koolshare firmware with no capsh library dependent
  change: keep settings include rules while subscribing
solomonricky pushed a commit to solomonricky/OpenClash that referenced this pull request May 6, 2022
* fix: fake-ip TUN和游戏模式时tailscale转发失效

添加tailscale的网段到localnetwork

* fix: fake-ip TUN模式或游戏模式时,端口转发失效

去程包会走prerouting,但是openclash表没有规则来RETURN,这里根据内网ip、内网服务端口来添加规则。
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

Successfully merging this pull request may close these issues.

None yet

3 participants