Skip to content

Check if target ip in forward is network id or broadcast address of subnet#2555

Merged
stgraber merged 4 commits intolxc:mainfrom
eoscloud:expand-forward-target-ip-validator
Oct 21, 2025
Merged

Check if target ip in forward is network id or broadcast address of subnet#2555
stgraber merged 4 commits intolxc:mainfrom
eoscloud:expand-forward-target-ip-validator

Conversation

@DarkressX
Copy link
Copy Markdown
Contributor

fixes: #2538

@DarkressX DarkressX requested a review from stgraber as a code owner October 12, 2025 15:28
@DarkressX
Copy link
Copy Markdown
Contributor Author

Sorry I had some trouble with the linter. Hopefully it should be alright now.

@DarkressX
Copy link
Copy Markdown
Contributor Author

@stgraber Could you please have another look? :)

@DarkressX
Copy link
Copy Markdown
Contributor Author

These pipeline errors seem to be unrelated to my change.

@stgraber
Copy link
Copy Markdown
Member

The Code ones need fixing, they're showing static analysis failures on your code.

@DarkressX DarkressX force-pushed the expand-forward-target-ip-validator branch from c5a754a to 50348f8 Compare October 20, 2025 06:35
@DarkressX
Copy link
Copy Markdown
Contributor Author

The current failures refer to parts that were not modified by me.
I rebased just now.

@stgraber stgraber merged commit eb0ce6c into lxc:main Oct 21, 2025
35 of 38 checks passed
@stgraber
Copy link
Copy Markdown
Member

Thanks!

tomponline added a commit to canonical/lxd that referenced this pull request Oct 22, 2025
… load balancer backends (from Incus) (#16782)

This PR extends target IP address validation for network forwards and
load balancer backends to check that the target address is not a network
address and not a broadcast address.

Inspired by lxc/incus#2555.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Network forward to network_id or broadcast address should not be possible

2 participants