-
-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add filter rule association into the NAT Port Forward Create. #275
Comments
I would really like to see this integration too! It's an bit of a time saver, and this makes it more like how the GUI is supposed to work/respond |
I had forked the repo and add additional choices to field associated_rule_id in PortFoward model to support created rule when created port forward is there a way you can add the option for that Model if not then can you show me the way how to setup a vps for the runner to build pkg i had setup a pfsense with freebsd but can not run the github runner Thanks |
@lechuhuuha The reason this has not yet been implemented is it heavily relies on managing the state of a related model object, which up until v2 was difficult and required a lot of redundant logic. I think this should be much more feasible now. I'll see if I can fit it into v2.1.0. You can refer to the link in the comment I added on #516 for help building the package from source on your fork if you want to go that route. Thanks! |
Hi Jared,
Thank you for a brilliant piece of work.
I would like to suggest the addition of a missing field in the Port Forward Creation page.
Is your feature request related to existing pfSense functionality that is missing from the API? Please describe.
In the pfSense UI a selection can be made to Add associated filter rule. This is the last field in the UI under port forward create, Filter rule assosiation. This seems to be missing from the REST API.
When this is used with add-associated, then pfSense will create a basic firewall rule and associate it with the nat port forward rule.
The json below shows the current request body that could be send to create a nat port forward rule.
Describe the solution you'd like
This can be achieved by adding the filter-rule-association field to the Port Forward Create model.
It seems that there are 4 possible values that can be used here:
Suggested json to be send in request body.
Additional context
I tried to add the field myself but since I have no knowledge on PHP I seem to keep on missing something. My solution doesn't seem to affect any change.
Kind Regards,
Gert.
The text was updated successfully, but these errors were encountered: