Skip to content
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

wireguard: T7166: Call vxlan dependency if interface exist #4369

Merged
merged 1 commit into from
Feb 27, 2025

Conversation

natali-rs1985
Copy link
Contributor

Change summary

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes)
  • Migration from an old Vyatta component to vyos-1x, please link to related PR inside obsoleted component
  • Other (please describe):

Related Task(s)

Related PR(s)

How to test / Smoketest result

set interfaces wireguard wg1 address 10.20.30.1/24
set interfaces wireguard wg1 description 'First peer'
set interfaces wireguard wg1 peer first address '192.0.2.31'
set interfaces wireguard wg1 peer first allowed-ips '10.20.30.2/32'
set interfaces wireguard wg1 peer first persistent-keepalive '25'
set interfaces wireguard wg1 peer first port '55555'
set interfaces wireguard wg1 peer first public-key '6HXVzOzM3yYz+MkXUOajmLU22CEvYacISODOwQPqE34='
set interfaces wireguard wg1 port '50001'
set interfaces wireguard wg1 private-key '2L4gceJCIpL9QjPZnsO3Mfb+2if+dYtBINZE2F4mDXU='

set interfaces vxlan vxlan1 address '10.1.1.1/30'
set interfaces vxlan vxlan1 mtu '1350'
set interfaces vxlan vxlan1 port '4789'
set interfaces vxlan vxlan1 remote '192.0.2.31'
set interfaces vxlan vxlan1 source-interface 'wg1'
set interfaces vxlan vxlan1 vni '5'

vyos@vyos# commit && ip link show | match "wg|vxlan"
[ interfaces wireguard wg1 ]

WARNING: RFC7348 recommends VXLAN tunnels preserve a 1500 byte MTU


[ interfaces vxlan vxlan1 ]

WARNING: RFC7348 recommends VXLAN tunnels preserve a 1500 byte MTU


18: wg1: <POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1420 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
20: vxlan1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1350 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
[edit]


set interfaces wireguard wg1 peer first persistent-keepalive 15

vyos@vyos# commit && ip link show | match "wg|vxlan"
[ interfaces wireguard wg1 ]

WARNING: RFC7348 recommends VXLAN tunnels preserve a 1500 byte MTU


21: wg1: <POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1420 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
22: vxlan1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1350 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
[edit]

Checklist:

  • I have read the CONTRIBUTING document
  • I have linked this PR to one or more Phabricator Task(s)
  • I have run the components SMOKETESTS if applicable
  • My commit headlines contain a valid Task id
  • My change requires a change to the documentation
  • I have updated the documentation accordingly

Copy link

github-actions bot commented Feb 26, 2025

👍
No issues in PR Title / Commit Title

@c-po c-po added bp/circinus Create automatic backport for circinus bp/sagitta Create automatic backport for sagitta LTS version labels Feb 27, 2025
@dmbaturin dmbaturin merged commit 22af5b3 into vyos:current Feb 27, 2025
11 of 12 checks passed
@vyosbot vyosbot added the mirror-initiated This PR initiated for mirror sync workflow label Feb 27, 2025
Copy link

CI integration 👍 passed!

Details

CI logs

  • CLI Smoketests (no interfaces) 👍 passed
  • CLI Smoketests (interfaces only) 👍 passed
  • Config tests 👍 passed
  • RAID1 tests 👍 passed
  • TPM tests 👍 passed

@kumvijaya kumvijaya removed the mirror-initiated This PR initiated for mirror sync workflow label Mar 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bp/circinus Create automatic backport for circinus bp/sagitta Create automatic backport for sagitta LTS version current
Development

Successfully merging this pull request may close these issues.

6 participants