feat(wireguard): add listen-ports and endpoint-ports flags#3226
feat(wireguard): add listen-ports and endpoint-ports flags#3226MircoBarone wants to merge 4 commits intoliqotech:masterfrom
Conversation
|
Hi @MircoBarone. Thanks for your PR! I am @adamjensenbot.
Make sure this PR appears in the liqo changelog, adding one of the following labels:
|
eed8d0b to
aceb4aa
Compare
|
/rebase test=true |
0a09450 to
1767f22
Compare
1767f22 to
a70df72
Compare
8218c64 to
518dbb2
Compare
|
I have updated the logic to support the creation of multiple interfaces. I have added the I have also extended 169.254.18.0/30 dev liqo-tunnel proto kernel scope link src 169.254.18.2
169.254.18.0/30 dev liqo-tunnel1 proto kernel scope link src 169.254.18.2
169.254.18.0/30 dev liqo-tunnel2 proto kernel scope link src 169.254.18.2
169.254.18.0/30 dev liqo-tunnel3 proto kernel scope link src 169.254.18.2This would cause, in particular, issues with keepalives. The wireguard container entrypoint has been extended to initialize N interfaces using a fail-fast approach: if the creation of even a single interface fails, the entire container is considered failed and will exit. Additionally, all underlying interface creation functions have been refactored to support this index-based multi-tunnel logic. |
b028ef3 to
6b61345
Compare
Description
Part of the multi-tunnel WireGuard implementation. This is the first PR related to issue #3225.
Add
--listen-portsand--endpoint-portsflags to the WireGuard container.These flags allow specifying multiple ports for the Gateway server and client, respectively.
The original idea was to also include the
--num-interfacesflag to indicate the number of WireGuard interfaces to create, but it is unnecessary and redundant: the same information can be inferred from the number of ports, maintaining a single source of truth.The existing
--listen-portand--endpoint-portflags are preserved for backward compatibility and default values. They can be ignored if values are provided in the new multi-port flags, ensuring that the existing infrastructure continues to work without changes.