mirror of
https://github.com/hwdsl2/docker-ipsec-vpn-server.git
synced 2026-04-26 10:05:48 +03:00
[GH-ISSUE #216] Connecting but not passing any traffic #201
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 @AjayP13 on GitHub (Nov 27, 2020).
Original GitHub issue: https://github.com/hwdsl2/docker-ipsec-vpn-server/issues/216
Checklist
Describe the issue
The VPN is running on Ubuntu 20.04 (Raspberry Pi). I am connecting from a Mac, I tried selecting both the "L2TP" and "Cisco IPSec" options on Mac. In both cases, it will connect successfully, but the traffic is not being passed through the VPN. I have used this Docker image before on servers and it's worked fine. I tried reading some other GitHub issues and it seems like PPP is enabled in the kernel based on running:
which doesn't yield any errors.
Have any idea what's happening or anything else I can try? Thanks.
Logs
Server (please complete the following information)
Client (please complete the following information)
Additional context
N/A
@hwdsl2 commented on GitHub (Nov 27, 2020):
@AjayP13 Hello! This does not seem to be a
pppissue. Can you enable Libreswan logs [1], try re-connecting the VPN, then post the logs here with IPs redacted? Also, how did you create/run the VPN container, did you use the same command as in [2]?In addition, please make sure you are using the latest version of this Docker image, and
VPN_SHA2_TRUNCBUG=yesis NOT set in yourenvfile.[1] https://github.com/hwdsl2/docker-ipsec-vpn-server#enable-libreswan-logs
[2] https://github.com/hwdsl2/docker-ipsec-vpn-server#start-the-ipsec-vpn-server
@AjayP13 commented on GitHub (Nov 27, 2020):
Thanks for the quick reply.
Yes, I am running the latest Docker image and do not have that env variable set. I am running it exactly as how it is shown in the link.
Here are the libreswan logs:
@AjayP13 commented on GitHub (Nov 27, 2020):
The previous log was from connecting from my laptop on the same WiFi network as the VPN Ubuntu server. Here's my laptop connecting from a mobile 4G tether (connects but still no traffic pass-through) in case that makes a difference:
@hwdsl2 commented on GitHub (Nov 27, 2020):
@AjayP13 Your Libreswan logs look normal. For macOS, make sure that the "Send all traffic over VPN connection" option is enabled, and check the service order. See [1] for more details. Let me know if this fixes the issue for you.
[1] https://github.com/hwdsl2/setup-ipsec-vpn/blob/master/docs/clients.md#macos-send-traffic-over-vpn
@AjayP13 commented on GitHub (Nov 27, 2020):
Awesome, that worked. Thanks a lot, it's a great project! I isolated it to the service order being the problem here for future reference.