Skip to content

Commit 6cb60f5

Browse files
committed
All core
1 parent ac164f4 commit 6cb60f5

File tree

8,939 files changed

+2151188
-87
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

8,939 files changed

+2151188
-87
lines changed

README.md

100644100755
+24-39
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,37 @@
1-
# OpenVPN-IOS
2-
Build OpenVPN source for IOS to Wrapper Objective, run in IOS
3-
Create by AnhTVc
4-
# Step by step
5-
# Clone
6-
$ git clone https://github.com/AnhTVc/OpenVPN-IOS.git
1+
openvpn-server-ios
2+
==================
73

8-
# Install libtool and automake:
4+
Tethering the hard way.
95

10-
$ brew install libtool automake
6+
It turns out that Apple doesn't allow you to use `<net/if_utun.h>` unless you pay them a lot of money. Unfortunately you can't use [tunemu](https://github.com/friedrich/hans/blob/master/src/tunemu.c) either.
117

12-
# Build the dependencies:
13-
14-
$ bash build-libpcap.sh
15-
16-
$ bash build-libssl.sh
17-
18-
$ bash build-openvpn.sh
19-
# clone source hans and openvpn to Submodules.
20-
21-
Link source
22-
23-
https://github.com/chrisballinger/hans/tree/893ac91eaf080b43170b839b22f9086f0dbc648d
24-
25-
https://github.com/chrisballinger/openvpn/tree/0f77573024e69c34ec8a5cbc0744e126ad73de27
26-
# Open project
27-
Open OpenVPN project with Xcode
28-
# Note
29-
# error automake
30-
If build error in cmd: "autoreconf -vi" SAME: Can't locate Autom4te/ChannelDefs.pm in @INC (you ma...
8+
Apple refuses to allow people to use the VPN framework unless they sign some sort of NDA: http://blog.michael.kuron-germany.de/2010/09/ios-4-1-undocumented-vpn-api-used-by-cisco-anyconnect/
319

32-
Fix:
10+
## Setup
3311

34-
- rm '/usr/local/bin/autoconf'
12+
Install GNU libtool and automake:
3513

36-
- brew link --overwrite autoconf
14+
$ brew install libtool automake
15+
16+
Generate a static key and place it in `/configuration`:
3717

38-
- brew link --overwrite --dry-run autoconf
18+
$ openvpn --genkey --secret static.key
19+
20+
Build the dependencies:
3921

40-
# Disable Bitcode
41-
# Apple NDA
42-
Apple refuses to allow people to use the VPN framework unless they sign some sort of NDA: http://blog.michael.kuron-germany.de/2010/09/ios-4-1-undocumented-vpn-api-used-by-cisco-anyconnect/
22+
$ bash build-libssl.sh
23+
$ bash build-openvpn.sh
24+
25+
## Clean
4326

44-
OpenVPN Connect sign NDA with apple because it not public.
27+
To clean the `Submodules/openvpn` build folder:
28+
29+
$ cd /Submodules/openvpn
30+
$ git clean -f && git clean -f -X
31+
32+
## Configuration
4533

46-
Document for NDA OpenVPN with apple
34+
Simplest OpenVPN setup: [Static Key Mini-HOWTO](http://openvpn.net/index.php/open-source/documentation/miscellaneous/78-static-key-mini-howto.html)
4735

48-
https://books.google.com.vn/books?id=O-13CgAAQBAJ past: OpenVPN/OpenVPN Conenct
4936

50-
https://forums.openvpn.net/viewtopic.php?t=21218
5137

52-
Contact me: [email protected]

Submodules/.DS_Store

6 KB
Binary file not shown.

build-libpcap.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
# Choose your libpcap version and your currently-installed iOS SDK version:
2424
#
2525
VERSION="1.4.0"
26-
SDKVERSION="10.2"
26+
SDKVERSION="10.3"
2727
MINIOSVERSION="6.0"
2828

2929
###########################################################################

build-libssl.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
# Choose your openssl version and your currently-installed iOS SDK version:
2424
#
2525
VERSION="1.0.2j"
26-
SDKVERSION="10.2"
26+
SDKVERSION="10.3"
2727
MINIOSVERSION="6.0"
2828
VERIFYGPG=false
2929

build-openvpn.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
###########################################################################
2323
# Choose your openvpn version and your currently-installed iOS SDK version:
2424
#
25-
VERSION="2.3.2"
26-
SDKVERSION="10.2"
25+
VERSION="2.4.1"
26+
SDKVERSION="10.3"
2727
MINIOSVERSION="6.0"
2828

2929
#
@@ -37,7 +37,7 @@ MINIOSVERSION="6.0"
3737
# No need to change this since xcode build will only compile in the
3838
# necessary bits from the libraries we create
3939
#ARCHS="i386 x86_64 armv7 armv7s arm64"
40-
ARCHS="armv7"
40+
ARCHS="armv7 arm64"
4141

4242
DEVELOPER=`xcode-select -print-path`
4343

@@ -106,7 +106,7 @@ do
106106

107107
mkdir -p "${INTERDIR}/${PLATFORM}${SDKVERSION}-${ARCH}.sdk"
108108

109-
./configure --enable-tunemu --disable-snappy --disable-shared --enable-static --with-pic --disable-lzo --disable-plugin-auth-pam --disable-plugin-down-root ${EXTRA_CONFIG} \
109+
./configure --enable-password-save --enable-tunemu --disable-snappy --disable-shared --enable-static --with-pic --disable-lzo --disable-plugin-auth-pam --disable-plugin-down-root ${EXTRA_CONFIG} \
110110
--prefix="${INTERDIR}/${PLATFORM}${SDKVERSION}-${ARCH}.sdk" \
111111
CC="${CCACHE}${DEVELOPER}/usr/bin/gcc" \
112112
LDFLAGS="$LDFLAGS -arch ${ARCH} -fPIE -miphoneos-version-min=${MINIOSVERSION} ${EXTRA_LDFLAGS} -L${OUTPUTDIR}/lib" \

build/.DS_Store

6 KB
Binary file not shown.

build/src/.DS_Store

6 KB
Binary file not shown.

build/src/libpcap-1.4.0.tar.gz

605 KB
Binary file not shown.

build/src/openssl-1.0.1e.tar.gz

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
2+
<html><head>
3+
<title>301 Moved Permanently</title>
4+
</head><body>
5+
<h1>Moved Permanently</h1>
6+
<p>The document has moved <a href="https://www.openssl.org/source/openssl-1.0.1e.tar.gz">here</a>.</p>
7+
<hr>
8+
<address>Apache/2.4.18 (Ubuntu) Server at www.openssl.org Port 80</address>
9+
</body></html>

build/src/openssl-1.0.1e.tar.gz.asc

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
2+
<html><head>
3+
<title>301 Moved Permanently</title>
4+
</head><body>
5+
<h1>Moved Permanently</h1>
6+
<p>The document has moved <a href="https://www.openssl.org/source/openssl-1.0.1e.tar.gz.asc">here</a>.</p>
7+
<hr>
8+
<address>Apache/2.4.18 (Ubuntu) Server at www.openssl.org Port 80</address>
9+
</body></html>
+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
The OpenSSL project depends on volunteer efforts and financial support from
2+
the end user community. That support comes in the form of donations and paid
3+
sponsorships, software support contracts, paid consulting services
4+
and commissioned software development.
5+
6+
Since all these activities support the continued development and improvement
7+
of OpenSSL we consider all these clients and customers as sponsors of the
8+
OpenSSL project.
9+
10+
We would like to identify and thank the following such sponsors for their past
11+
or current significant support of the OpenSSL project:
12+
13+
Very significant support:
14+
15+
OpenGear: www.opengear.com
16+
17+
Significant support:
18+
19+
PSW Group: www.psw.net
20+
21+
Please note that we ask permission to identify sponsors and that some sponsors
22+
we consider eligible for inclusion here have requested to remain anonymous.
23+
24+
Additional sponsorship or financial support is always welcome: for more
25+
information please contact the OpenSSL Software Foundation.

0 commit comments

Comments
 (0)