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

    Add ipfw rules from file

    Scheduled Pinned Locked Moved Firewalling
    12 Posts 5 Posters 2.2k 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
      doktornotor Banned
      last edited by

      ipfw is not used anywhere but in Captive Portal. No idea what you are trying to do.

      1 Reply Last reply Reply Quote 0
      • U
        uaxero
        last edited by

        thanks doktornotor.

        i´m trying reply rules from table1 and table2 of ipfw pfsense1 to another pfsense instance

        thanks

        1 Reply Last reply Reply Quote 0
        • D
          doktornotor Banned
          last edited by

          Still no idea what are you trying to do. As said, ipfw is NOT used for anything but captive portal.

          1 Reply Last reply Reply Quote 0
          • M
            muswellhillbilly
            last edited by

            @uaxero:

            i´m trying reply rules from table1 and table2 of ipfw pfsense1 to another pfsense instance

            If you mean you're trying to migrate rules from one firewall to another, why not just run a backup of your firewall and selectively restore just the firewall rules to the second machine?

            1 Reply Last reply Reply Quote 0
            • C
              cmb
              last edited by

              If you can describe what you're trying to accomplish by copying tables, maybe we can suggest something. There is no way to "add ipfw rules from file".

              1 Reply Last reply Reply Quote 0
              • U
                uaxero
                last edited by

                i need copy rules creates by users in captive portal in table1 and table2 to other firewall.

                thanks

                1 Reply Last reply Reply Quote 0
                • M
                  muswellhillbilly
                  last edited by

                  @muswellhillbilly:

                  @uaxero:

                  i´m trying reply rules from table1 and table2 of ipfw pfsense1 to another pfsense instance

                  If you mean you're trying to migrate rules from one firewall to another, why not just run a backup of your firewall and selectively restore just the firewall rules to the second machine?

                  In that case you have a suggestion already.

                  1 Reply Last reply Reply Quote 0
                  • U
                    uaxero
                    last edited by

                    ipfw rules of captiveportal are in memory and not saved in a configuration file

                    thanks.

                    1 Reply Last reply Reply Quote 0
                    • KOMK
                      KOM
                      last edited by

                      That doesn't make sense or you would lose everything on reboot.  They have to be loaded from somewhere.

                      1 Reply Last reply Reply Quote 0
                      • U
                        uaxero
                        last edited by

                        exactly. this rules are created when a user is logged in captive portal, this rules don´t survive a reboot.

                        1 Reply Last reply Reply Quote 0
                        • M
                          muswellhillbilly
                          last edited by

                          What about this? https://doc.pfsense.org/index.php/Captive_Portal_Troubleshooting#IPFW_tables

                          The captiveportal_init_rules section of the /etc/inc/captiveportal.inc file is apparently where the ipfw rules for the captive portal are initiated. Is this what you're looking for?

                          Note: If you try to manually change this file you will lose any changes you make on the next update.

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