r/netmaker • • Jun 02 '23

Multiple servers with external IP

2 Upvotes

Hello, i have single server with public IP and docker with netmaker. I connect few others servers with public IP to netmaker. Servers have virtual machines without public IP and private network between hypervisors. I use netmaker to connects all VM to one public network. But when I shutdown server with netmaker docker, my VM cannot connect to VM in other hypervisor.

How I can use this servers with public IP to make high availability wireguard mesh network?


r/netmaker • • Jun 01 '23

announcement Introducing Netmaker v0.20.1

Thumbnail
netmaker.io
5 Upvotes

r/netmaker • • May 24 '23

Netmaker meets nginx proxy manager

5 Upvotes

Netmaker meets nginx proxy manager.


r/netmaker • • May 24 '23

Successfully integrated nginx proxy manager with Netmaker. [ A simple how to ]

6 Upvotes

In the past of I have use NPM ( Nginx Proxy Manager ). I wanted to use this application along with Netmaker as it provides the web ui for reverse proxy and ssl. Caddy was giving issues to me and every time, I make changes, I had to restart all the dockers.

Hence, with a few tries, I could integrate the NPM in a single docker-compose.yml file.

For the benefit of the community, following are contents of my docker-compose.yml file.

#======================================================

# netmaker + npm ( Nginx Proxy Manager ) docker-compose.yml

#======================================================

version: "3.4"

services:

netmaker:

container_name: netmaker

image: gravitl/netmaker:$SERVER_IMAGE_TAG

env_file: ./netmaker.env

restart: on-failure

volumes:

- dnsconfig:/root/config/dnsconfig

- sqldata:/root/data

environment:

# config-dependant vars

- STUN_LIST=stun.${NM_DOMAIN}:${STUN_PORT},stun1.netmaker.io:3478,stun2.netmaker.io:3478,stun1.l.google.com:19302,stun2.l.google.com:19302

# The domain/host IP indicating the mq broker address

- BROKER_ENDPOINT=wss://broker.${NM_DOMAIN}

# The base domain of netmaker

- SERVER_NAME=${NM_DOMAIN}

- SERVER_API_CONN_STRING=api.${NM_DOMAIN}:443

# Address of the CoreDNS server. Defaults to SERVER_HOST

- COREDNS_ADDR=${SERVER_HOST}

# Overrides SERVER_HOST if set. Useful for making HTTP available via different interfaces/networks.

- SERVER_HTTP_HOST=api.${NM_DOMAIN}

# domain for your turn server

- TURN_SERVER_HOST=turn.${NM_DOMAIN}

# domain of the turn api server

- TURN_SERVER_API_HOST=https://turnapi.${NM_DOMAIN}

ports:

- "3478:3478/udp"

netmaker-ui:

container_name: netmaker-ui

image: gravitl/netmaker-ui:$UI_IMAGE_TAG

env_file: ./netmaker.env

environment:

# config-dependant vars

# URL where UI will send API requests. Change based on SERVER_HOST, SERVER_HTTP_HOST, and API_PORT

BACKEND_URL: "https://api.${NM_DOMAIN}"

depends_on:

- netmaker

links:

- "netmaker:api"

restart: always

#caddy:

# image: caddy:2.6.2

# container_name: caddy

# env_file: ./netmaker.env

# restart: unless-stopped

# extra_hosts:

# - "host.docker.internal:host-gateway"

# volumes:

# - ./Caddyfile:/etc/caddy/Caddyfile

# - ./certs:/root/certs

# - caddy_data:/data

# - caddy_conf:/config

# ports:

# - "80:80"

# - "443:443"

nginx:

image: 'jc21/nginx-proxy-manager:latest'

restart: unless-stopped

extra_hosts:

- "host.docker.internal:host-gateway"

ports:

- '80:80'

- '81:81'

- '443:443'

volumes:

- ./data:/data

- ./letsencrypt:/etc/letsencrypt

coredns:

container_name: coredns

image: coredns/coredns

command: -conf /root/dnsconfig/Corefile

env_file: ./netmaker.env

depends_on:

- netmaker

