Skip to content
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

Fixed adding a gateway with a dynamic address to Firewall Rules. Added tag field to Firewall Rules #636

Conversation

AlexTrushkovsky
Copy link
Contributor

image
image
image

As far as I understood, in the firewall rules in the api, you can select only a gateway with a static ip address, but for firewall rules you can also connect a gateway with a dynamic address (for example, OpenVPN).

The tag field has also been added.

@AlexTrushkovsky AlexTrushkovsky changed the title Update FirewallRule.inc Fixed adding a gateway with a dynamic address to Firewall Rules. Added tag field to Firewall Rules Jan 7, 2025
@jaredhendrickson13
Copy link
Owner

This definitely works, I'll have this in the next patch. Thank you!

As a workaround for now, the Gateway model does actually take into account dynamic gateways and they can be used in this field, but only after they've been saved to the config. For some reason, pfSense does not store the initial dynamic gateways in the config by default and only will if you edit the gateway and save it in the UI (or create the dynamic gateway via the API).

@jaredhendrickson13 jaredhendrickson13 merged commit a030b4e into jaredhendrickson13:master Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants