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

Not working in iOS #101

Closed
pyaehein opened this issue May 12, 2022 · 6 comments
Closed

Not working in iOS #101

pyaehein opened this issue May 12, 2022 · 6 comments

Comments

@pyaehein
Copy link

Hello,

Example app is not working in iOS.
I used latest release version (not master branch).

I already opened Personal VPN and Network Extensions in capabilities.
Status shows "connected" but I don't see any VPN sign.
And then I clicked status updated, It's show now "disconnected"

Btw: It's working well in Android. Same server same config.

@ctrysbita
Copy link
Member

Have you tried the master branch?

@pyaehein
Copy link
Author

Yes, I already tried.
But master branch give me #99 this issue too.

@ekingunoncu
Copy link

ekingunoncu commented May 15, 2022

Hi, any updates?
Ios is not working in my environment too. I tried both a simulator and a real device. I can see "VPN started successfully.." on the logs but in reality, I wasn't able to connect through my VPN server. By the way, with the same codebase, I don't have any issue on android devices.

@ekingunoncu
Copy link

Searching for the cause of the error on clientside was frustrating without knowing it was because of some server config.
I found the issue Apple seems to not support some cipher algorithms.

For strongswan there is a config file to select the right cipher algorithms.
In the file /etc/ipsec.conf change the parameters below like this;

  ike=aes256-sha2_256-modp2048
  esp=aes256-sha2_256

After changing the file make sure you restart strongswan using below command;
sudo ipsec restart

@fluxion8
Copy link

Searching for the cause of the error on clientside was frustrating without knowing it was because of some server config. I found the issue Apple seems to not support some cipher algorithms.

For strongswan there is a config file to select the right cipher algorithms. In the file /etc/ipsec.conf change the parameters below like this;

  ike=aes256-sha2_256-modp2048
  esp=aes256-sha2_256

After changing the file make sure you restart strongswan using below command; sudo ipsec restart

Worked. Thank you

@syedabdulbasit1
Copy link

@ekingunoncu please would you give me the code I am stuck in IOS configuration

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

5 participants