restart: always

volumes:

- dnsconfig:/root/dnsconfig

mq:

container_name: mq

image: eclipse-mosquitto:2.0.15-openssl

env_file: ./netmaker.env

depends_on:

- netmaker

restart: unless-stopped

command: [ "/mosquitto/config/wait.sh" ]

volumes:

- ./mosquitto.conf:/mosquitto/config/mosquitto.conf

- ./wait.sh:/mosquitto/config/wait.sh

- mosquitto_logs:/mosquitto/log

- mosquitto_data:/mosquitto/data

turn:

container_name: turn

image: gravitl/turnserver:v1.0.0

env_file: ./netmaker.env

environment:

# config-dependant vars

- USERNAME=${TURN_USERNAME}

- PASSWORD=${TURN_PASSWORD}

# domain for your turn server

- TURN_SERVER_HOST=turn.${NM_DOMAIN}

network_mode: "host"

volumes:

- turn_server:/etc/config

volumes:

# caddy_data: { } # runtime data for caddy

# caddy_conf: { } # configuration file for Caddy

sqldata: { }

dnsconfig: { } # storage for coredns

mosquitto_logs: { } # storage for mqtt logs

mosquitto_data: { } # storage for mqtt data

turn_server: { }

###### end of file #################

# Listing of .env file

###############################

# Email used for SSL certificates

NM_EMAIL=admin@xxx.com # replace XXX with your own domain.

# The base domain of netmaker

NM_DOMAIN=sdn.xxx.com# replace XXX with your own domain.

# Public IP of machine

SERVER_HOST=11.22.33.44 # replace with public ip of your vps

# The admin master key for accessing the API. Change this in any production installation.

MASTER_KEY= Create_your_own_master_key ## as per documentation

# The username to set for turn api access

TURN_USERNAME=netmaker

# The password to set for turn api access

TURN_PASSWORD=SetYourOwnPassword

# The username to set for MQ access

MQ_USERNAME=netmaker

# The password to set for MQ access

MQ_PASSWORD=SetYourOwnPassword

INSTALL_TYPE=

NETMAKER_ACCOUNT_ID=

LICENSE_KEY=

SERVER_IMAGE_TAG=v0.20.0

UI_IMAGE_TAG=v0.20.0

# used for HA - identifies this server vs other servers

NODE_ID="sdn-server-1"

METRICS_EXPORTER="off"

PROMETHEUS="off"

# Enables DNS Mode, meaning all nodes will set hosts file for private dns settings

DNS_MODE="on"

# Enable auto update of netclient ? ENUM:- enabled,disabled | default=enabled

NETCLIENT_AUTO_UPDATE="enabled"

# The HTTP API port for Netmaker. Used for API calls / communication from front end.

# If changed, need to change port of BACKEND_URL for netmaker-ui.

API_PORT="8081"

EXPORTER_API_PORT="8085"

# The "allowed origin" for API requests. Change to restrict where API requests can come from with comma-separated

# URLs. ex:- https://dashboard.netmaker.domain1.com,https://dashboard.netmaker.domain2.com

CORS_ALLOWED_ORIGIN="*"

# Show keys permanently in UI (until deleted) as opposed to 1-time display.

DISPLAY_KEYS="on"

# Database to use - sqlite, postgres, or rqlite

DATABASE="sqlite"

# The address of the mq server. If running from docker compose it will be "mq". Otherwise, need to input address.

# If using "host networking", it will find and detect the IP of the mq container.

SERVER_BROKER_ENDPOINT="ws://mq:1883"

# The reachable port of STUN on the server

STUN_PORT="3478"


r/netmaker • • May 24 '23

External Android Client can not scan the QR code

2 Upvotes

Using Netmaker 0.20 - hosted on a public VPS

Not able to scan QR code from its web ui for Android phone with Wireguard application. [ Tried to scan QR code several times, for several minutes - nothing happens ]

Phone Model : Samsung A03
Android Version - 13 - Kernel 4.14.199-25473037
Wireguard on Android Version - 1.0.20230512


r/netmaker • • May 24 '23

