Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker deploy success but iphone failed to connect #18

Open
siu5 opened this issue May 18, 2016 · 1 comment
Open

docker deploy success but iphone failed to connect #18

siu5 opened this issue May 18, 2016 · 1 comment

Comments

@siu5
Copy link

siu5 commented May 18, 2016

I've deploy to carina by rackspaces successful,but after install ikev2-vpn.mobileconfig on iphone it failed to connect to server.
Deploy command:
C:\docker>docker run --detach --name ike --net wordnet --publish 500:500/udp --publish 4500:4500/udp gaomd/ikev2-vpn-server:0.3.0
ed67fa63abd6b0500fc83b875b01313c730e32644ee2951a487a0030e496fb08

C:\docker>docker run -i -t --rm --volumes-from ike -e "HOST=xxx.xxx.xxx.xxx" gaomd/ikev2-vpn-server:0.3.0 generate-mobileconfig > ikev2-vpn.mobileconfig
//_xxx.xxx.xxx.xxx is the ip address,like above_********//
C:\docker>docker.exe port ike
4500/udp -> xxx.xxx.xxx.xxx:4500
500/udp ->xxx.xxx.xxx.xxx:500

C:\docker>docker.exe port ike 500/udp
xxx.xxx.xxx.xxx:500

C:\docker>docker.exe port ike 4500/udp
xxx.xxx.xxx.xxx:4500

C:\docker>docker.exe ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
ed67fa63abd6 gaomd/ikev2-vpn-server:0.3.0 "/bin/sh -c /usr/bin/" 9 minutes ago Up 9 minutes xxx.xxx.xxx.xxx:500->500/udp, xxx.xxx.xxx.xxx:4500->4500/udp 55966311-6bca-46d4-9c11-8ae21f64d1a4-n1/ike
17efb3c6d7f0 carina/consul "/entrypoint.sh agent" 36 minutes ago Up 36 minutes 55966311-6bca-46d4-9c11-8ae21f64d1a4-n1/carina-svcd

It seems deploy successful,but iphone failed to connect after install the config file ikev2-vpn.mobileconfig.
Can you see what is wrong?

@gaomd
Copy link
Owner

gaomd commented May 19, 2016

Seems no problem, try to monitor realtime logs using docker logs -f ike, and make sure there are incoming connections while you connect on your iPhone.

If there are no incoming connections, maybe it's your platform's firewall that is blocking certain ports?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants