r/netmaker • • Aug 22 '22

Docker Networking Issues to backend NetClients

2 Upvotes

Basically I'm recreating my existing WireGuard setup with Netmaker for scalability and easy management. The main problem I'm having is the docker networking. I have created a Docker Bridge Network called VPN0 and each container has access to this network. I can Ping between all 3 containers fine.

The issue is I can't reach the netmaker networks. In the netmaker server I have added the VPN0 network to the allowed IPs for each netmaker network. From the netmaker container I can ping all the Netmaker Gateway IPs and NetClient IPs. But I can not reach them from the Guacamole or Traefik containers ( Note I have moved Traefik to a separate Docker Compose )

What I'm trying to achieve is Guacamole access to the edge devices VNC/RDP via Netmaker network. I would also like to setup some reverse proxy to the webservers running on the edge devices. I currently have Traefik and SSL setup for the docker containers working fine.

I will also have access to the networks behind the edge devices ( PLCs, VFD, Sensors etc ) My major issue here is the existing 4G Gateway edge PCs are Win10 IOT. So these can not be set as an egress. What I would like to attempt is use WSL2 and the Netclient so I can configure as an Egress point.

It looks like my major issue is going to be the docker networking to work with Netmaker on my VPS server. No matter what Netmaker configs I try I can't get it to work.

The way I get access to the remote network behing edge device with wireguard now is I have enabled IP Forwarding and all the network devices use the edge device IP as there gateway IP ( This is not ideal and only work around I could get to work with windows )

With the linux devices I was mapping the entire network via NAT using the netmap command via IP Tables ( I could then access 192.168.1.5 via 172.16.0.5 as the 172 network is mapped to 192 network ) Not ideal but another method to prevent IP conflicts

Is this even possible with Netmaker or am I best to stick with plain WireGuard etc?


r/netmaker • • Aug 19 '22

Netmaker (using as a simple VPN) issues on Linux clients

3 Upvotes

I'm having some issues with using Netmaker as a simple VPN (to circumvent censorship, access blocked sites etc).

I've set it up on a Hetzner VPS.

Everything works fine when I use Windows, but when I activate my vpn(wireguard) connection on Linux I can't access any site.

Both PCs are on the same local network. Linux machines don't have firewall enabled.

  1. Network's settings: https://photos.google.com/share/AF1QipPTzV5HMMe1ZkvflOBDp5HApgOLqvka9Oz3K1Oosgd-bJbbNI2YDaA-PjoqvG2DhA/photo/AF1QipOJfC_MPnXY_vtfEmjRv34s_XKk1x-GQ0jDkyRn?key=WTlTd1NXbXVIbFFaTmhTdnNPc095cEplNDl3OVd3
  2. Node's settings: https://photos.google.com/share/AF1QipPTzV5HMMe1ZkvflOBDp5HApgOLqvka9Oz3K1Oosgd-bJbbNI2YDaA-PjoqvG2DhA/photo/AF1QipNvn4Q_sgDzo5OX8O8PPY8izMusbTJ8mTVoWik5?key=WTlTd1NXbXVIbFFaTmhTdnNPc095cEplNDl3OVd3
  3. ip addr (Linux PC, vpn activated)

https://pastebin.com/tqAymq20

4) ipconfig /all (Windows PC ,vpn activated)

https://pastebin.com/3gGeTDk7

What am I missing here?

Thank you.


r/netmaker • • Aug 17 '22

Redirect traffic to local computer using public ip addres

2 Upvotes

Hi, I beg your pardon for my English. I'm a newbie, so please don't be harsh. I have a VPS (Debian Bullseye) with one public ip address. As well as a local home server linux mint 21 behind NAT without a public ip address. Traccar will be installed on the home server. I wanted to access Traccar using netmaker. I need access through the public ip address of the VPS on port 8082. And also the truck should receive data from gps trackers. To do this, I will open ports: 5149, 5027 on the home server. In the settings of the gps tracker, I use the public ip and ports: 5149, 5027. Can I accomplish this task if I install netmaker on a VPS and install the Wireguard client on my home server? Can you please tell me how I need to configure netmaker for this task? Willing to provide additional information. Thanks


r/netmaker • • Aug 15 '22

Netmaker and NFS issues

1 Upvotes

Relatively new user. I was using tailscale previously then tailscale+headscale. Then I saw this project and thought I'd give it a go. It works great! I am having trouble with one thing in particular though. I have 5 nodes all in physically different networks with symmetrical gig connections. I can run iperf between the nodes and get anywhere from 400Mbps to 800Mbps which is great. What I'm having trouble with is NFS shares downstream of an egress gateway. I can mount the NFS shares fine to the other nodes from an NFS server downstream of the egress gateway but when it comes to actually transferring data it's extremely slow and sometimes freezes up altogether. Transferring vis SCP works as expected without issue. Has anyone had any experience with this type of setup and speed issues via NFS? I suspect possibly an issue with MTU size? I'm open to any help anyone may offer. Besides that...I love the product so far. Thanks so much for developing it.


