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

    Script for Automatic Reboot of my pfsense box

    Scheduled Pinned Locked Moved General pfSense Questions
    2 Posts 2 Posters 361 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.
    • O
      OpenWifi
      last edited by

      Hey, guys so I have been having issues where my WAN 1 connections seem to stop working unless I either disconnect and connect it manually or reboot pfsense. This proves to be a challenge since whenever I am not around I have to VPN in and reboot my pfsense, disabling the WAN will disconnect the VPN and I would not be able to connect the WAN 1 back..Around a week ago I found kind of a solution from one of the members, and that solution is a script for pfsense to either disconnect and reconnect WAN 1 or reboot pfsense after few seconds. The problem is that I do not know how to integrate it into Command-Line of my box. Kindly need urgent help.Here is the thread

      GertjanG 1 Reply Last reply Reply Quote 0
      • GertjanG
        Gertjan @OpenWifi
        last edited by

        @openwifi

        That link shows you how to integrate a script using the cron package.
        What step isn't clear for you ?

        Btw : The real solution would be to understand why this happens :

        @openwifi said in Script for Automatic Reboot of my pfsense box:

        where my WAN 1 connections seem to stop working

        The interface is bad ?
        The other side's interface is bad ?
        What is the other side ?
        DHCP re-negotiation is failing ?
        Etc.

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

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