OpenVPN Debain<->iOS problem
Posted: Tue Apr 26, 2016 8:32 pm
Hello,
I tried a lot of configuration founded on web between my debian 8.1 X86 64 vps server and my iphone through OpenVPN Connect app.
I would like to connect and create a VPN between my VPS and my iphone using openVPN!
With payment .ovpn file (privatetunnel provider) I can connect and surf correctly under VPN but i can't with mine home made
I attach my configuration and log!
Could you help me guys?
Thanks!
SERVER
port 1194
proto tcp
dev tun
ca ca.crt
cert server.crt
key server.key
dh dh2048.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 8.8.8.8"
keepalive 10 120
comp-lzo
user nobody
group nogroup
persist-key
persist-tun
status openvpn-status.log
verb 3
CLIENT
client
dev tun
proto tcp
remote 185.115.243.227 1194
resolv-retry infinite
nobind
persist-key
persist-tun
mute-replay-warnings
ns-cert-type server
comp-lzo
verb 3
set CLIENT_CERT 0
LOG
2016-04-26 22:17:21 ----- OpenVPN Start -----
OpenVPN core 3.0 ios armv7s thumb2 32-bit
2016-04-26 22:17:22 UNUSED OPTIONS
4 [resolv-retry] [infinite]
5 [nobind]
6 [persist-key]
7 [persist-tun]
8 [mute-replay-warnings]
11 [verb] [3]
12 [set] [CLIENT_CERT] [0]
2016-04-26 22:17:22 LZO-ASYM init swap=0 asym=0
2016-04-26 22:17:22 EVENT: RESOLVE
2016-04-26 22:17:22 Contacting 185.115.243.227:1194 via TCP
2016-04-26 22:17:22 EVENT: WAIT
2016-04-26 22:17:22 SetTunnelSocket returned 1
2016-04-26 22:17:23 Connecting to 185.115.243.227:1194 (185.115.243.227) via TCPv4
2016-04-26 22:17:23 EVENT: CONNECTING
2016-04-26 22:17:23 Tunnel Options:V4,dev-type tun,link-mtu 1544,tun-mtu 1500,proto TCPv4_CLIENT,comp-lzo,cipher BF-CBC,auth SHA1,keysize 128,key-method 2,tls-client
2016-04-26 22:17:23 Peer Info:
IV_GUI_VER=net.openvpn.connect.ios 1.0.5-177
IV_VER=3.0
IV_PLAT=ios
IV_NCP=1
IV_LZO=1
2016-04-26 22:17:38 VERIFY OK: depth=1
cert. version : 3
serial number : 93:8D:1A:CD:64:84:97:C9
issuer name : C=NL, ST=AM, L=Amsterdam, O=ServerBabbo, OU=MyOrganizationalUnit, CN=ServerBabbo CA, ??=server, emailAddress=me@myhost.mydomain
subject name : C=NL, ST=AM, L=Amsterdam, O=ServerBabbo, OU=MyOrganizationalUnit, CN=ServerBabbo CA, ??=server, emailAddress=me@myhost.mydomain
issued on : 2016-04-26 17:43:50
expires on : 2026-04-24 17:43:50
signed using : RSA with SHA-256
RSA key size : 2048 bits
basic constraints : CA=true
2016-04-26 22:17:38 VERIFY OK: depth=0
cert. version : 3
serial number : 01
issuer name : C=NL, ST=AM, L=Amsterdam, O=ServerBabbo, OU=MyOrganizationalUnit, CN=ServerBabbo CA, ??=server, emailAddress=me@myhost.mydomain
subject name : C=NL, ST=AM, L=Amsterdam, O=ServerBabbo, OU=MyOrganizationalUnit, CN=server, ??=server, emailAddress=me@myhost.mydomain
issued on : 2016-04-26 17:44:12
expires on : 2026-04-24 17:44:12
signed using : RSA with SHA-256
RSA key size : 2048 bits
basic constraints : CA=false
subject alt name : server
cert. type : SSL Server
key usage : Digital Signature, Key Encipherment
ext key usage : TLS Web Server Authentication
2016-04-26 22:17:47 SSL Handshake: TLSv1.0/TLS-DHE-RSA-WITH-AES-256-CBC-SHA
2016-04-26 22:17:47 Session is ACTIVE
2016-04-26 22:17:47 EVENT: GET_CONFIG
2016-04-26 22:17:47 Sending PUSH_REQUEST to server...
2016-04-26 22:17:48 Sending PUSH_REQUEST to server...
2016-04-26 22:17:49 OPTIONS:
0 [redirect-gateway] [def1] [bypass-dhcp]
1 [dhcp-option] [DNS] [8.8.8.8]
2 [route] [10.8.0.1]
3 [topology] [net30]
4 [ping] [10]
5 [ping-restart] [120]
6 [ifconfig] [10.8.0.6] [10.8.0.5]
2016-04-26 22:17:49 LZO-ASYM init swap=0 asym=0
2016-04-26 22:17:49 EVENT: ASSIGN_IP
2016-04-26 22:17:49 Connected via tun
2016-04-26 22:17:49 EVENT: CONNECTED @185.115.243.227:1194 (185.115.243.227) via /TCPv4 on tun/10.8.0.6/
2016-04-26 22:17:49 SetStatus Connected
2016-04-26 22:19:50 TUN reset routes
2016-04-26 22:19:50 EVENT: DISCONNECTED
2016-04-26 22:19:50 Raw stats on disconnect:
BYTES_IN : 6601
BYTES_OUT : 10467
PACKETS_IN : 38
PACKETS_OUT : 122
TUN_BYTES_IN : 4124
TUN_PACKETS_IN : 59
2016-04-26 22:19:50 Performance stats on disconnect:
CPU usage (microseconds): 369177
Tunnel compression ratio (downlink): inf
Network bytes per CPU second: 46232
Tunnel bytes per CPU second: 11170
2016-04-26 22:19:50 ----- OpenVPN Stop -----
I tried a lot of configuration founded on web between my debian 8.1 X86 64 vps server and my iphone through OpenVPN Connect app.
I would like to connect and create a VPN between my VPS and my iphone using openVPN!
With payment .ovpn file (privatetunnel provider) I can connect and surf correctly under VPN but i can't with mine home made

