hwdsl2 / setup-ipsec-vpn

Scripts to build your own IPsec VPN server, with IPsec/L2TP, Cisco IPsec and IKEv2
Other
25.38k stars 6.33k forks source link

android can access L2TP vpn seccuess,and can access internal ,but it can not access internet #1062

Closed olivinelee closed 2 years ago

olivinelee commented 2 years ago

Checklist

Describe the issue mac ,IOS,Windows is well, but android can access L2TP vpn seccuess,and can access internal ,but it can not access internet

To Reproduce Steps to reproduce the behavior:

  1. Android access l2tp vpn scuess
  2. test access the internal services,eg:print server,scuess
  3. test access the internet,eg:www.baidu.com,and others, failed

Expected behavior A clear and concise description of what you expected to happen.

Logs Check logs and VPN status, and add error logs to help explain the problem, if applicable.

Server (please complete the following information)

Client (please complete the following information)

hwdsl2 commented 2 years ago

@olivinelee Hello! Android clients worked fine in my tests. This could be a DNS or MTU/MSS issue. Please try this fix [1]. Or you may switch to use different DNS server(s) [2]. You may also try IKEv2 mode [3] (recommended) or IPsec/XAuth mode [4].

[1] https://github.com/hwdsl2/setup-ipsec-vpn/blob/master/docs/clients.md#android-mtumss-issues [2] https://github.com/hwdsl2/setup-ipsec-vpn/blob/master/docs/advanced-usage.md#use-alternative-dns-servers [3] https://github.com/hwdsl2/setup-ipsec-vpn/blob/master/docs/ikev2-howto.md [4] https://github.com/hwdsl2/setup-ipsec-vpn/blob/master/docs/clients-xauth.md

olivinelee commented 2 years ago

@hwdsl2 i have already fixed the mtumss accroading to the [1] ,and change dns ,it do not work。 after testing,dns can reslov the website, i think the android doesn't have correct route. but ios ,mac ,windows is ok..

hwdsl2 commented 2 years ago

@olivinelee In that case please instead try IKEv2 mode (recommended) or IPsec/XAuth mode, as mentioned above.