Coder Social home page Coder Social logo

anhtvc / openvpn-ios Goto Github PK

View Code? Open in Web Editor NEW
118.0 118.0 52.0 42.24 MB

Build OpenVPN source for IOS

License: GNU General Public License v3.0

Shell 0.76% Objective-C 0.40% AGS Script 0.01% C++ 2.83% C 72.99% Makefile 3.88% Batchfile 0.24% Perl 15.11% DIGITAL Command Language 1.60% Prolog 0.15% Assembly 1.69% XS 0.02% M4 0.25% eC 0.03% Emacs Lisp 0.02% HTML 0.01% Scheme 0.02% Roff 0.01%
openvpn openvpn-clientios

openvpn-ios's People

Contributors

anhtvc avatar tuannme avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

openvpn-ios's Issues

Building on iPhone 7

Hello,

I am trying to build this for iPhone 7. I am currently getting:

Undefined symbols for architecture arm64:
  "_openvpn_main", referenced from:
      ___31-[VPNWrapper startWithOptions:]_block_invoke in VPNWrapper.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Is it possible to modify the build so that it builds for arm64.

Thank you,

Joel

AUTH_FAILED

Received control message: AUTH_FAILED
SIGTERM[soft,auth-failure] received, process exiting .

getting auth failed when build app on device

Can't build app on iphone 5s

Undefined symbols for architecture arm64:
"_append_three_string", referenced from:
_add_route in libopenvpn.a(route.o)
"_append", referenced from:
_openvpn_main in libopenvpn.a(openvpn.o)
_write_to_ip_client in libopenvpn.a(route.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

This code need jailbroken iOS Device ?

./pcap-bpf error

After running bash build-libpcap.sh, bpf.h and if_media.h do not exist;
I modified SDKVERSION = "11.2"
Copy files from the dependencies/include/net directory to
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/usr/include/net/
Now I've encountered the error in the picture below。

b e vx hf510rrgq x5u a

Xcode 9.0.1 does not compile

I use Xcode 9.0.1, but it dos not have bpf.h and if_media.h.

~/OpenVPN-IOS ❯❯❯ xcode-select -print-path                                                                 ⏎
/Applications/Xcode.app/Contents/Developer
~/OpenVPN-IOS ❯❯❯ ll /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/include/net/
total 48
-r--r--r--  7 lilo  staff   4.1K Sep 30 09:24 ethernet.h
-r--r--r--  7 lilo  staff    15K Sep 30 09:24 if.h
-r--r--r--  7 lilo  staff   5.0K Sep 30 09:13 if_dl.h
-r--r--r--  7 lilo  staff   6.5K Sep 30 09:02 if_types.h
-r--r--r--  7 lilo  staff   9.2K Sep 30 09:02 if_var.h
-r--r--r--  7 lilo  staff   4.5K Sep 30 09:13 net_kev.h
-r--r--r--  7 lilo  staff    15K Sep 30 08:53 pfkeyv2.h
~/OpenVPN-IOS ❯❯❯ ll /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/usr/include/net
total 48
-r--r--r--  7 lilo  staff   4.1K Sep 30 09:24 ethernet.h
-r--r--r--  7 lilo  staff    15K Sep 30 09:24 if.h
-r--r--r--  7 lilo  staff   5.0K Sep 30 09:13 if_dl.h
-r--r--r--  7 lilo  staff   6.5K Sep 30 09:02 if_types.h
-r--r--r--  7 lilo  staff   9.2K Sep 30 09:02 if_var.h
-r--r--r--  7 lilo  staff   4.5K Sep 30 09:13 net_kev.h
-r--r--r--  7 lilo  staff    15K Sep 30 08:53 pfkeyv2.h
~/OpenVPN-IOS ❯❯❯

Does it mean couldn't build libpcap using Xcode 9 ?

My environment is: macOS Sierra 10.12.6 and Xcode 9.0.1

FQDN based split tunnel.

Does it support FQDN based split tunnel? Since there is no direct API to support FQDN split tunnel.
Please suggest.

Can build .sh files

cp: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.2.sdk/usr/include/net/bpf.h: No such file or directory
after bash build-libpcap.sh

Can this project run on real device?

Hi,AnhTVc,
Apple refuses to allow people to use the VPN framework unless they sign some sort of NDA. Need this project sign some sort of NDA to run on real device?Thanks~

architecture x86_64

my device is iphone se , and i get a error :Undefined symbols for architecture x86_64:
"_openvpn_main", referenced from:
___31-[VPNWrapper startWithOptions:]_block_invoke in VPNWrapper.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation).

