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

    How do I restart an interface using command?

    Scheduled Pinned Locked Moved General pfSense Questions
    2 Posts 2 Posters 260 Views 2 Watching
    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.
    • S Offline
      scilek
      last edited by

      I have two WAN interfaces on my pfSense box:

      WAN_A -> VDSL (Service provided by telecommunications company over telephone network using PPOE via Tp-Link VDSL modem...)
      WAN_B -> DHCP (Service provided by mobile phone company via Tp-Link LTE modem...)

      Of course, the idea of paying two bills instead of just one is to provide redundancy. Almost all payments are made using credit cards and therefore POS connectivity is of utmost importance. As you can imagine, the two WANs are configured in a "failover" group so that when WAN_A goes down, POS machines can still accept payments over WAN_B.

      The problem is that some time after configuring WAN_B, which is think over 12 hours, the interface turns red and if WAN_A goes down too, connection is lost until the modem is restarted. This is the first time I am using an LTE connection as backup. When they lose connectivity, they first reboot the modem and the give me an angry call. Everytime, I go to WAN_B configuration page and press "Save" and then it turns green.

      I don't know why this happens but I need to find a way of pressing that "Save" button through a Cron job.

      I know I can simply do ifconfig em0 down && ifconfig em0 up, but I'd like to know if there is a pfSense way of doing it.

      1 Reply Last reply Reply Quote 0
      • H Offline
        heper
        last edited by

        Playback restartallwan from developers shell might do what ya want

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