Here are the current configs and logs;
Firewall commands
iptables -I INPUT 1 -p udp --dport 1194 -j ACCEPT
iptables -I FORWARD 1 --source 10.8.0.0/24 -j ACCEPT
iptables -I FORWARD -i br0 -o tun2 -j ACCEPT
iptables -I FORWARD -i tun2 -o br0 -j ACCEPT
iptables -t nat -A POSTROUTING - s 10.8.0.0/24 -j MASQUERADE
Server Config as set through DD-WRT GUI
OpenVPN - Enable
Start Type - WAN Up
Config as - Server
Server Mode - Router (TUN)
Network - 10.8.0.0
Netmask - 255.255.255.0
Port - 1194
Tunnel Protocol - UDP
Encryption Cipher - Blowfish CBC
Hash Algorithm - SHA1
Advanced Options - Enable
TLS Cipher - None
LZO Compression - Adaptive
Redirect Default Gateway - Enable
Allow Client to Client - Enable
Allow duplicate cn - Enable
Tunnel MTU Setting - 1500
Tunnel UDP Fragment -
Tunnel UDP MSS-Fix - Disable
CCD-Dir DEFAULT file -
Client Connect Script -
Static Key -
PKCS12 Key -
Additional Config - push “route 192.168.5.0 255.255.255.0”
push “dhcp-option DNS xx.xx.xx.xx” as given by ISP OpenVPN router is connected to
push “dhcp-option DNS xx.xx.xx.xx” as given by ISP OpenVPN router is connected to
Public Server Cert - info copied from Server Certificate
CA Cert - info copied from CA Certificate
Private Server Key - info copied from Server Key
DH PEM - info copied from dh1024.pem file
TLS Auth Key -
Certificate Revoke List -
Client Config
client
;dev tap
dev tun
;dev-node MyTap
;proto tcp
proto udp
remote xx.xx.xx.xx 1194
;remote my-server-2 1194
;remote-random
resolv-retry infinite
nobind
;user nobody
;group nobody
persist-key
persist-tun
;http-proxy-retry # retry on connection failures
;http-proxy [proxy server] [proxy port #]
;mute-replay-warnings
key-direction 1
ns-cert-type server
;tls-auth ta.key 1
;cipher x
comp-lzo
verb 4
;mute 20
Log from successful connection on iPhone
2013-10-08 07:35:52 ----- OpenVPN Start -----
2013-10-08 07:35:52 LZO-ASYM init swap=0 asym=0
2013-10-08 07:35:52 EVENT: RESOLVE
2013-10-08 07:35:53 Contacting xx.xx.xx.xx:1194 via UDP
2013-10-08 07:35:53 EVENT: WAIT
2013-10-08 07:35:53 Connecting to xx.xx.xx.xx:1194 (xx.xx.xx.xx) via UDPv4
2013-10-08 07:35:53 EVENT: CONNECTING
2013-10-08 07:35:53 Tunnel Options:V4,dev-type tun,link-mtu 1542,tun-mtu 1500,proto UDPv4,comp-lzo,keydir 1,cipher BF-CBC,auth SHA1,keysize 128,key-method 2,tls-client
2013-10-08 07:35:53 Peer Info:
IV_VER=1.0
IV_PLAT=ios
IV_NCP=1
IV_LZO=1
2013-10-08 07:35:54 VERIFY OK: depth=0
cert. version : 3
serial number : 01
issuer name : C=xx, ST=xx, L=xx, O=Private, OU=changeme, CN=CA, 0x29=changeme, emailAddress=
xx@xx.com
subject name : C=xx, ST=xx, L=xx, O=Private, OU=changeme, CN=Server, 0x29=changeme, emailAddress=
xx@xx.com
issued on : 2013-09-11 15:33:10
expires on : 2023-09-09 15:33:10
signed using : RSA+MD5
RSA key size : 1024 bits
2013-10-08 07:35:54 VERIFY OK: depth=1
cert. version : 3
serial number : xx:xx:xx:xx:xx:xx:xx:xx
issuer name : C=xx, ST=xx, L=xx, O=Private, OU=changeme, CN=CA, 0x29=changeme, emailAddress=
xx@xx.com
subject name : C=xx, ST=xx, L=xx, O=Private, OU=changeme, CN=CA, 0x29=changeme, emailAddress=
xx@xx.com
issued on : 2013-09-11 15:31:02
expires on : 2023-09-09 15:31:02
signed using : RSA+SHA1
RSA key size : 1024 bits
2013-10-08 07:35:54 SSL Handshake: TLSv1.0/SSL-EDH-RSA-AES-256-SHA
2013-10-08 07:35:54 Session is ACTIVE
2013-10-08 07:35:55 EVENT: GET_CONFIG
2013-10-08 07:35:55 Sending PUSH_REQUEST to server...
2013-10-08 07:35:55 OPTIONS:
0 [redirect-gateway] [def1]
1 [route] [192.168.5.0] [255.255.255.0]
2 [dhcp-option] [DNS] [xx.xx.xx.xx]
3 [dhcp-option] [DNS] [xx.xx.xx.xx]
4 [route-gateway] [10.8.0.1]
5 [topology] [subnet]
6 [ping] [10]
7 [ping-restart] [120]
8 [ifconfig] [10.8.0.2] [255.255.255.0]
2013-10-08 07:35:55 LZO-ASYM init swap=0 asym=0
2013-10-08 07:35:55 EVENT: ASSIGN_IP
2013-10-08 07:35:55 Connected via tun
2013-10-08 07:35:55 EVENT: CONNECTED @xx.xx.xx.xx:1194 (xx.xx.xx.xx) via /UDPv4 on tun/10.8.0.2/
2013-10-08 07:38:20 EVENT: DISCONNECTED
2013-10-08 07:38:20 Raw stats on disconnect:
BYTES_IN : 918729
BYTES_OUT : 113855
PACKETS_IN : 811
PACKETS_OUT : 700
TUN_BYTES_IN : 87327
TUN_BYTES_OUT : 890395
TUN_PACKETS_IN : 645
TUN_PACKETS_OUT : 761
2013-10-08 07:38:20 Performance stats on disconnect:
CPU usage (microseconds): 429127
Tunnel compression ratio (uplink): 1.30378
Tunnel compression ratio (downlink): 1.03182
Network bytes per CPU second: 2406243
Tunnel bytes per CPU second: 2278397
2013-10-08 07:38:20 ----- OpenVPN Stop -----
Log from Status window of OpenVPN in DD-WRT
Serverlog 20131008 07:26:37 I OpenVPN 2.3.2 mips-unknown-linux-gnu [SSL (OpenSSL)] [LZO] [EPOLL] [MH] [IPv6] built on Jul 24 2013
20131008 07:26:37 MANAGEMENT: TCP Socket listening on [AF_INET]127.0.0.1:14
20131008 07:26:37 W WARNING: using --duplicate-cn and --client-config-dir together is probably not what you want
20131008 07:26:37 W NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
20131008 07:26:38 Diffie-Hellman initialized with 1024 bit key
20131008 07:26:38 Socket Buffers: R=[163840->131072] S=[163840->131072]
20131008 07:26:38 I TUN/TAP device tun2 opened
20131008 07:26:38 TUN/TAP TX queue length set to 100
20131008 07:26:38 I do_ifconfig tt->ipv6=1 tt->did_ifconfig_ipv6_setup=0
20131008 07:26:38 I /sbin/ifconfig tun2 10.8.0.1 netmask 255.255.255.0 mtu 1500 broadcast 10.8.0.255
20131008 07:26:39 I UDPv4 link local (bound): [undef]
20131008 07:26:39 I UDPv4 link remote: [undef]
20131008 07:26:39 MULTI: multi_init called r=256 v=256
20131008 07:26:39 IFCONFIG POOL: base=10.8.0.2 size=252 ipv6=0
20131008 07:26:39 I Initialization Sequence Completed
20131008 07:33:54 MANAGEMENT: Client connected from [AF_INET]127.0.0.1:14
20131008 07:33:54 D MANAGEMENT: CMD 'state'
20131008 07:33:54 MANAGEMENT: Client disconnected
20131008 07:33:54 MANAGEMENT: Client connected from [AF_INET]127.0.0.1:14
20131008 07:33:54 D MANAGEMENT: CMD 'state'
20131008 07:33:54 MANAGEMENT: Client disconnected
20131008 07:33:54 MANAGEMENT: Client connected from [AF_INET]127.0.0.1:14
20131008 07:33:54 D MANAGEMENT: CMD 'state'
20131008 07:33:54 MANAGEMENT: Client disconnected
20131008 07:33:54 MANAGEMENT: Client connected from [AF_INET]127.0.0.1:14
20131008 07:33:54 D MANAGEMENT: CMD 'status 2'
20131008 07:33:54 MANAGEMENT: Client disconnected
20131008 07:33:54 MANAGEMENT: Client connected from [AF_INET]127.0.0.1:14
20131008 07:33:54 D MANAGEMENT: CMD 'log 500'
20131008 07:33:54 MANAGEMENT: Client disconnected
20131008 07:35:53 xx.xx.xx.xx:1257 TLS: Initial packet from [AF_INET]xx.xx.xx.xx:1257 sid=fefda953 e373f6cd
20131008 07:35:54 xx.xx.xx.xx:1257 VERIFY OK: depth=1 C=xx ST=xx L=xx O=Private OU=changeme CN=CA name=changeme emailAddress=
xx@xx.com
20131008 07:35:54 xx.xx.xx.xx:1257 VERIFY OK: depth=0 C=xx ST=xx L=xx O=Private OU=changeme CN=DaniPhone5 name=changeme emailAddress=
xx@xx.com
20131008 07:35:54 W xx.xx.xx.xx:1257 WARNING: 'keydir' is present in remote config but missing in local config remote='keydir 1'
20131008 07:35:54 xx.xx.xx.xx:1257 Data Channel Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
20131008 07:35:54 xx.xx.xx.xx:1257 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
20131008 07:35:54 xx.xx.xx.xx:1257 Data Channel Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
20131008 07:35:54 xx.xx.xx.xx:1257 NOTE: --mute triggered...
20131008 07:35:54 xx.xx.xx.xx:1257 2 variation(s) on previous 3 message(s) suppressed by --mute
20131008 07:35:54 I x.xx.xx.xx:1257 [DaniPhone5] Peer Connection Initiated with [AF_INET]x.xx.xx.xx:1257
20131008 07:35:54 I DaniPhone5/xx.xx.xx.xx:1257 MULTI_sva: pool returned IPv4=10.8.0.2 IPv6=(Not enabled)
20131008 07:35:54 DaniPhone5/xx.xx.xx.xx:1257 MULTI: Learn: 10.8.0.2 -> DaniPhone5/xx.xx.xx.xx:1257
20131008 07:35:54 DaniPhone5/xx.xx.xx.xx:1257 MULTI: primary virtual IP for DaniPhone5/x.xx.xx.xx:1257: 10.8.0.2
20131008 07:35:55 DaniPhone5/xx.xx.xx.xx:1257 PUSH: Received control message: 'PUSH_REQUEST'
20131008 07:35:55 I DaniPhone5/xx.xx.xx.xx:1257 send_push_reply(): safe_cap=940
20131008 07:35:55 DaniPhone5/xx.xx.xx.xx:1257 SENT CONTROL [DaniPhone5]: 'PUSH_REPLY redirect-gateway def1 route 192.168.5.0 255.255.255.0 dhcp-option DNS xx.xx.xx.xx dhcp-option DNS xx.xx.xx.xx route-gateway 10.8.0.1 topology subnet ping 10 ping-restart 120 ifconfig 10.8.0.2 255.255.255.0' (status=1)
20131008 07:36:05 MANAGEMENT: Client connected from [AF_INET]127.0.0.1:14
20131008 07:36:05 D MANAGEMENT: CMD 'state'
20131008 07:36:05 MANAGEMENT: Client disconnected
20131008 07:36:05 MANAGEMENT: Client connected from [AF_INET]127.0.0.1:14
20131008 07:36:05 D MANAGEMENT: CMD 'state'
20131008 07:36:05 MANAGEMENT: Client disconnected
20131008 07:36:05 MANAGEMENT: Client connected from [AF_INET]127.0.0.1:14
20131008 07:36:05 D MANAGEMENT: CMD 'state'
20131008 07:36:05 MANAGEMENT: Client disconnected
20131008 07:36:05 MANAGEMENT: Client connected from [AF_INET]127.0.0.1:14
20131008 07:36:05 D MANAGEMENT: CMD 'status 2'
20131008 07:36:05 MANAGEMENT: Client disconnected
20131008 07:36:05 MANAGEMENT: Client connected from [AF_INET]127.0.0.1:14
20131008 07:36:05 D MANAGEMENT: CMD 'log 500'
19700101 00:00:00
Clientlog
If there is anything else I should be supplying, please let me know and possibly where to find it.
Thanks.
- Dan