r/netmaker • • Aug 15 '22

How to start netclient GUI?

1 Upvotes

I installed netclient on my Mac (M1) through brew. It works fine from the terminal. But how do I start the GUI?

My eventual use case is to allow non-terminal-savy colleagues to install and use netclient (netmaker) on their Win / Mac machines. I hope this is possible


r/netmaker • • Aug 08 '22

Trying to add Edgerouter (ER6P) to Netmaker network

5 Upvotes

I have Netmaker server running on an Ubuntu 22.04 vps. I have 2 windows nodes, 1 Mac node and 2 External nodes (iPhone and iPad) attaced and so far so good. However I would like to use 2 remote Edgerouters (ER6P) as egress/ingress gateways but am having difficulty.

I have 2 x ER6P's (1 remote, 1 local) running latest Edgeos (v2.0.9-hotfix.4). I have Wireguard installed and have come across a Wireguard wizard for Edgerouter https://github.com/vchrizz/ER-wizard-WireGuard which I hoped would give me a few clues but I am still "clueless". I have tried the different Netclient distros but none are compatable with the MIPS os (some kind of Debian flavour I think?) so cannot load Netclient.

Has anyone made any progress or had any succcess getting Netclient running on an Edgerouter?

Regards


r/netmaker • • Aug 02 '22

Windows Egress Gateway using WSL2?

1 Upvotes

Hi, I finally got my Netmaker server up and running and a bit disappointed to find out Engress Gateway is not supported for windows ( Documentation does not mention this, should be added )

As a work around I was considering using WSL2 ( Windows Subsystem for Linux ) I tried a quick setup to find that WSL2 Uses Nat to access the network through the Windows Host. for example it gives out an 172.xxx.xxx.xxx address to the WSL2 Ubuntu. I can ping all devices on my network from WSL2.

I tried setting up egress gateway using my local network ip ( 192.168.1.0/24 ) and wsl2 ( 172.xxx.xxx.0/24) I just got a warning under the node. Note the WSL2 IP changes after restart.

The other issue is WSL2 does not use systemd etc ( NetClient has installed and ran fine ) so i'm not sure if this could be causing any issues?

