mirror of
https://github.com/hwdsl2/docker-ipsec-vpn-server.git
synced 2026-04-26 01:55:53 +03:00
[GH-ISSUE #157] Android 9 connects to server via IPSec/XAuth, but doesn't have any traffic. #141
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @shaomeng on GitHub (Aug 6, 2019).
Original GitHub issue: https://github.com/hwdsl2/docker-ipsec-vpn-server/issues/157
Summary:
I set up the vpn server on a raspberry pi using docker. Android 9 shows the VPN is successfully connected in IPSec/XAuth mode, but the phone fails to open any website or perform any Google Search.
Hardware and software:
/etc/ipsec.conffollowing steps. Note that Android 9 does NOT have aBackward compatible modeas the screenshot shows.The logs from LibreSwan is attached.
I'm thinking this issue might be related to issue 595 and 584 on the other repo.
Appreciate any help!
xauth.log.gz
@shaomeng commented on GitHub (Aug 6, 2019):
An update, the VPN actually works well if my phone is connected to wifi, and the problem described above only occurs when it connects to LTE network. My phone is on TMobile network...
@hwdsl2 commented on GitHub (Aug 8, 2019):
@shaomeng Hello! As your T-Mobile LTE IPv4 address is from the subnet
192.0.0.0/24, try adding it to thevirtual-privateline in/etc/ipsec.conf, like so:To make this change to
/etc/ipsec.conf, you may need to rebuild the Docker image from source and re-create the Docker container. Alternatively, start a Bash shell in the container and edit this file, then comment out the relevant parts of/opt/src/run.shto avoid overwriting your changes after container restart.Let us know if this works. More background info can be found under the "virtual-private" keyword in this manual [1].
[1] https://libreswan.org/man/ipsec.conf.5.html
@shaomeng commented on GitHub (Aug 9, 2019):
Hi @hwdsl2 , I made the changes you suggested to
/etc/ipsec.conf, and also modified/opt/src/run.shto be like:Then I executed
service ipsec restartinside of the container. The problem remains.Also, I wonder why you decide my TMobile IPV4 address is from the subnet of
192.0.0.0/24, since when I typewhat's my ipon google, it clearly shows a non-192.168.x.x address...@hwdsl2 commented on GitHub (Aug 9, 2019):
@shaomeng Thanks for the update. The logs you attached show the T-Mobile IP of 192.0.0.4. Your issue might be related to https://github.com/hwdsl2/setup-ipsec-vpn/issues/476 where the user is unable to connect from T-Mobile network due to the device having only an IPv6 address. I suggest that you ask the VPN experts on the Libreswan users mailing list.
@shaomeng commented on GitHub (Aug 9, 2019):
Hi @hwdsl2 , really appreciate your help. I looked at the discussion on issue 476, and it's very similar to mine. Also, I should report that when I type
what's my ipin Google on TMobile, it does return an IPV6 address on the Google page, and I only know my IPV4 address from one of the 3rd party sites. In this case, I think we could conclude that LibreSwan or this server setup doesn't support IPV6 very well...Thanks again for the very easy to use docker image!
@hwdsl2 commented on GitHub (Aug 9, 2019):
@shaomeng You’re welcome. Based on our discussion, I think this is a known issue with Libreswan and IPv6 only networks such as T-Mobile. Closing this issue and FYI @letoams.