https://redmine.pfsense.org/https://redmine.pfsense.org/favicon.ico?16780521162014-03-28T11:21:06ZpfSense bugtrackerpfSense - Bug #3554: apinger and OpenVPN: Gateway down after OpenVPN client service restarthttps://redmine.pfsense.org/issues/3554?journal_id=136082014-03-28T11:21:06ZCullen TreyCullen.Trey@web.de
<ul></ul><p>Hi,</p>
<p>it seems to happen, if the openvpn interface comes up but encounters an error: in my configuration, a route add command failes:</p>
<p><code><br />Mar 28 17:14:13 openvpn[76990]: UDPv4 link local (bound): [AF_INET]192.168.2.3<br />Mar 28 17:14:13 openvpn[76990]: UDPv4 link remote: [AF_INET]78.47.141.140:25764<br />Mar 28 17:14:15 openvpn[76990]: [OpenVPN-Server] Peer Connection Initiated with [AF_INET]78.47.141.140:25764<br />Mar 28 17:14:17 openvpn[76990]: TUN/TAP device ovpnc1 exists previously, keep at program end<br />Mar 28 17:14:17 openvpn[76990]: TUN/TAP device /dev/tun1 opened<br />Mar 28 17:14:17 openvpn[76990]: do_ifconfig, tt->ipv6=1, tt->did_ifconfig_ipv6_setup=0<br />Mar 28 17:14:17 openvpn[76990]: /sbin/ifconfig ovpnc1 10.0.8.4 10.0.8.4 mtu 1500 netmask 255.255.255.0 up<br />Mar 28 17:14:17 openvpn[76990]: ERROR: FreeBSD route add command failed: external program exited with error status: 1<br />Mar 28 17:14:17 openvpn[76990]: /usr/local/sbin/ovpn-linkup ovpnc1 1500 1558 10.0.8.4 255.255.255.0 init<br />Mar 28 17:14:17 openvpn[76990]: ERROR: FreeBSD route add command failed: external program exited with error status: 1<br />Mar 28 17:14:17 openvpn[76990]: Initialization Sequence Completed<br /></code></p>
<p>Perhaps the scripts ends because of the error and the event for apinger is missing because it is triggered afterwards. This point is however never reached? just a guess...</p> pfSense - Bug #3554: apinger and OpenVPN: Gateway down after OpenVPN client service restarthttps://redmine.pfsense.org/issues/3554?journal_id=142572014-07-05T14:43:05ZMichael Sparkssparks305@gmail.com
<ul></ul><p>Cullen Trey wrote:</p>
<blockquote>
<p>Hi,</p>
<p>it seems to happen, if the openvpn interface comes up but encounters an error: in my configuration, a route add command failes:</p>
<p><code><br />Mar 28 17:14:13 openvpn[76990]: UDPv4 link local (bound): [AF_INET]192.168.2.3<br />Mar 28 17:14:13 openvpn[76990]: UDPv4 link remote: [AF_INET]78.47.141.140:25764<br />Mar 28 17:14:15 openvpn[76990]: [OpenVPN-Server] Peer Connection Initiated with [AF_INET]78.47.141.140:25764<br />Mar 28 17:14:17 openvpn[76990]: TUN/TAP device ovpnc1 exists previously, keep at program end<br />Mar 28 17:14:17 openvpn[76990]: TUN/TAP device /dev/tun1 opened<br />Mar 28 17:14:17 openvpn[76990]: do_ifconfig, tt->ipv6=1, tt->did_ifconfig_ipv6_setup=0<br />Mar 28 17:14:17 openvpn[76990]: /sbin/ifconfig ovpnc1 10.0.8.4 10.0.8.4 mtu 1500 netmask 255.255.255.0 up<br />Mar 28 17:14:17 openvpn[76990]: ERROR: FreeBSD route add command failed: external program exited with error status: 1<br />Mar 28 17:14:17 openvpn[76990]: /usr/local/sbin/ovpn-linkup ovpnc1 1500 1558 10.0.8.4 255.255.255.0 init<br />Mar 28 17:14:17 openvpn[76990]: ERROR: FreeBSD route add command failed: external program exited with error status: 1<br />Mar 28 17:14:17 openvpn[76990]: Initialization Sequence Completed<br /></code></p>
<p>Perhaps the scripts ends because of the error and the event for apinger is missing because it is triggered afterwards. This point is however never reached? just a guess...</p>
</blockquote>
<p>I am having the same issue when I connect to PIA VPN. its bizaare, it seems to still work because when I check my ip its from PIA not my ISP however pfsense is showing the openvpn as down in services.</p> pfSense - Bug #3554: apinger and OpenVPN: Gateway down after OpenVPN client service restarthttps://redmine.pfsense.org/issues/3554?journal_id=153392014-10-25T15:27:53ZChris Buechlercbuechler@gmail.com
<ul><li><strong>Category</strong> changed from <i>OpenVPN</i> to <i>Gateway Monitoring</i></li><li><strong>Status</strong> changed from <i>New</i> to <i>Closed</i></li><li><strong>Target version</strong> set to <i>2.2</i></li><li><strong>Affected Version</strong> set to <i>All</i></li></ul><p>this isn't true on 2.2, haven't tried earlier versions. The "route add failed" scenarios could well be a problem, but that happens because there is a problem of some sort with the configuration.</p>