Skip to content

Commit

Permalink
Merge pull request #282 from gravitl/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
abhishek9686 authored Feb 29, 2024
2 parents 293a732 + f660c7c commit d9ecbfa
Show file tree
Hide file tree
Showing 8 changed files with 90 additions and 1 deletion.
6 changes: 5 additions & 1 deletion external-clients.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ A remote access client is not "managed," meaning it does not automatically pull

By using this method, you can hook any machine that can run WireGuard into a netmaker network.

It is recommended to run the netclient where compatible, but for all other cases, a machine can be configured as a Remote Access Clients.
It is recommended to run the netclient where compatible, but for all other cases, a machine can be configured as a Remote Access Clients. This recommendation holds except in the situation where only remote access is required.

Remote access gateways can be configured as internet gateways. Internet gateways work like traditional VPNs: they channel all traffic of their connected clients through them, securely hiding the client's public IP address while they browse the internet.
Internet gateways can be configured via the `Remote Access tab`. See the below section for more information.


Configuring a Remote Access Gateway
Expand Down Expand Up @@ -111,3 +113,5 @@ Navigate to the remote access gateway setup mentioned above. Click the Internet

After that, your public IPv4 traffic for any connected client, will be routed through the internet gateway. Support for IPv6 is work in progress.
**NOTE**: You need to specify the "Default client DNS" so as to avoid DNS leaks. If you do not specify a Default client DNS, the client's local gateway DNS will be most likely used.

Netmaker Pro extends internet gateways to hosts as well as clients. View `the Pro documentation <pro/internet-gateways.html>`_ for more information.
2 changes: 2 additions & 0 deletions features.rst
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ Netmaker Professional is our advanced Netmaker offering for business use cases.

- **Relays:** All traffic routing to and from in a network for a relayed machine will go through the relay machine.

- **Internet Gateways:** These work similar to traditional VPNs, and can work with netclients (hosts in the mesh network) as well as with remote devices connected to the network via client configs.

.. toctree::
:maxdepth: 1

Expand Down
Binary file added pro/images/inet-gw-create.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pro/images/inet-gw-delete.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pro/images/inet-gw-feature.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pro/images/inet-gw-update.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions pro/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,11 @@ FailOvers
:maxdepth: 2

pro-failovers

Internet Gateways
-----------------------

.. toctree::
:maxdepth: 2

internet-gateways
75 changes: 75 additions & 0 deletions pro/internet-gateways.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
===================================
Internet Gateways
===================================

Internet gateways is a Pro-only feature that allows hosts in a Netmaker mesh network to connect to the internet via a gateway. This brings the possibility of a traditional VPN to machines with netclient installed on them. Internet gateways can be configured from the Internet gateway tab.

.. image:: images/inet-gw-feature.png
:alt: internet gateway feature
:align: center
:width: 50%

Only Linux hosts can be setup as internet gateways. Both Windows and Linux hosts can be connected to an internet gateway however. Remote clients can also be connected to internet gateways via a client config.

This feature was introduced in v0.23.0 and is in beta (for this release).

Any relay behind an internet gateway will have its traffic, as well as traffic of its relayed hosts going through the internet gateway.
This behaviour also happens with remote access gateways and their connected clients; a remote access gateway behind an internet gateway would have its traffic, as well as traffic of its clients, passing through the internet gateway.


**For Community Edition (CE) Users**, clients can still access internet gateways via the `Remote Access tab`. View `here for more info <../external-clients.html#internet-gateway-traditional-vpn>`_.

Usage
======

Create an internet gateway
--------------------------

.. image:: images/inet-gw-create.png
:alt: internet gateway creation
:align: center
:width: 50%

1. Under a network, switch to the "Internet Gateways" tab
2. Click on Create Gateway
3. Select the desired Linux host to serve as the internet gateway (VPN server, in traditional parlance)
4. Optionally choose the hosts you want to connect to the internet gateway
5. Click on create

**NOTE:** A host can only be connected to at most one internet gateway, regardless of the networks the host is in.

**NOTE:** A host already connected to an internet gateway cannot be a gateway itself. ie: internet gateway chaining is not supported currently.


Update an internet gateway
--------------------------

.. image:: images/inet-gw-update.png
:alt: internet gateway update
:align: center
:width: 50%

1. Select an internet gateway from the gateways table
2. Click on the update gateway button (from the table row actions dropdown or "Update connected hosts" button on top of the associated "Connected Hosts" table)
3. Update the gateway and save changes


Delete an internet gateway
--------------------------

.. image:: images/inet-gw-delete.png
:alt: internet gateway deletion
:align: center
:width: 50%

1. Click on the delete button from the table row actions dropdown
2. Confirm gateway deletion. This does not entirely remove the host from the network; it only stops the host from serving as an internet gateway.


FAQs and Known Issues
=====================

**Q: Why not Remote Access Gateway as an internet gateway.**

A: Although possible, that serves a similar but different use case. Internet gateways allow not only remote clients, but also and peculiarly, hosts in the Netmaker mesh network to also connect to the internet via a gateway.
This brings the possiblility of a traditional VPN to machines with netclient installed on them. This feature can be accessed from the Internet gateway tab.

0 comments on commit d9ecbfa

Please sign in to comment.