Skip to content

Strongswan in Docker using vici cannot connect in real-life network #2300

Closed Answered by tobiasbrunner
mariuslp asked this question in Q&A
Discussion options

You must be logged in to vote

RUN apt-get install -y systemd strongswan libstrongswan strongswan-swanctl strongswan-charon charon-systemd;

This installs two IKE daemons, which you generally want to avoid (although, in a Docker container that might not be an issue depending on what's going on with systemd). You could just omit charon-systemd (and systemd I guess) and if you don't use ipsec.conf, just vici, you technically only need strongswan-swanctl and strongswan-charon and start charon directly (no need for ipsec and starter that's pulled in by strongswan via strongswan-starter).

What I really do not understand is why it works in local but fails to work in real-life network.

There might be some external firewall…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by mariuslp
Comment options

You must be logged in to vote
1 reply
@tobiasbrunner
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants