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

DNS failed to forward after network switch #2180

Closed
yzou opened this issue Mar 28, 2019 · 13 comments

Comments

Projects
None yet
3 participants
@yzou
Copy link

commented Mar 28, 2019

Describe the bug
DNS packet is not forward to configured DNS server after network switch.

To Reproduce
Steps to reproduce the behavior:

  1. Connetc a server under wifi or mobile data/4G
  2. Switch network to mobile data/4G or wifi
  3. Some site maybe failed to resolve and open such as Twitter, baidu.com
  4. On ss-server, we can see DNS packet sent to new Network's DNS server such as 192.168.1.1 or China Mobile's 221.179.155.193
  5. You can switch to different wifi with different DNS config, and see DNS packets sent to the new network's DNS server on ss-server

Expected behavior
DNS packets should be forwarded to my configured DNS server 8.8.8.8

Screenshots
If applicable, add screenshots to help explain your problem.

Smartphone (please complete the following information):

  • Android/Chrome OS version: EMUI 9.0.0, Android 9
  • Device: Huawei P20 Pro
  • Version: shadowsocks v4.7.3
  • Last version that did not exhibit the issue: [not applicable]

Configuration
Put an x inside the [ ] that applies.

  • [ x] IPv4 server address
  • IPv6 server address
  • [ x] Client IPv4 availability
  • Client IPv6 availability
  • Encrypt method:
  • Route
    • [x ] All
    • Bypass LAN
    • Bypass China
    • Bypass LAN & China
    • GFW List
    • China List
    • Custom rules
  • [x ] IPv6 route
  • Apps VPN mode
    • Bypass mode
  • Remote DNS: 8.8.8.8
  • DNS over UDP, this option doesn't matter
  • Plugin configuration (if applicable):
  • Auto Connect
  • TCP Fast Open
  • If you're not using VPN mode, please supply more details here:

Additional context
Switch to wifi from 4G network
image

Switch back to 4G from wifi
image

wlan0 interface's dns:
image

tun0's dns:
image

rmnet0's dns:
image

@yzou yzou referenced this issue Mar 28, 2019

Closed

移动4G cmnet 连不上 #2143

4 of 16 tasks complete
@Mygod

This comment has been minimized.

Copy link
Contributor

commented Mar 29, 2019

Welp. This is definitely a vendor bug. I don't think other VPN will work properly on your phone either.

@yzou

This comment has been minimized.

Copy link
Author

commented Mar 29, 2019

I'll test on nexus again.

@madeye

This comment has been minimized.

Copy link
Contributor

commented Mar 29, 2019

Could you confirm that VoIP is enabled?

@madeye

This comment has been minimized.

Copy link
Contributor

commented Mar 29, 2019

I cannot reproduce this problem with EMUI 9.0 on China Union network.

Since only CMNET has this issue, I guess it maybe related to VoIP.

So please help to confirm if VoIP enabled. If enabled, please disable it and try again.

@yzou

This comment has been minimized.

Copy link
Author

commented Mar 29, 2019

Yes, the VoLTE is enabled, I have both China Mobile and China Unicom card on my Phone.

@Mygod

This comment has been minimized.

Copy link
Contributor

commented Mar 29, 2019

@madeye I think #2143 and #2180 are two different issues. #2143 does not involve network switch.

@madeye

This comment has been minimized.

Copy link
Contributor

commented Mar 29, 2019

@Mygod Okay.

@yzou could you confirm that if not switching the network, your connection is still fine?

If so, please try to enable autostart mode for shadowsocks in EMUI.

@yzou

This comment has been minimized.

Copy link
Author

commented Mar 29, 2019

I also encountered this issue without a network switch.

If mobile data using my second China Unicom sim card, I didn't see this issue, the HD voice is on the first China Mobile sim card.

@yzou

This comment has been minimized.

Copy link
Author

commented Mar 29, 2019

VoLTE HD calls is enable on SIM 1, China Mobile

@Mygod

This comment has been minimized.

Copy link
Contributor

commented Mar 29, 2019

Please also supply: steps to reproduce without network switch, expected and actual results, over at #2143.

@yzou

This comment has been minimized.

Copy link
Author

commented Mar 29, 2019

Switch mobile data from SIM 2 to SIM 1, the DNS is sending to China Mobile's DNS server again.
image

@madeye

This comment has been minimized.

Copy link
Contributor

commented Apr 11, 2019

Please confirm if this issue is fixed in the latest release.

@yzou

This comment has been minimized.

Copy link
Author

commented Apr 12, 2019

This issue is fixed in 4.7.4.

@yzou yzou closed this Apr 12, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.