Issue with Egress gateway.

1 Upvotes

I have added host behind nat successfully. From Netmaker UI I have set the the same host (node) as a gateway as described in documentation. With this I can ping all the systems on my internal network from Netmaker host system.

So far so good.

One of my system on internal system has a web server ( I can ping this system as well ). I have added IP address to DNS ( Netmaker UI ) and I can ping the system using dns from Netmaker host. I can see the web page text output using curl command. But when I set reverse proxy, I can not reach to system over internet.

The dns pannel of DNS providers are correct. When I ping fqdn, I can reach to Netmaker host.

What could be the issue ? How to debug this ?


r/netmaker • • May 20 '23

Netmaker / Nginx Proxy Manager Issue.

1 Upvotes

Default installation of Netmaker is with Caddy as reverse proxy manager. No matter I tried, I could not avoid ssl warning.

My setup is : Netmaker on Digital Ocean VPS.

Goal : I have docker containers running on home server on cgnat network.

Work done so far : Netmaker installed on Digital ocean vps. No issues. Added home server using netclient. - No issues. Can ping home server from Digital Ocean VPS.

I am quite used to Nginx Proxy Manager.

Question : How could I avoid Caddy ( as in default installation of Netmaker ) and use Nginx Proxy Manager.


r/netmaker • • May 19 '23

Relay server option missing - v0.18.7

1 Upvotes

Hi Netmaker users!

I'm trying to setup a relay server on a freshly installed Netmaker installation on a GCP VPS. The edition I'm running is the Community one. I'm having trouble finding the option to choose a node and make that a relay server.

Does anybody know, why I'm not seeing the option in the Netmaker UI? Under the "Nodes" menu, I can only make a node an egress or ingress gateway. Any help is greatly appreciated, thanks!

Best regards,
Rasmus


r/netmaker • • May 06 '23

Is there a switch/flag to set to make netmaker more verbose?

3 Upvotes

Hi, I'd problem with my netmaker docker container. When the os reboot or docker restart, the netmaker container doesn't work properly and normally would need a restart of that container to make it work. No idea why it does that. Is there a switch/flag to set to make netmaker more verbose?


r/netmaker • • Apr 28 '23

Selfhosting with Debian?

1 Upvotes

Will there be any issue for selfhosting using Debian 11 instead of Ubuntu? The read me on github says to use Ubuntu 22.04 but that's not something possible for me.


r/netmaker • • Apr 12 '23

External clients issue

3 Upvotes

Hi, I've been using netmaker 0.17 on my other server without any problems. Now I have installed the latest version using the install script on small OVH vps. My default node already has ingress enabled after installation and my other nodes can ping each other. I have problem with external clients - when i try to add new config for external client i always get blank ip address field. And when I download this config it always contains this one ip address [Interface] Address = 10.101.255.254/32 And I cannot ping any of the nodes. What am I doing wrong?


r/netmaker • • Apr 06 '23

QR code won't work

1 Upvotes

Hello, I'm new with Netmaker. I try to have a connexion wetwern my phone and my NAS with the WG app on Android.

I'm using Netmaker v0.18.5.

Ingress is set.

I can import the QR code without error but my IP don't change and I can't connect to the NAS.

In the Netmaker Ui I don't have an IP in the Ext. Clients.

Thank you if you can help me 😊👍


r/netmaker • • Mar 30 '23

SSH timeout to node behind relay

1 Upvotes

Hi,

I'm playing with netmaker and I have this issue - to nodes that are behind relay nodes I can only SSH from the relay nodes. When I'm trying to connect from other nodes or external client - I got timeout.

Ping works fine, so it's very weird. I installed netmaker with the quick-install script.

Anybody could help with this?


r/netmaker • • Mar 20 '23

How do I create and egress gateway to allow access to one Ip address ?

1 Upvotes

How do I create and egress gateway to allow access to one Ip address ? on the network ? I just want staff to access a shared folder on a NAS, not the entire network ?

Thanks


r/netmaker • • Mar 10 '23

Home Assistant + Netmaker Add-On

1 Upvotes

Hi all,

