My first shot at setting up a VPN, and feel like I have been spinning my wheels for the last day and a half-
I read the VPN primer (at least half of it
), and have googled excessively, but can't seem to get iphone to connect. I think I am close.
Here is my situation:
1) I have a cable provider, with their provided Arris modem. It is configured as RoutedWithNAT. (Wireless is off). I do not have a static IP address, but I believe it rarely changes. For this initial test config, I have been using my WAN address from What Is My IP? Shows your real IP - IPv4 - IPv6 - WhatIsMyIP.com®. Once working I will go through DynDNS.
2) I have a TP-Link router, running DD-WRT, with OpenVPN installed. I installed OpenVPN on my BlueIris PC to generate the required CA, server and client keys, and client configuration (for an iphone). I've transferred the required files to the iphone though iTunes (ca.crt, client config, and client key and crt)
This was a PITA to configure, as many of the online quides are outdated, bugs in the firmware, etc. I finally got it running (although there are a few warnings in router syslog).
At one point, I set MODEM to BRIDGED, and was able to conect from iPhone (VPN lights up). Everything worked as it should!!!.... but then I realized iphone had WIFI ON.... when I turned it off and connected through cell provide, I could no longer connect. I even tried turning firewall off on MODEM.
Now, with MODEM back to RoutedWithNAT and firewall on:
On the client log, I am getting the following:
On the Router syslog (with warnings):
Question:
1) With my setup, should the Modem be put into BRIDGED mode? Or running as RoutedWithNAT
2) If in bridged mode, do I need to make changes to the MODEM firewall?
3) I have NTP set on Router, with Time Zone set as US/EASTERN. But Server IP/Name is blank.
Any other suggestions?
Thank you!
I read the VPN primer (at least half of it

Here is my situation:
1) I have a cable provider, with their provided Arris modem. It is configured as RoutedWithNAT. (Wireless is off). I do not have a static IP address, but I believe it rarely changes. For this initial test config, I have been using my WAN address from What Is My IP? Shows your real IP - IPv4 - IPv6 - WhatIsMyIP.com®. Once working I will go through DynDNS.
2) I have a TP-Link router, running DD-WRT, with OpenVPN installed. I installed OpenVPN on my BlueIris PC to generate the required CA, server and client keys, and client configuration (for an iphone). I've transferred the required files to the iphone though iTunes (ca.crt, client config, and client key and crt)
This was a PITA to configure, as many of the online quides are outdated, bugs in the firmware, etc. I finally got it running (although there are a few warnings in router syslog).
At one point, I set MODEM to BRIDGED, and was able to conect from iPhone (VPN lights up). Everything worked as it should!!!.... but then I realized iphone had WIFI ON.... when I turned it off and connected through cell provide, I could no longer connect. I even tried turning firewall off on MODEM.
Now, with MODEM back to RoutedWithNAT and firewall on:
On the client log, I am getting the following:
2018-09-24 10:55:06 Transport Error: TCP connect error on 'xx.xxx.xxx.xxx:1194' ([xx.xxx.xxx.xxx]:1194/TCP): SYSTEM/Connection refused
2018-09-24 10:55:06 Client terminated, restarting in 2000 ms...
2018-09-24 10:55:08 EVENT: RECONNECTING
2018-09-24 10:55:08 EVENT: RESOLVE
2018-09-24 10:55:08 Contacting [xx.xxx.xxx.xxx]:1194/TCP via TCP
2018-09-24 10:55:08 EVENT: WAIT
2018-09-24 10:55:06 Client terminated, restarting in 2000 ms...
2018-09-24 10:55:08 EVENT: RECONNECTING
2018-09-24 10:55:08 EVENT: RESOLVE
2018-09-24 10:55:08 Contacting [xx.xxx.xxx.xxx]:1194/TCP via TCP
2018-09-24 10:55:08 EVENT: WAIT
On the Router syslog (with warnings):
Sep 24 16:03:46 CypressRouter daemon.warn openvpn[1188]: NOTE: your local LAN uses the extremely common subnet address 192.168.0.x or 192.168.1.x. Be aware that this might create routing conflicts if you connect to the VPN server from public locations such as internet cafes t
Sep 24 16:03:46 CypressRouter daemon.warn openvpn[1188]: NOTE: starting with OpenVPN 2.1, '--script-security 2' or higher is required to call user-defined scripts or executables
Sep 24 16:03:46 CypressRouter daemon.notice openvpn[1188]: TUN/TAP device tun0 opened
Sep 24 16:03:46 CypressRouter daemon.notice openvpn[1188]: do_ifconfig, tt->did_ifconfig_ipv6_setup=0
Sep 24 16:03:46 CypressRouter daemon.notice openvpn[1188]: /sbin/ifconfig tun0 10.8.0.1 pointopoint 10.8.0.2 mtu 1500
Sep 24 16:03:46 CypressRouter daemon.warn openvpn[1188]: WARNING: External program may not be called unless '--script-security 2' or higher is enabled. See --help text or man page for detailed info.
Sep 24 16:03:46 CypressRouter daemon.warn openvpn[1188]: WARNING: Failed running command (--route-up): external program fork failed
Sep 24 16:03:46 CypressRouter daemon.notice openvpn[1188]: Listening for incoming TCP connection on [AF_INET][undef]:1194
Sep 24 16:03:46 CypressRouter daemon.notice openvpn[1188]: TCPv4_SERVER link local (bound): [AF_INET][undef]:1194
Sep 24 16:03:46 CypressRouter daemon.notice openvpn[1188]: TCPv4_SERVER link remote: [AF_UNSPEC]
Sep 24 16:03:46 CypressRouter daemon.notice openvpn[1188]: Initialization Sequence Completed
Sep 24 16:03:46 CypressRouter daemon.warn openvpn[1188]: NOTE: starting with OpenVPN 2.1, '--script-security 2' or higher is required to call user-defined scripts or executables
Sep 24 16:03:46 CypressRouter daemon.notice openvpn[1188]: TUN/TAP device tun0 opened
Sep 24 16:03:46 CypressRouter daemon.notice openvpn[1188]: do_ifconfig, tt->did_ifconfig_ipv6_setup=0
Sep 24 16:03:46 CypressRouter daemon.notice openvpn[1188]: /sbin/ifconfig tun0 10.8.0.1 pointopoint 10.8.0.2 mtu 1500
Sep 24 16:03:46 CypressRouter daemon.warn openvpn[1188]: WARNING: External program may not be called unless '--script-security 2' or higher is enabled. See --help text or man page for detailed info.
Sep 24 16:03:46 CypressRouter daemon.warn openvpn[1188]: WARNING: Failed running command (--route-up): external program fork failed
Sep 24 16:03:46 CypressRouter daemon.notice openvpn[1188]: Listening for incoming TCP connection on [AF_INET][undef]:1194
Sep 24 16:03:46 CypressRouter daemon.notice openvpn[1188]: TCPv4_SERVER link local (bound): [AF_INET][undef]:1194
Sep 24 16:03:46 CypressRouter daemon.notice openvpn[1188]: TCPv4_SERVER link remote: [AF_UNSPEC]
Sep 24 16:03:46 CypressRouter daemon.notice openvpn[1188]: Initialization Sequence Completed
Question:
1) With my setup, should the Modem be put into BRIDGED mode? Or running as RoutedWithNAT
2) If in bridged mode, do I need to make changes to the MODEM firewall?
3) I have NTP set on Router, with Time Zone set as US/EASTERN. But Server IP/Name is blank.
Any other suggestions?
Thank you!