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

Can't attach device interface to multiple VPN tunnels #14681

Closed
dirtycache opened this issue Jan 3, 2024 · 3 comments
Closed

Can't attach device interface to multiple VPN tunnels #14681

dirtycache opened this issue Jan 3, 2024 · 3 comments

Comments

@dirtycache
Copy link

Deployment Type

Self-hosted

NetBox Version

v3.7.0

Python Version

3.8

Steps to Reproduce

  1. Create VPN -> TunnelA
  2. Create termination for TunnelA and attach to Device Interface ("wan")
  3. Create VPN -> TunnelB
  4. Create termination for TunnelB, attempt to use same Device Interface "wan" as TunnelA termination
  5. Fails: wan is already attached to a tunnel (TunnelA)

Expected Behavior

It is possible to attach multiple IPsec tunnels to a single interface on the device; this should be permitted in Netbox as well.

Observed Behavior

Create termination fails: wan is already attached to a tunnel (TunnelA)

@dirtycache dirtycache added the type: bug A confirmed report of unexpected behavior in the application label Jan 3, 2024
@jeremystretch
Copy link
Member

This is not supported. You need to create a separate virtual interface for each tunnel.

@jeremystretch jeremystretch closed this as not planned Won't fix, can't repro, duplicate, stale Jan 3, 2024
@jeremystretch jeremystretch removed the type: bug A confirmed report of unexpected behavior in the application label Jan 3, 2024
@dirtycache
Copy link
Author

That would work fine if terminations were assigned to logical vti interfaces, aka the tunnel "inside" addresses. But this is the termination, with the "outside" addresses. The wan interface holds the outside address, and there is only one.

Perhaps I'm not understanding how one would document the IPsec outside addresses while needing to create separate virtual interfaces -- essentially dummy interfaces just for the purpose of the tunnel termination?

@jeremystretch
Copy link
Member

If you need assistance modeling tunnels, please open a discussion.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants