-
Notifications
You must be signed in to change notification settings - Fork 1.6k
UPnP IGD & PCP: Add Allow Third-Party Mapping option
#4730
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
base: master
Are you sure you want to change the base?
UPnP IGD & PCP: Add Allow Third-Party Mapping option
#4730
Conversation
eae5b4f to
6a954ff
Compare
|
Currently the STUN CGNAT filtering test on pfSense cannot work without adding a special firewall rule. Since I could upgrade miniupnpd on FreeBSD ports to 2.3.9, the new STUN option pfsense/src/usr/local/pkg/miniupnpd.inc Line 296 in 6a954ff
Only this would have to be set: |
As I understand, this shouldn't be needed provided that the STUN server works as intended. Either way, let's keep this PR for text-only changes since behavior changes are unlikely to make it in 2.8.0. |
No, it's about the default rules in pfSense. For the CGNAT filtering test, miniupnpd opens four random ports and checks for an inbound connection using STUN, which fails by default. This is a temporary fix until we open all (?) UDP ports on the router, I don't think this is not a good idea. Regarding the daemon, I'm considering implementing a straightforward solution that would restrict the range of ports checked to a smaller range. However, the final solution I'm thinking of would require the daemon to open and close these ports for the test itself, without range restriction. |
|
Am I right in thinking that the 2.3.9 daemon update will be in 2.8.0, main branch? |
Unfortunately that happened after 2.8.0 was already branched. As of now both devel and 2.8.0 are on 2.3.7 hence most likely 2.8.0 will be released with its current version. It's possible for the package to be updated post-release though that's normally reserved for critical issues. I'd expect it to be in the release after instead, e.g. 2.8.1.
Yes, the tests should automatically open those ports in pf like it would normally for port mappings.
Indeed it should be its own PR with its own redmine that can be considered post 2.8.0, e.g. 2.8.1. Thanks for the link, the reasoning given there makes sense:
|
|
Thanks for the explanations. What if I create a separate commit for the text changes that are to be adopted now? You could then cherry-pick this commit while keeping the second and the PR open. This would enable |
|
Sounds fine to me. |
Just to make sure we have understood each other correctly: |
|
Yep. Preferably feature implementations should have their own commit and be separated from unrelated changes, hence the separate redmine and PR from simple text changes (which can potentially be merged without an associated redmine). |
6a954ff to
78bf40c
Compare
Allow Third-Party Mapping option and fix wordingAllow Third-Party Mapping option, fix status page and help
defd506 to
53f244a
Compare
|
There are still comments which have not been addressed - I've also added some new comments as well. |
Which changes would you like to see removed? |
|
I would like redmine feature request created specifically for the feature commit and a PR dedicated for that. It can remain on this PR and the rest of the changes moved to a different one, or vice versa. For the text changes, I'm referring to the currently unresolved conversations on this PR. I appreciate the work, thank you! |
53f244a to
7f3213f
Compare
Allow Third-Party Mapping option, fix status page and helpAllow Third-Party Mapping UI option
|
7f3213f to
656860e
Compare
Allow Third-Party Mapping UI optionAllow Third-Party Mapping option
However, the STUN port has not been necessary since last year's PR (bf31326). So why is it still required? It is also automatically deleted from the UI after the first save.
Since I don't have a redmine account, could you please create the issues? (commits squashed) I just created the second PR and added this: ... and updated the docs.netgate.com updates branch: |
I forgot about that; it's fine then. Just make sure to include a note about this in the commit message. Here's the redmine for this feature request; make sure to update the commit message with the redmine issue ID: |
656860e to
b70d7c2
Compare
To allow adding port maps for non-requesting IP addresses
b70d7c2 to
25901e7
Compare
|
Done |
To allow adding port maps for non-requesting IP addresses, helps
https://redirect.github.com/opnsense/plugins/pull/3727