-
Notifications
You must be signed in to change notification settings - Fork 7
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
Port forward: UI allows targeting of an object with ip range, leading to incorrect rule application #1032
Comments
this issue should close #898 |
QA Use this image Create hosts objects with
case 1 case 2 try to add a range to an object used by a portforward, it must be refused |
Both test cases have been verified. |
Description
The UI currently allows the creation or modification of port forward rules that target an object containing an IP range. This behavior results in the firewall rule incorrectly handling the
dest_ip
parameter, where only the IP range is considered. While the system does not crash, the rule is applied improperly, leading to unexpected behavior.Steps to reproduce
Create an object (
obj1
) with a single IP:Create a port forward rule (
pf1
) that uses the object as the destination:Modify the
obj1
file to include both an IP and an IP range:Observe the updated firewall and nftables configurations:
UI:
Expected behavior
Actual behavior
dest_ip
configuration in the rules, leading to improper handling and potentially unintended behavior. This may cause issues in the application of the port forward rule.Components
NethSecurity version: 8-23.05.5-ns.1.3.0
The text was updated successfully, but these errors were encountered: