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

pfSense restarting all services on connection cycle.

Scheduled Pinned Locked Moved General pfSense Questions
4 Posts 2 Posters 671 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
    chrcoluk
    last edited by Apr 24, 2023, 7:12 PM

    So guys I made a patch for my local install which is working great.

    Some background info, I have a unreliable L2TP tunnel service which goes down on average maybe half a dozen times a week, its always only brief, but it was triggering a full services restart when it happened, this was annoying as my UPS connection from winnut client to pfSense dropped every time the services were cycled. Consider in a power outage the internet may go down, then pfSense drops the LAN UPS connection because it starts cycling the UPS service and then PC doesnt auto hibernate. (there is old posts on this forum mentioning this problem)

    I found in the rc.newwanip script (and v6 version) the code what triggers the behaviour, I noticed there is separate code to cycle VPNs and some other net services, I moved the all services restart function to the part of the script that only runs when the IP changes. As I dont see a need otherwise.

    After some weeks of usage there is no side effects, so I am curious why this behaviour was implemented? I am prepared to submit my patches for both scripts, but I suspect if there is a known reason its done this way they will be rejected. So welcome any thoughts.

    pfSense CE 2.7.2

    1 Reply Last reply Reply Quote 0
    • S
      stephenw10 Netgate Administrator
      last edited by Apr 24, 2023, 9:26 PM

      There could well be a situation that requires it. Might need something more nuanced there.

      No harm in putting in a feature/pull request IMO. It will get more developer eyes that way.

      This might be better in the Develpment sub also.

      Steve

      C 1 Reply Last reply Jun 1, 2023, 2:25 PM Reply Quote 1
      • C
        chrcoluk @stephenw10
        last edited by Jun 1, 2023, 2:25 PM

        @stephenw10 Will submit this soon, it will need some testing though.

        pfSense CE 2.7.2

        C 1 Reply Last reply Jul 22, 2023, 1:08 AM Reply Quote 1
        • C
          chrcoluk @chrcoluk
          last edited by Jul 22, 2023, 1:08 AM

          The behaviour has been patched in 2.7.0, details here, the details indicate it should be less aggressive now, so will run without my patch for a while on 2.7.0, and if the old behaviour comes back will submit my patch, I didnt submit before as been on 2.6.0 code would have been too far away from dev code, was planning to update to dev branch and then 2.7.0 got released. :)

          https://redmine.pfsense.org/issues/12619

          pfSense CE 2.7.2

          1 Reply Last reply Reply Quote 1
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
            This community forum collects and processes your personal information.
            consent.not_received