could you send to fixed the source to my email [email protected] ?? thanks

error build-libpcap.sh

it return error in this line
/Applications/Xcode.app/Contents/Developer/usr/bin/gcc -O -fno-common -g -O0 -D__APPLE_USE_RFC_3542 -arch i386 -fPIE -miphoneos-version-min=6.0 -I/Users/MYUSER/Downloads/OpenVPN-IOS-master/dependencies/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk -I. -DHAVE_CONFIG_H -D_U_="attribute((unused))" -g -O0 -D__APPLE_USE_RFC_3542 -arch i386 -fPIE -miphoneos-version-min=6.0 -I/Users/MYUSER/Downloads/OpenVPN-IOS-master/dependencies/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk -c ./pcap-bpf.c

AND THIS IS THE ERROR
In file included from ./pcap-bpf.c:106:
/Users/MYUSER/Downloads/OpenVPN-IOS-master/dependencies/include/net/bpf.h:75:10: fatal error: 'pcap/export-defs.h' file not found
#include <pcap/export-defs.h>
^~~~~~~~~~~~~~~~~~~~
1 error generated.
make: *** [pcap-bpf.o] Error 1
make: *** Waiting for unfinished jobs....

How to make LZO enabled in ovpn

I need to enable lzo, I define "ENABLE_LZO" in syshead.h and execute "bash build-openvpn.sh", but some errors was happened, it seems some lzo packages was absent.

I would like to know how to set "comp-lzo" in tcp.ovpn and import it successfully?

Errors after define "ENABLE_LZO" in syshead.h:

In file included from comp.c:35:
In file included from ./comp.h:99:
./lzo.h:122:3: error: unknown type name 'lzo_voidp'
lzo_voidp wmem;
^
1 error generated.
make[3]: *** [comp.o] Error 1
make[3]: *** Waiting for unfinished jobs....
In file included from compstub.c:35:
In file included from ./comp.h:99:
./lzo.h:122:3: error: unknown type name 'lzo_voidp'
lzo_voidp wmem;
^
1 error generated.
make[3]: *** [compstub.o] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Missing parameters

Unrecognized option or missing parameter(s) in [CMD-LINE]:1: ovpn (2.3_git)
Use --help for more information.

编译报错

Build input file cannot be found: '/Users/spinery/Downloads/OpenVPN-IOS-master/Submodules/openvpn/src/openvpn/util.c'

How to enter Private Key Password ?

Dear AnhTVc,

You are doing GREAT!., We love to know your project is working well.

Our OpenVPN server does not use username and password authentication and uses only Private Key.
How can I authenticate with private key ?

When I run the app I got messages as below:

-> Enter Private Key Password:
-> WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this
-> Error: private key password verification failed
-> Exiting due to fatal error

Is there a way to authenticate with Private Key ?

Thank you so much.

Error XCode

Undefined symbols for architecture arm64:
  "_openvpn_main", referenced from:
      ___31-[VPNWrapper startWithOptions:]_block_invoke in VPNWrapper.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

[email protected]

util.c

Build input file cannot be found: '/OpenVPN-IOS-master/Submodules/openvpn/src/openvpn/util.c'

TLS Error: TLS handshake failed

Hi AnhTVc,

Sorry for bothering you,

I have finished building the openvpn-skrver (your full source code) with Xcode 9.4.1 for iOS10.3. However, when I tested on my iPhone (iPhone 6s), it failed with the following error:

