Skip to content

[feature] Adding Wireguard and VXLAN support - #187

Merged
nemesifier merged 9 commits into
masterfrom
wireguard-vxlan
Aug 20, 2021
Merged

nemesifier merged 9 commits into
masterfrom
wireguard-vxlan

Conversation

@nemesifier

@nemesifier nemesifier commented Apr 3, 2021 •

Copy link
Copy Markdown
Member

What's missing:

  • Fix test coverage
  • Wireguard page docs
  • Add Wireguard settings (interface and peers settings, + examples) to OpenWRT backend docs
  • Add VXLAN settings (interface settings + example) to OpenWRT backend docs

Postponed: #188.

@nemesifier nemesifier self-assigned this Apr 3, 2021
@coveralls

coveralls commented Apr 3, 2021 •

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.007%) to 99.94% when pulling 6365223 on wireguard-vxlan into a0cda13 on master.

config['interfaces'][0]['addresses'] = [
{
'proto': 'static',
'family': 'ipv4',

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can't know whether the IP address will belong to IPv4 or IPv6 family since we are dealing with variables here.

"type": "string",
"title": "ipv4 address",
"minLength": 7,
"format": "ipv4",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was preventing to us to use variable name in templates

@nemesifier nemesifier left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pandafy let's make sure Wireguard is mentioned in the README (we have OpenVPN so it makes sense to mention Wireguard as well).

@nemesifier nemesifier left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -0,0 +1,193 @@
=================

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this file listed in the toctree? I tried generating the docs and don't see it in the menu.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No this is not in the toctree. You will see this after clicking on the VPN backends link.
Screenshot from 2021-05-26 22-10-14

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nemesisdesign can this be resolved?

@@ -0,0 +1,78 @@
============================

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this file listed in the toctree? I tried generating the docs and don't see it in the menu.

Comment thread docs/source/backends/vpn/openvpn.rst Resolved
Comment thread docs/source/backends/openwrt.rst Resolved
@pandafy
pandafy force-pushed the wireguard-vxlan branch 2 times, most recently from 5aa0b36 to 51338a8 Compare May 26, 2021 20:37
.. include:: ../_github.rst

The ``VXLAN over WireGuard`` backend extends :doc:`Wireguard backend </backends/wireguard>`
to add configurations required for VXLAN.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think something like configurations required for configuring VXLAN tunnels encapsulated in WireGuard tunnels. may be more specific and clear.

Comment thread docs/source/backends/openwrt.rst Outdated
option route_allowed_ips '1'

VXLAN over WireGuard
--------------------

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think there's a misunderstanding here.

VXLAN can work independently from wireguard, so we should document it independently.

VXLAN is a layer 2 tunnel which can be encapsulated in any L3 technology, so I don't think we need to specify VXLAN over wireguard.

Maybe, we can leave one last example showing how to encapsulate a vxlan tunnel in a wireguard tunnel.

Comment thread docs/source/backends/openwrt.rst Outdated
| | | | |
| | | | 2 to 15 alphanumeric characters, dashes and underscores |
+-----------------------+---------+-----------+-----------------------------------------------------------------+
| ``route_allowed_ips`` | boolean | ``False`` | automatically create a route for each Allowed IPs for this peer |

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's fine but automatically create a route for each of the Allowed IPs for this peer flows more smoothly.

ghost
ghost previously approved these changes May 31, 2021

@ghost ghost left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Docs look good

@nemesifier nemesifier left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pandafy can you address this suggestion please?
#187 (review)

The rest looks good and I think we should merge!

@nemesifier nemesifier left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pandafy it's ready to merge but I think we can squash/group some commits of yours to keep history tidy, please proceed when you can.

@nemesifier
nemesifier merged commit b09d8a7 into master Aug 20, 2021
@nemesifier
nemesifier deleted the wireguard-vxlan branch February 18, 2022 19:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Development

Successfully merging this pull request may close these issues.

3 participants