docker-ikev2-vpn-server icon indicating copy to clipboard operation
docker-ikev2-vpn-server copied to clipboard

I could not connect to it in docker machine on mac

Open yamajik opened this issue 9 years ago • 3 comments

I did like this.

bash-3.2$ docker run -d --name ikev2-vpn-server --privileged -p 500:500/udp -p 4500:4500/udp gaomd/ikev2-vpn-server:0.2.2
0419952b7b55d80712562202421f27141695244f7ac2894969bb7be722904021
bash-3.2$ docker-machine ip default
192.168.99.100
bash-3.2$ docker run -i -t --rm --volumes-from ikev2-vpn-server -e "HOST=192.168.99.100" gaomd/ikev2-vpn-server:0.2.2 generate-mobileconfig > ikev2-vpn.mobileconfig

Then I double-click the mobileconfig file. However, I could not connect via it.

MBP 2014 OS: EI Capitan 10.11.2

yamajik avatar Jan 08 '16 13:01 yamajik

Both failed on my vps

yamajik avatar Jan 08 '16 13:01 yamajik

I could basically reproduce your situation, but it works perfectly on the VPS (when connecting from the Internet), I guess this problem was related to IP routing on the localhost, when connecting from local machine to local virtual (docker) machine.

I should have investigate more in the future, leave this issues open for more feedbacks.

gaomd avatar Mar 19 '16 02:03 gaomd

SquirrelMajik, could you open your ikev2-vpn.mobileconfig in a text editor and check the first few lines for an error message.

hcal avatar Aug 26 '16 12:08 hcal