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

    Captiveportal.inc ipfw rule startnum

    Scheduled Pinned Locked Moved Captive Portal
    3 Posts 2 Posters 869 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.
        Edit : and where are the logs ??

        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
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.