Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    OpenVPN Restarting more than it should

    Scheduled Pinned Locked Moved OpenVPN
    1 Posts 1 Posters 213 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      cocojeff3
      last edited by

      I think there is a bug with the logic rc.newwanip script when it comes to the OpenVPN Server.
      Current Configuration
      PFSense version 2.7.0
      Wan1 = Static IP address with a 13 IP address block
      Each public IP is added as a Virtual IP address
      Wan2 = a dynamic IP via a cellular modem.
      Gateway group is setup to failover to the Wan2 in the event Wan1 fails.
      OpenVPN server is set as a Virtual IP on the Wan1 interface.
      The behavior that I think is a bug:
      In the event Wan1 losses connection and comes back online the OpenVPN server stays running without restarting. However, if Wan2 loses connection and comes back online the system logs show that the OpenVPN server is terminated and reloaded. If the OpenVPN server is not linked to anything related to the Wan2 interface why would the OpenVPN server need to be rebooted?

      I think this situation is similar to https://redmine.pfsense.org/issues/11942
      System Log items:
      php-fpm[83287]: OpenVPN terminate old pid: 93421
      kernel: ovpns1: link state changed to DOWN
      check_reload_status[410]: Reloading filter
      php-fpm[83287]: /rc.newwanip: dpinger: timeout while retrieving status for gateway WAN2_DHCP
      kernel: ovpns1: link state changed to UP
      php-fpm[83287]: OpenVPN PID written: 45300
      check_reload_status[410]: Reloading filter
      check_reload_status[410]: rc.newwanip starting ovpns1

      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.