Fri Jul 20 09:24:19 2018 OpenVPN 2.3_git arm-apple-darwin [SSL (OpenSSL)] [MH] [IPv6] built on Jun 16 2017
Fri Jul 20 09:24:19 2018 Socket Buffers: R=[196724->65536] S=[9216->65536]
Fri Jul 20 09:24:19 2018 NOTE: UID/GID downgrade will be delayed because of --client, --pull, or --up-delay
Fri Jul 20 09:24:19 2018 UDPv4 link local: [undef]
Fri Jul 20 09:24:19 2018 UDPv4 link remote: [AF_INET]192.168.0.118:1194
Fri Jul 20 09:25:19 2018 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Fri Jul 20 09:25:19 2018 TLS Error: TLS handshake failed
Fri Jul 20 09:25:19 2018 SIGUSR1[soft,tls-error] received, process restarting
Fri Jul 20 09:25:19 2018 Restart pause, 2 second(s)
.............

About vpn server (192.168.0.118), I configured to make it support UDP via port 1194. Both vpnserver and the iPhone can ping together successfully.
Could you teach me how to test it?

Thanks,

Help ,i have errors.

When I exec. bash build-openvpn.sh, I got errors like

......
make[2]: *** No rule to make target .gitignore', needed by all-am'. Stop.
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Will you give some help?

OpenVPNConnect

I launched the OpenVPNConnect(installed from appstore) app from my native iOS application using UIApplication.shared.canOpenURL, is it possible to get notification of events from OpenVPNConnect to my native iOS application...? is it possible to notify my native iOS application of the events taking place in OpenVPNConnect...? and how can we do it if there is a possibility....?

xcode 9.2, device ios 11.2 found error

Undefined symbols for architecture arm64:
"_append_three_string", referenced from:
_add_route in libopenvpn.a(route.o)
"_append", referenced from:
_openvpn_main in libopenvpn.a(openvpn.o)
_write_to_ip_client in libopenvpn.a(route.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Showing Recent Messages
"_append_three_string", referenced from:

  _add_route in libopenvpn.a(route.o)

"_append", referenced from:

  _openvpn_main in libopenvpn.a(openvpn.o)


  _write_to_ip_client in libopenvpn.a(route.o)

ld: symbol(s) not found for architecture arm64

clang: error: linker command failed with exit code 1 (use -v to see invocation)

Would you please help me out.

OpenVPN Error - EXC_BAD_ACCESS (code=1, address=0x68)

I am getting the below mentioned error, when I install the app

Thu Jul 4 19:07:56 2019 OpenVPN 2.3_git arm-apple-darwin [SSL (OpenSSL)] [MH] [IPv6] built on Jun 16 2017
Thu Jul 4 19:07:56 2019 WARNING: file '/var/containers/Bundle/Application/18C48C87-E43F-463A-867A-56DB5A608343/openvpn.app/pass.txt' is group or others accessible
Thu Jul 4 19:07:56 2019 Control Channel Authentication: tls-auth using INLINE static key file
Thu Jul 4 19:07:56 2019 Attempting to establish TCP connection with [AF_INET]45.95.5.157:1194 [nonblock]
Thu Jul 4 19:07:57 2019 TCP connection established with [AF_INET]45.95.5.157:1194
Thu Jul 4 19:07:57 2019 TCPv4_CLIENT link local: [undef]
Thu Jul 4 19:07:57 2019 TCPv4_CLIENT link remote: [AF_INET]45.95.5.157:1194
Thu Jul 4 19:07:57 2019 WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this
Thu Jul 4 19:08:01 2019 [vpnpfscln] Peer Connection Initiated with [AF_INET]45.95.5.157:1194
Thu Jul 4 19:08:04 2019 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Thu Jul 4 19:08:04 2019 /sbin/ifconfig delete
Thu Jul 4 19:08:04 2019 NOTE: Tried to delete pre-existing tun/tap instance -- No Problem if failure
Thu Jul 4 19:08:04 2019 /sbin/ifconfig 10.0.90.2 10.0.90.2 netmask 255.255.255.0 mtu 1500 up

How I can Fix this issue, Please Suggest.
Thanks.

private key password verification failed

I am prompted for this error at run time.

private key password verification failed
Exiting due to fatal error

Where is this parameter set?
How can I solve this problem?

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.