Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    Captiveportal.inc ipfw rule startnum

    Scheduled Pinned Locked Moved Captive Portal
    3 Posts 2 Posters 1.1k 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.
    • D
      daemond
      last edited by

      Dear All.

      i have some problem in my pfsense i made some changes in /etc/inc/captiveportal.inc the changes are highlighted below.

      /*

      • This function will calculate the lowest free firewall ruleno
      • within the range specified based on the actual logged on users

      /
      function captiveportal_get_next_ipfw_ruleno
      *($rulenos_start = 2**, $rulenos_range_max = 64500) original line

      function captiveportal_get_next_ipfw_ruleno**($rulenos_start = 50,** $rulenos_range_max = 64500) modified line

      i execute some of my ipfw rules on number 1 to 50 from cmd shell on config.xml after that changes ipfw pass through mac rules start from 5000 on next reboot 6000 and so on.

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

        Hello.@daemond:

        ….
        i have some problem in my pfsense i made some changes in /etc/inc/captiveportal.inc the changes are highlighted below.
        .....

        and the problems are ?

        No "help me" PM's please. Use the forum, the community will thank you.

        1 Reply Last reply
        Reply Quote 0
        • D
          daemond
          last edited by

          after every reboot pfsense ipfw rules start from 5000, 6000, 7000 and so on. the startnum is modified 2 to 50 and the end number is same 65400 but after reboots when the ipfw rules reach to 65400 then all the rules start from 1

          1 Reply Last reply
          Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post
          Copyright 2026 Rubicon Communications LLC (Netgate). All rights reserved.
          Privacy Policy · Cookie Policy