I attach my configuration and log!
Could you help me guys?
Thanks!
SERVER
port 1194
proto tcp
dev tun
ca ca.crt
cert server.crt
key server.key
dh dh2048.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 8.8.8.8"
keepalive 10 120
comp-lzo
user nobody
group nogroup
persist-key
persist-tun
status openvpn-status.log
verb 3
CLIENT
client
dev tun
proto tcp
remote 185.115.243.227 1194
resolv-retry infinite
nobind
persist-key
persist-tun
mute-replay-warnings
ns-cert-type server
comp-lzo
verb 3
set CLIENT_CERT 0
LOG
2016-04-26 22:17:21 ----- OpenVPN Start -----
OpenVPN core 3.0 ios armv7s thumb2 32-bit
2016-04-26 22:17:22 UNUSED OPTIONS
4 [resolv-retry] [infinite]
5 [nobind]
6 [persist-key]
7 [persist-tun]
8 [mute-replay-warnings]
11 [verb] [3]
12 [set] [CLIENT_CERT] [0]
2016-04-26 22:17:22 LZO-ASYM init swap=0 asym=0
2016-04-26 22:17:22 EVENT: RESOLVE
2016-04-26 22:17:22 Contacting 185.115.243.227:1194 via TCP
2016-04-26 22:17:22 EVENT: WAIT
2016-04-26 22:17:22 SetTunnelSocket returned 1
2016-04-26 22:17:23 Connecting to 185.115.243.227:1194 (185.115.243.227) via TCPv4
2016-04-26 22:17:23 EVENT: CONNECTING
2016-04-26 22:17:23 Tunnel Options:V4,dev-type tun,link-mtu 1544,tun-mtu 1500,proto TCPv4_CLIENT,comp-lzo,cipher BF-CBC,auth SHA1,keysize 128,key-method 2,tls-client
2016-04-26 22:17:23 Peer Info:
IV_GUI_VER=net.openvpn.connect.ios 1.0.5-177
IV_VER=3.0
IV_PLAT=ios
IV_NCP=1
IV_LZO=1
2016-04-26 22:17:38 VERIFY OK: depth=1
cert. version : 3
serial number : 93:8D:1A:CD:64:84:97:C9
issuer name : C=NL, ST=AM, L=Amsterdam, O=ServerBabbo, OU=MyOrganizationalUnit, CN=ServerBabbo CA, ??=server, emailAddress=me@myhost.mydomain
subject name : C=NL, ST=AM, L=Amsterdam, O=ServerBabbo, OU=MyOrganizationalUnit, CN=ServerBabbo CA, ??=server, emailAddress=me@myhost.mydomain
issued on : 2016-04-26 17:43:50
expires on : 2026-04-24 17:43:50
signed using : RSA with SHA-256
RSA key size : 2048 bits
basic constraints : CA=true
2016-04-26 22:17:38 VERIFY OK: depth=0
cert. version : 3
serial number : 01
issuer name : C=NL, ST=AM, L=Amsterdam, O=ServerBabbo, OU=MyOrganizationalUnit, CN=ServerBabbo CA, ??=server, emailAddress=me@myhost.mydomain
subject name : C=NL, ST=AM, L=Amsterdam, O=ServerBabbo, OU=MyOrganizationalUnit, CN=server, ??=server, emailAddress=me@myhost.mydomain
issued on : 2016-04-26 17:44:12
expires on : 2026-04-24 17:44:12
signed using : RSA with SHA-256
RSA key size : 2048 bits
basic constraints : CA=false
subject alt name : server
cert. type : SSL Server
key usage : Digital Signature, Key Encipherment
ext key usage : TLS Web Server Authentication
2016-04-26 22:17:47 SSL Handshake: TLSv1.0/TLS-DHE-RSA-WITH-AES-256-CBC-SHA
2016-04-26 22:17:47 Session is ACTIVE
2016-04-26 22:17:47 EVENT: GET_CONFIG
2016-04-26 22:17:47 Sending PUSH_REQUEST to server...
2016-04-26 22:17:48 Sending PUSH_REQUEST to server...
2016-04-26 22:17:49 OPTIONS:
0 [redirect-gateway] [def1] [bypass-dhcp]
1 [dhcp-option] [DNS] [8.8.8.8]
2 [route] [10.8.0.1]
3 [topology] [net30]
4 [ping] [10]
5 [ping-restart] [120]
6 [ifconfig] [10.8.0.6] [10.8.0.5]
2016-04-26 22:17:49 LZO-ASYM init swap=0 asym=0
2016-04-26 22:17:49 EVENT: ASSIGN_IP
2016-04-26 22:17:49 Connected via tun
2016-04-26 22:17:49 EVENT: CONNECTED @185.115.243.227:1194 (185.115.243.227) via /TCPv4 on tun/10.8.0.6/
2016-04-26 22:17:49 SetStatus Connected
2016-04-26 22:19:50 TUN reset routes
2016-04-26 22:19:50 EVENT: DISCONNECTED
2016-04-26 22:19:50 Raw stats on disconnect:
BYTES_IN : 6601
BYTES_OUT : 10467
PACKETS_IN : 38
PACKETS_OUT : 122
TUN_BYTES_IN : 4124
TUN_PACKETS_IN : 59
2016-04-26 22:19:50 Performance stats on disconnect:
CPU usage (microseconds): 369177
Tunnel compression ratio (downlink): inf
Network bytes per CPU second: 46232
Tunnel bytes per CPU second: 11170
2016-04-26 22:19:50 ----- OpenVPN Stop -----