Coder Social home page Coder Social logo

ios 连接问题 about one-key-ikev2-vpn HOT 7 CLOSED

quericy avatar quericy commented on July 18, 2024
ios 连接问题

from one-key-ikev2-vpn.

Comments (7)

tisfeng avatar tisfeng commented on July 18, 2024 1

请问一下,远程ID是什么,没看到文档说明啊

from one-key-ikev2-vpn.

quericy avatar quericy commented on July 18, 2024

检查一下/usr/local/etc/ipsec.conf 文件是否正常

from one-key-ikev2-vpn.

freedomlang avatar freedomlang commented on July 18, 2024

@quericy

conn iOS_cert
    keyexchange=ikev2
    fragmentation=yes
    left=%defaultroute
    leftauth=pubkey
    leftsubnet=0.0.0.0/0
    leftcert=server.cert.pem
    right=%any
    rightauth=pubkey
    rightauth2=xauth
    rightsourceip=10.31.2.0/24
    rightcert=client.cert.pem
    auto=add

本来keyexchange是ikev1的,我改了2也是不行。日志里面还是那个样子。

looking for an ike config for .............
resolving 'any' failed: Name or service not known
no IKE config found for.........

IOS上服务器和远程ID都是填VPS的ip了

from one-key-ikev2-vpn.

quericy avatar quericy commented on July 18, 2024

@freedomlang iOS_cert是ikeV1的配置,ikev2用的是conn ios_ikev2 ,且手机需要导入证书
把ipsec.conf的配置信息改成 https://github.com/quericy/one-key-ikev2-vpn/blob/master/one-key-ikev2.sh#L259
两个EOF之间的内容试试

from one-key-ikev2-vpn.

freedomlang avatar freedomlang commented on July 18, 2024

@quericy 忘了说,证书是已经导入到手机了「也就是描述文件」,ipsec.conf的配置信息改成你所说的也还是一样连不上>_<

PS:改完ipsec.conf后,我是reload过的!

from one-key-ikev2-vpn.

quericy avatar quericy commented on July 18, 2024

这种情况确实比较奇怪,建议make uninstall卸载了,清除相关文件,再重新下载最新版本编译安装试试

from one-key-ikev2-vpn.

quericy avatar quericy commented on July 18, 2024

脚本已更新,iOS9/10测试通过,有兴趣的话可以试试

from one-key-ikev2-vpn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.