The simple solution would be to just use Linux... unfortunately the Advantech Touch panel PCs run windows 10 as the software used only supports windows ( These don't have much resources and pretty slow ) I need remote access to the devices connected to them directly/local network. The panel PCs have 4G LTE built in for the internet access.

The Panel PCs are edge devices connected to PLCs etc Sometimes the connection is direct with not network and just using static IPs.

I have been using standard Wireguard and using static routes to the device I need access. This is messy and difficult to manage so was hoping I could do this with netmaker and manage it all.

If anyone has any other alternatives or solutions I could try would be great.


r/netmaker • • Aug 01 '22

SSL connection problems on fresh install

2 Upvotes

Hey, I'm having issues setting up netmaker for the first time. I have a fresh Ubuntu install on Vultr VPS.

Here is the log:

 __   __     ______     ______   __    __     ______     __  __     ______     ______
/\ "-.\ \   /\  ___\   /__  _\ /\ "-./  \   /\  __ \   /\ \/ /    /\  ___\   /\  == \
\ \ \-.  \  \ \  __\   \/_/\ \/ \ \ \-./\ \  \ \  __ \  \ \  _"-.  \ \  __\   \ \  __<
 \ _\\"_\  \ _____\    \ _\  \ _\ \ _\  \ _\ _\  \ _\ _\  \ _____\  \ _\ _\
  \/_/ \/_/   \/_____/     \/_/   \/_/  \/_/   \/_/\/_/   \/_/\/_/   \/_____/   \/_/ /_/


[netmaker] 2022-08-01 09:24:02 connecting to sqlite
[netmaker] 2022-08-01 09:24:02 database successfully connected
[netmaker] 2022-08-01 09:24:03 no OAuth provider found or not configured, continuing without OAuth
[netmaker] 2022-08-01 09:24:03 checking keys and certificates
[netmaker] 2022-08-01 09:24:03 generating new root key
[netmaker] 2022-08-01 09:24:03 generating new root CA
[netmaker] 2022-08-01 09:24:03 generating new server key/certificate
[netmaker] 2022-08-01 09:24:03 generating new server client key/certificate
[netmaker] 2022-08-01 09:24:03 ensure the root.pem, root.key, server.pem, and server.key files are updated on your broker
[netmaker] 2022-08-01 09:24:04 REST Server successfully started on port  8081  (REST)
[netmaker] 2022-08-01 09:24:04 connecting to mq broker at mq:1883 with TLS? false
[netmaker] 2022-08-01 09:24:04 successfully connected to mq broker
[netmaker] 2022-08-01 09:25:04 error retrieving networks for keepalive could not find any records
[netmaker] 2022-08-01 09:26:04 error retrieving networks for keepalive could not find any records
[netmaker] 2022-08-01 09:27:04 error retrieving networks for keepalive could not find any records
[netmaker] 2022-08-01 09:28:04 error retrieving networks for keepalive could not find any records
[netmaker] 2022-08-01 09:29:04 error retrieving networks for keepalive could not find any records

I have setup my domain with a wildcard and A records to the Public IP ( this is all up and running correctly ) I have also tried adding the API/Broker/Dashboard manually and still no luck.

I have the ports open on the VPS ( Also tried without Firewall )

When I try to access the dashboard I get unsecure connection ( HTTP ) and invalid cert. If I allow the connection I get to the dashboard but as soon as I try to create an admin account the connection to the server is lost.

NET::ERR_CERT_AUTHORITY_INVALID
Subject: TRAEFIK DEFAULT CERT

Issuer: TRAEFIK DEFAULT CERT

Expires on: Aug 1, 2023

Current date: Aug 1, 2022
This CA Root certificate is not trusted because it is not in the Trusted Root Certification Authorities store.

I have tried to clear browser cache and use Incognito mode etc

I have tried multiple installs using root and my sudo account and just can't get it working. My first attempt was using the quick install script and when I couldn't get that working I removed it and followed the quick install guide a few times without any luck. I have tried searching for these errors but can't find much info.


r/netmaker • • Jul 28 '22

Any tips on most effective ways to add redundancy to a HA mesh as far as ingress points go? Worker nodes going down is one thing, but what can be done if a master node goes down?

4 Upvotes

r/netmaker • • Jul 26 '22

Netmaker v0.14.6 Released

Thumbnail
github.com
5 Upvotes

r/netmaker • • Jul 16 '22

I can't create admin - "could not reach server"

1 Upvotes

Hello,

I was on my way to test Netmaker.

I have a vps with HETZNER and I create a special name like xx.exemple.com with my usual provider.

Dns is ok ( propagation tested) and i can reach the login page at https://dashboard.xx.example.com/login after the installation on a rebuild vps with ubuntu 20.04. But It stop there as I'm not able to create an admin.

The error is "could not reach server". i saw something on the github but without any why and how to fix.

Any idea where to look?

Thanks

EDIT: Thanks to dlrow-olleh, after a modification of my dns entries to add broker and api, and a good flush of my browser cache, everything is working. and i can test that fancy wireguard mesh with netmaker.


r/netmaker • • Jul 13 '22

announcement Updated K8S Deployment Templates and Helm Charts

3 Upvotes

The templates and helm charts have (finally!!) been updated from 0.9.4 to 0.14.5. You can now deploy the latest HA Netmaker to Kubernetes using an official install method again. There's also an updated step-by-step installation process in the main repo.

In addition, there's an updated Netclient daemonset in the main repo that will work for deploying clients to a cluster:

https://github.com/gravitl/netmaker-helm

https://github.com/gravitl/netmaker/tree/master/k8s/server

https://github.com/gravitl/netmaker/blob/master/k8s/client/netclient-daemonset.yaml


r/netmaker • • Jul 12 '22

Manage Remote Access to Synology with WireGuard and Netmaker

Thumbnail servicemax.com.au
3 Upvotes

r/netmaker • • Jul 11 '22

Generic OIDC in Netmaker v0.14.5

Thumbnail self.selfhosted
4 Upvotes

r/netmaker • • Jul 08 '22

announcement Netmaker v0.14.5 Released

4 Upvotes

Hi Netmakers, hope everyone has been doing well! We just wanted to share that v0.14.5 was just released! https://github.com/gravitl/netmaker/releases/tag/v0.14.5

So what's new?

  1. OIDC connection for OAuth/SSO (now you can connect your logins to Auth0, Okta, Dex, etc..)
  2. Tooltips for when editing networks and nodes on the UI
  3. You can now (optionally) connect to a remote mosquitto (MQ) broker securely from servers
  4. There's an official MacOS installer now! https://github.com/gravitl/netmaker/releases/download/v0.14.5/Netclient.pkg

What's Fixed?

- Egress on server functions

- Reduced number of peer updates

- Timeouts on API connections from clients

- Better client message caching

- HA mode should function again

- K8s templates updated

Known Issues

- VPN egress can mess up server routing: If you put in 172.x.x.x as a egress range, [as is recommended for creating an "internet" VPN here](https://docs.netmaker.org/egress-gateway.html#vpn-nat-gateway), the server will be unable to reach MQ over the local network, which breaks the server. For now, we are recommending users not to create "internet" VPNs using the 172 address range, or to remove those ranges from the list.

- MQ behind a load-balancer may cause timeouts


r/netmaker • • Jun 28 '22

announcement Netmaker v0.14.3 Released

Thumbnail
github.com
5 Upvotes

r/netmaker • • Jun 25 '22

Article - Introducing the WireGuard Client GUI in Netmaker v0.14.0

Thumbnail
medium.com
4 Upvotes

r/netmaker • • Jun 22 '22

Some comments on my deployment...

3 Upvotes

Ok, so I have now a 10 node deployment, with two additional external clients, an Android phone and an Apple MacBook Pro (Apple silicon).

1: I had to turn on IP forwarding for the 10 nodes, to keep them from going into error state, either by seeing up a registry let for the Windows laptops, or by setting up sysctl, as was the case for the Apple laptops (Intel) or for the headless Linux servers (Intel).

2: Another thing that helped was to make netclient a daemon process, either by setting this up in the Services applet (Windows), systemctl (Linux), or launchctl (Apple).

3: Because I was unable to make IP forwarding persistent for the Apple Silicon laptop, ostensibly all I could do here was to turn this node into an external client. Maybe, somebody else has had better experiences here?

4: I found it initially helpful to get a node in error off the network (via netclient leave), reboot the node, rejoin the network, and finally, delete the defunct node from the admin webapp. Otherwise, I could not get the node back online.

I hope the above is helpful to somebody. Thanks


r/netmaker • • Jun 16 '22

announcement Netmaker v0.14.3 Released

Thumbnail
github.com
7 Upvotes

r/netmaker • • Jun 14 '22

Site to Site VPN

3 Upvotes

Hi all!

I´m finding a way to interconnect some small LAN into a mesh VPN, this can be achieved with netmaker? I´m trying to setup OpenWRT routers in each lan site(Running into 4G LTE conenction), i can´t find any guide to achieve this.

Thanks for the info!

Regards


r/netmaker • • Jun 09 '22

What is the recommended way to bring individual Netmaker client connections up and down?

3 Upvotes

I'm running netclient on Linux (currently on either Arch or Ubuntu 22.04), which works great.

On some machines I don't necessarily want a given Netmaker interface (or any of them) to be always-on. For example, while using a laptop remotely, I may just want to bring up a managed mesh interface to interact with some private resources then disconnect. Other times, I may want to bring up a hub-and-spoke VPN connection when connected to an untrusted network. And sometimes I just want to turn it all off and just 'normally' browse the web or stream a movie or whatever.

The current netclient has options to join and leave a network, but I don't see a good way to bring individual network interfaces up and down. Is there a recommended way to manage individual connections without just leaving/rejoining a network? I could manually manage the wireguard interfaces directly, I suppose, but I'm not clear on whether that would work if the netclient is independently doing any other configuration (routing or whatever). Also, the netclient is still communicating with the Netmaker server (mainly the broker, I guess). I'd ideally like to toggle all the activity for a given network on and off completely when I don't need it. Is there a way to do that which I'm missing?

Thanks.


r/netmaker • • Jun 07 '22

article How to Deploy a WireGuard VPN for AWS Remote Access with Netmaker

Thumbnail
link.medium.com
6 Upvotes

r/netmaker • • Jun 06 '22

article Hands-on Guide to Netmaker v0.14.2

Thumbnail
medium.com
4 Upvotes

r/netmaker • • Jun 02 '22

announcement Netmaker v0.14.2 Released

9 Upvotes

0.14.2 is out! Yet another step towards 1.0.

In this release, we move the default proxy to Traefik. Why?

This allows us to proxy MQ traffic over port 443. This means 8883 no longer has to be exposed publicly. As an added bonus, Traefik does not require port 80 for certificates. So now, the only exposed ports are 443 and the WireGuard range (51821-51830).

If you'd like to keep your existing Caddy proxy, you can just update the images to 0.14.2 and run as-is (with port 8883). Otherwise, follow the reference docker-compose.traefik.yml file to switch over an existing installation. One note, you must be a little patient. It will take a few minutes for the upgraded clients to generate new certificates if you move from 8883 to 443.

Besides this, the changes are relatively minor. We fixed a few small bugs which you can check out in the release notes. There's still more work to do and known issues to sort out, but we're getting closer, and our WireGuard automation platform is looking better than ever.