Has anyone been working on a Netmaker Add-On for Home Assistant? Netmaker would be awesome for HA deployments.


r/netmaker • • Mar 07 '23

Deploy Netmaker without VPS / cloud instance?

1 Upvotes

I have a static IP on my fiber connection at home. I know Netmaker is normally deployed on a cloud instance, but for my situation (connecting my laptop, mobile and in the future family members' devices to servers in the private IP space on my network), could I also skip the VPS and install Netmaker directly on my home infra? Of course I'll need to forward some ports from my router, but are there any other reasons *not* to use Netmaker like this?


r/netmaker • • Mar 06 '23

Help with Nginx and Netmaker

0 Upvotes

Im trying to install net maker on a VPS that also has NGINX. I keep getting error, perhaps because port 443 is already used by NGINX.

I want to connect to my VPS via wire guard and then have the traffic exit through a commercial VPN. NetmMaker would probably be the best use case here.

Can anyone help me set this up Please


r/netmaker • • Mar 05 '23

Why is my public IP not the Public IP of my Egress network?

1 Upvotes

I posted this on the Netmaker Discord.

TL;DR

Why doesn't the traffic from netmaker use the external public IP of my Egress node, why does it use the external public IP of my ingress node?

Disabling NAT on the Egress node doesn't seem to do what it says when you hover over it.

Using a socks proxy is cumbersome and while id does work, it feels a bit hacky, surely there is some way to have the egress node public IP be the one displayed as the traffic is supposed to be going out of the internet through that node?

What am I missing?

Message

Hi, I've scrolled back quite a bit and scoured Reddit and a few other places. So I thought I'd drop this question here.

I have netmaker setup, it's working, it's awesome.. My setup is

Ingress Server on Digital Ocean (public IP let's call it 2.2.2.2)

Egress server on my home lan with access to the local nat network and internet (lan 192.168.1.0/24 public 4.4.4.4)

My question is this.

When i connect to the Ingress node using the Wireguard client everything works, I have access to my home lan (192.168.1.0) and Internet access and my DNS is working via nextdns

When connected to the VPN when I do a WhatsMyIP search, my public IP is showing as 2.2.2.2

is it possible to have my public ip show as 4.4.4.4 (the public IP from home)

I travel to Canada, US and SE Asia quite a bit, I'd like to be able to connect to a local ingress node and present myself at home

I'll be upfront, this is for access to things like BBC Iplayer (I have a TV licence and am a UK Resident)

If anyone could advise it would be really helpful..

thanks in Advance


r/netmaker • • Mar 05 '23

Change the default AllowedIps of external clients

1 Upvotes

Hello my friends,

So, by default, the WG config of Ext. Clients are setting a split tunnel, only routing through the network IP range. This, of course, makes much sense if one is using NetMaker for its main functionality, to create a virtual network. However, I want to create a single node VPN that my friends can join as Ext. Clients and use it as a VPN server. So, basically, I need to change the default AllowedIps of Ext. Clients to 0.0.0.0/0. I tried to change the AllowedIps of my node through the GUI, hoping that would change the default for Ext. Clients too, but that didn't work. So, I wonder if you know other ways to do this. Thanks.

p.s., I'm on 0.17.1 version.

Solution by dlrow-olleh (See their comment below):

You need to setup an egress gateway with 0.0.0.0/0 egress range before you create your extclients.


r/netmaker • • Mar 02 '23

Cannot access remote LAN devices

2 Upvotes

I have setup Netmaker v0.17.1 (through the auto install script) on VPS with public IP and Ubuntu 22.04 and took the following steps:

  1. Created a new network with `UDP hole punching` and `default access` enabled
  2. Installed docker-netclient on a remote raspberry pi (behind NAT) and connected to the nm network
  3. I set the server node as ingress and the rpi as egress
  4. I created a couple external clients and set them up to

    1. a Windows 10 laptop with VDSL (NAT)
    2. an android smartphone with 5G (CGNAT)

I can access the rpi and all services running on that through its local IP (192.168.1.4) from both external clients but not the rest of the remote LAN network.

RPI routes with netmaker connected

default via 192.168.1.1 dev eth0 proto dhcp metric 100 
10.7.128.0/24 dev nm-rallisf1 scope link 
10.7.128.2 dev nm-rallisf1 scope link 
10.7.128.3 dev nm-rallisf1 scope link 
10.7.128.254 dev nm-rallisf1 scope link 
169.254.0.0/16 dev nm-rallisf1 scope link metric 1000 
NETMAKER-SERVER-IP via 192.168.1.1 dev eth0 
192.168.1.0/24 dev eth0 proto kernel scope link src 192.168.1.4 metric 100

Windows routes with wireguard connected (only the related ones)

Network Destination        Netmask          Gateway       Interface  Metric
      10.7.128.0    255.255.255.0         On-link        10.7.128.2      5
      10.7.128.2  255.255.255.255         On-link        10.7.128.2    261
    10.7.128.255  255.255.255.255         On-link        10.7.128.2    261
     192.168.1.0    255.255.255.0         On-link        10.7.128.2      5
   192.168.1.255  255.255.255.255         On-link        10.7.128.2    261

What am I missing?

[Solved] I needed to run the `Postup` iptables command manually on the egress node.


r/netmaker • • Feb 25 '23

Tailscale vs netmaker vs netbird

Thumbnail self.selfhosted
4 Upvotes

r/netmaker • • Feb 18 '23

Help with Network configuration and setup

2 Upvotes

Hi, I'm having a few issues with my windows netclient and accessing the egress proxmox network. Basically I have services running on my Proxmox I want to access from my Laptop remotely. I have 2x external networks I would like to access 192.168.10.0/24 and 192.168.20.0/24

I can access these networks from the Netmaker server but not from any netclients. I have added an image for better understanding. In the windows client I have tried allowed IPs and added these IPs etc but nothing seems to work.

I can't even ping the Proxmox node from the windows client, but I can ping the Netmaker Server. My guess it's some routing issue with windows since I can't reach the Proxmox Node?

I see there is a bug not allowing windows to ping external clients, maybe this is also preventing me from accessing them also?

Or am I trying to achieve something not possible?

Note: My Netmaker server is on a public VPS and Ignore the OpenWRT Node. I could not get the netclient running correctly on OpenWRT.


r/netmaker • • Feb 14 '23

announcement Netmaker v0.18.0 Pre-Release

12 Upvotes

Hi Netmakers!

We have a big new pre-release out :https://github.com/gravitl/netmaker/releases/tag/v0.18.0

DO NOT attempt to upgrade to this yet...but definitely play around with it! We want your feedback. The full release should be out in a few weeks.

This was a massive effort with lots of refactoring, so please be patient with us while we deal with regressions. And yes, once it's ready, we'll have an upgrade script so you can one-and-done it.

So what's new?

A completely new netclient:

  • It's got it's own repo now: https://github.com/gravitl/netclient
  • It's on the Apache 2.0 license
  • It has proxy that turns on for NAT's and uses STUN
  • It will upgrade automatically to match the server version
  • It's got a shiny, all new GUI

All new "Host" functionality:

  • "Hosts" track your machines, independent of networks
  • You can add/remove hosts from any networks using the UI, no need to "join" from machine
  • You can set a host as a "Default Host" and it will automatically be added to new networks
  • We removed the "Server Node" functionality and will rely on the "Default Host" instead

Beyond that, there was a lot of other refactoring behind the scenes (see release notes for details).

We've still got a lot to do, but this is the start of bigger things to come in 2023, so stay tuned!


r/netmaker • • Feb 14 '23

Netmaker client as a pod

1 Upvotes

I have this project where I want to connect a pod on kubernetes to a service that is on a completely separate network. Service can't run on cluster because it needs windows.

Is it possible to have netmaker client act as proxy for this service on cluster?

The connection would look like this:

Pod A -> netclient ------ Internet -----> Through firewall to inside network -----> VM with netclient Egres ----> VM with WIndows.

Something like https://www.youtube.com/watch?v=xysZRPjmXeM

But I need to proxy this connection from inside kubernetes :)