anhtvc / openvpn-ios Goto Github PK
View Code? Open in Web Editor NEWBuild OpenVPN source for IOS
License: GNU General Public License v3.0
Build OpenVPN source for IOS
License: GNU General Public License v3.0
Hello, I have encountered some problems. I found that the confusion is all openvpn, but there is no confusion code of apple client. Can you help me?
build-libssl.sh: line 91: cd: /Users/chunyuyao/Documents/git/OpenVPN-IOS/build/src/openssl-1.0.2j: No such file or directory
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
I jailbroke my ios11, and want a command line openvpn to work in background. So I could use the repo to compile a commandline tool ?
Received control message: AUTH_FAILED
SIGTERM[soft,auth-failure] received, process exiting .
getting auth failed when build app on device
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 ?
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。
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
When I run your project, Xcode tells me that "windows.h" file not found,can you help me ?Thank you
Does it support FQDN based split tunnel? Since there is no direct API to support FQDN split tunnel.
Please suggest.
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
I try only pass DNS on VPN.
Buy i cant push DNS on ios.
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~
its build error can you guide me how to resolve that error
bash build-openvpn.sh
Copying <net/route.h> from iPhoneSimulator
Building without ccache
configure: error: cannot find install-sh, install.sh, or shtool in . "."/.
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
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....
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
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'
<net/route.h>
<net/bpf.h>
Those two files above are removed from iOS 11 SDK and simulator SDK.
https://forums.developer.apple.com/thread/84607
Those API are never supported
can excute the build-openvpn.sh it return always this message
autoreconf: 'configure.ac' or 'configure.in' is required
Hey, would this be allowed on the Appstore? I am currently using another method which is a lot slower - https://itunes.apple.com/nz/app/stealth-vpn/id1358027922?mt=8
The fastest server is another protocol, the stealth servers are the openvpn and they don't work all the time
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.
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)
Build input file cannot be found: '/OpenVPN-IOS-master/Submodules/openvpn/src/openvpn/util.c'
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,
代码不全
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?
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....?
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.
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.
Copying <net/bpf.h>, <net/if_media.h> from iPhoneSimulator
cp: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.2.sdk/usr/include/net/bpf.h: No such file or directory
or change
SDKVERSION="10.2"
to
SDKVERSION="10.3"
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.