[GH-ISSUE #214] connection attemp failed--ios13 #198

Closed
opened 2026-03-02 07:44:42 +03:00 by kerem · 1 comment
Owner

Originally created by @meitianjinbu on GitHub (Nov 19, 2020).
Original GitHub issue: https://github.com/hwdsl2/docker-ipsec-vpn-server/issues/214

deploy it on local pc.
docker-compose run the image.
yml:
version: '3'
services:
vpn:
image: hwdsl2/ipsec-vpn-server
restart: always
env_file:
- ./vpn.env
ports:
- "500:500/udp"
- "4500:4500/udp"
privileged: true
hostname: ipsec-vpn-server
container_name: ipsec-vpn-server
network_mode: host

Originally created by @meitianjinbu on GitHub (Nov 19, 2020). Original GitHub issue: https://github.com/hwdsl2/docker-ipsec-vpn-server/issues/214 deploy it on local pc. docker-compose run the image. yml: version: '3' services: vpn: image: hwdsl2/ipsec-vpn-server restart: always env_file: - ./vpn.env ports: - "500:500/udp" - "4500:4500/udp" privileged: true hostname: ipsec-vpn-server container_name: ipsec-vpn-server network_mode: host
kerem closed this issue 2026-03-02 07:44:42 +03:00
Author
Owner

@hwdsl2 commented on GitHub (Nov 19, 2020):

@meitianjinbu Hello! Please enable Libreswan logs [1], try to re-connect the VPN, then check the logs for errors. If no new logs appear after re-connecting, then traffic did not reach your VPN server.

If you deploy on local PC, be sure to set up port forwarding on your (home) router to forward both UDP port 500 and UDP port 4500 to your PC's local IP. Also please consider removing "network_mode: host" from your configuration, as this mode currently has some issues #207.

[1] https://github.com/hwdsl2/docker-ipsec-vpn-server#enable-libreswan-logs

<!-- gh-comment-id:730468221 --> @hwdsl2 commented on GitHub (Nov 19, 2020): @meitianjinbu Hello! Please enable Libreswan logs [1], try to re-connect the VPN, then check the logs for errors. If no new logs appear after re-connecting, then traffic did not reach your VPN server. If you deploy on local PC, be sure to set up port forwarding on your (home) router to forward both UDP port 500 and UDP port 4500 to your PC's local IP. Also please consider removing "network_mode: host" from your configuration, as this mode currently has some issues #207. [1] https://github.com/hwdsl2/docker-ipsec-vpn-server#enable-libreswan-logs
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/docker-ipsec-vpn-server#198
No description provided.