Can't remote in with my iphone using openvpn



  • I'm trying create a open vpn connection to my system and can't figure out what the problem is.  Thanks in advance.

    my openvpn log at verbosity of 11:
    May 28 18:25:30 check_reload_status Reloading filter
    May 28 18:25:30 dhcpleases /var/etc/hosts changed size from original!
    May 28 18:25:30 php-fpm 77040 /rc.newwanip: rc.newwanip: on (IP address: 192.168.100.1) (interface: RW_VPN[opt8]) (real interface: ovpns3).
    May 28 18:25:30 php-fpm 77040 /rc.newwanip: rc.newwanip: Info: starting on ovpns3.
    May 28 18:25:28 check_reload_status rc.newwanip starting ovpns3
    May 28 18:25:28 check_reload_status Reloading filter
    May 28 18:25:28 php-fpm 74599 OpenVPN PID written: 74739
    May 28 18:25:28 kernel ovpns3: link state changed to UP
    May 28 18:25:28 check_reload_status Reloading filter
    May 28 18:25:28 kernel ovpns3: link state changed to DOWN
    May 28 18:25:28 php-fpm 74599 OpenVPN terminate old pid: 56884
    May 28 18:25:27 check_reload_status Syncing firewall
    May 28 18:23:40 check_reload_status Reloading filter
    May 28 18:23:37 check_reload_status Syncing firewall
    May 28 16:06:36 check_reload_status Syncing firewall
    May 28 16:06:36 php-fpm 44770 /system_usermanager.php: The command '/usr/sbin/pw groupmod -l 'admins' -g '1999' -M '0,2000,2001,2002' 2>&1' returned exit code '67', the output was 'pw: user `2002' does not exist'
    May 28 16:06:35 php-fpm 44770 /system_usermanager.php: Tried to remove user but got user pw instead. Bailing.

    iphone .ovpn file without keys
    persist-tun
    persist-key
    cipher AES-256-CBC
    auth SHA256
    tls-client
    client
    remote xxxxxx.ddns.net 443 udp
    lport 0
    verify-x509-name "roadwarrior_cert" name
    auth-user-pass
    remote-cert-tls server
    comp-lzo adaptive

    server3.conf
    dev ovpns3
    verb 11
    dev-type tun
    dev-node /dev/tun3
    writepid /var/run/openvpn_server3.pid
    #user nobody
    #group nobody
    script-security 3
    daemon
    keepalive 10 60
    ping-timer-rem
    persist-tun
    persist-key
    proto udp
    cipher AES-256-CBC
    auth SHA256
    up /usr/local/sbin/ovpn-linkup
    down /usr/local/sbin/ovpn-linkdown
    client-connect /usr/local/sbin/openvpn.attributes.sh
    client-disconnect /usr/local/sbin/openvpn.attributes.sh
    local x.x.x.x
    tls-server
    server 192.168.100.0 255.255.255.0
    client-config-dir /var/etc/openvpn-csc/server3
    username-as-common-name
    auth-user-pass-verify "/usr/local/sbin/ovpn_auth_verify user TG9jYWwgRGF0YWJhc2U= false server3 443" via-env
    tls-verify "/usr/local/sbin/ovpn_auth_verify tls 'roadwarrior_cert' 1"
    lport 443
    management /var/etc/openvpn/server3.sock unix
    max-clients 10
    push "dhcp-option DOMAIN local.lan"
    push "dhcp-option DNS 192.168.100.1"
    push "redirect-gateway def1"
    ca /var/etc/openvpn/server3.ca
    cert /var/etc/openvpn/server3.cert
    key /var/etc/openvpn/server3.key
    dh /etc/dh-parameters.2048
    crl-verify /var/etc/openvpn/server3.crl-verify
    tls-auth /var/etc/openvpn/server3.tls-auth 0
    comp-lzo adaptive
    persist-remote-ip
    float
    topology subnet

    iPhone openvpn error log
    2017-05-28 18:42:36 EVENT: RECONNECTING
    2017-05-28 18:42:36 EVENT: RESOLVE
    2017-05-28 18:42:36 Contacting x.x.x.x:443 via UDP
    2017-05-28 18:42:36 EVENT: WAIT
    2017-05-28 18:42:36 SetTunnelSocket returned 1
    2017-05-28 18:42:36 Connecting to [xxxxx.ddns.net]:443 (x.x.x.x) via UDPv4
    2017-05-28 18:42:46 Server poll timeout, trying next remote entry…
    2017-05-28 18:42:46 EVENT: RECONNECTING
    2017-05-28 18:42:46 EVENT: RESOLVE
    2017-05-28 18:42:46 Contacting x.x.x.x:443 via UDP
    2017-05-28 18:42:46 EVENT: WAIT
    2017-05-28 18:42:46 SetTunnelSocket returned 1
    2017-05-28 18:42:46 Connecting to [xxxxx.ddns.net]:443 (x.x.x.x) via UDPv4
    2017-05-28 18:42:56 EVENT: CONNECTION_TIMEOUT [ERR]
    2017-05-28 18:42:56 EVENT: DISCONNECTED
    2017-05-28 18:42:56 Raw stats on disconnect:
      BYTES_OUT : 3240
      PACKETS_OUT : 60
      CONNECTION_TIMEOUT : 1
      N_RECONNECT : 5
    2017-05-28 18:42:56 Performance stats on disconnect:
      CPU usage (microseconds): 47616
      Network bytes per CPU second: 68044
      Tunnel bytes per CPU second: 0
    2017-05-28 18:42:56 EVENT: DISCONNECT_PENDING
    2017-05-28 18:42:56 –--- OpenVPN Stop -----