-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
SRX Plugin Cannot add Port Forwarding Rule #3379
Comments
I will attempt to fix this, hopefully in time for 4.11.3 |
This was fixable by changing the script template at Before submitting this as a PR, I would welcome thoughts on whether this is ever likely to have worked in the past - if so it may turn out that the fix for more modern JunOS breaks older versions. However, the version on the supported hardware list (JunOS 10) went EOL in 2014. |
@richardlawley can you start a discussion on dev and users ML. I don't think most of us have srx/infra to test your fix. |
@rhtyd I've submitted which a fix that makes the plugin usable on later versions with one manual change to the script XML file - this was to not break compatibility for anyone still using the very old versions. Need to work out how to address it going forward in the next version though. |
…ogic (#3393) This PR partially fixes the logic around port forwarding rules on the Juniper SRX plugin. The code in the plugin is based on JunOS 10, which is very old. The changes here should not break compatibility, but should enable the plugin to be used on newer devices. Note that an additional change to a script file is required to be able to add port forwarding rules, but as this PR was targetted for 4.11.3, I thought it best not to include this change as it might break compatibility for anyone still using JunOS 10. I've made the logic better and consistent for adding/removing static nat and port forwarding rules - these were multi-step processes which did not check each individual step. This would aid in manually fixing rules in case of further problems. I've also improved the logging for communication with the SRX by stripping out the Apache header before sending it, and indicating the name of the template filename in use. To be able to add port forwarding rules, the <dst-port> tags in dest-nat-rule-add.xml must be changed to <low>. Fixes: #3379
ISSUE TYPE
COMPONENT NAME
CLOUDSTACK VERSION
CONFIGURATION
Advanced Networking
OS / ENVIRONMENT
Model: srx345-dual-ac
Junos: 15.1X49-D110.4
JUNOS Software Release [15.1X49-D110.4]
SUMMARY
When trying to add a port forwarding rule, it fails with a syntax error. If this ever worked, then I suspect the syntax of the API command has changed since JunOS 10, which from the hardware compatibility list may be what worked.
STEPS TO REPRODUCE
Add a port forwarding rule
EXPECTED RESULTS
Port Forwarding rule should be added, creating a destination nat rule on the SRX
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: