Add ipfw rules from file
-
hi.
is possible add many rules to ipfw from a text file?
thanks
-
ipfw is not used anywhere but in Captive Portal. No idea what you are trying to do.
-
thanks doktornotor.
i´m trying reply rules from table1 and table2 of ipfw pfsense1 to another pfsense instance
thanks
-
Still no idea what are you trying to do. As said, ipfw is NOT used for anything but captive portal.
-
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?
-
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".
-
i need copy rules creates by users in captive portal in table1 and table2 to other firewall.
thanks
-
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.
-
ipfw rules of captiveportal are in memory and not saved in a configuration file
thanks.
-
That doesn't make sense or you would lose everything on reboot. They have to be loaded from somewhere.
-
exactly. this rules are created when a user is logged in captive portal, this rules don´t survive a reboot.
-
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.