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

    Blocking all traffic with a schedule, but the schedule doesn't reset the states

    Scheduled Pinned Locked Moved Firewalling
    4 Posts 3 Posters 2.0k 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.
    • P
      Plecto
      last edited by

      Hi. I've made a simple firewall rule to stop all traffic at night and set a schedule to this rule, but it doesn't work. To make it work I have to manually reset the states, but this kind of ruins the purpose of the schedule. What must I do to fix this?

      1 Reply Last reply Reply Quote 0
      • E
        eri--
        last edited by

        There is a fix for this on 2.0 i am not sure if 1.2.1 has the fix.

        Try

        
        sysctl -a | grep pfil
        
        

        if it gives some output like

        net.inet.ip.pfil.inbound="pf, ipfw"

        try to execute

        
        sysctl net.inet.ip.pfil.inbound="ipfw,pf"
        
        

        and the same for outbound. It should fix your problems.

        1 Reply Last reply Reply Quote 0
        • P
          Plecto
          last edited by

          I tryed to execute these commands, but I can't say that it worked. Could you explain a little what these commands do? And shoud just executing them anytime fix the problem for any schedule and firewall rule I make in the future?

          1 Reply Last reply Reply Quote 0
          • H
            heiko
            last edited by

            in 1.2 this works as it should and i think in 1.21 killing the firewall states should also working

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