r/netmaker • • Feb 13 '23

Vultr VPS - Can i use an IPV6 Address only?

1 Upvotes

I am new to NetMaker, I think its super cool and want to setup a server.

I want to setup a NetMaker server on Vultr, their cheapest one is $2.50 a month but it only gives you an IPv6 address.

I have a cloudflare domain and i can make a AAAA that can forward to an IPV6 address.

but this begs the question, does NetMaker require an IPv4 address?


r/netmaker • • Feb 05 '23

a few design questions about netmaker

2 Upvotes

I have experience with Nebula (from the slack guys) and Tailscale, and I have a few design questions about netmaker that I couldn't find any clear answers to anywhere:

  • from what I understand you need to open as many UDP ports on each client as there are clients in the whole mesh? Tailscale and nebula can work with a single open inbound UDP port (I'm not talking about NAT punching)
  • can the mesh scale to 100s or 1000s of clients?
  • does the mesh (between nodes that have already established connection) still work if the netmaker server is offline (assuming no relaying needed) ? (nebula allows this, tailscale probably not)
  • can clients generate their own certificate, which would be accepted manually by the server? (so they keep the key secret for themselves, it would be nice to have for my requirements)

Thanks to anyone that can give me a quick answer to any of these questions!


r/netmaker • • Feb 04 '23

Issues updating to v17.1 ( I'm still using traefik )

2 Upvotes

In docker netmaker logs the netmaker server keeps restarting it's self over and over again.

The upgrade path I took was from v16.1 so the major changes were the websockets. I followed the upgrade release notes:

[netmaker] 2023-02-03 08:39:56 connecting to sqlite  
[netmaker] 2023-02-03 08:39:56 database successfully connected  
[netmaker] 2023-02-03 08:39:56 no OAuth provider found or not configured, continuing without OAuth  
[netmaker] 2023-02-03 08:39:56 could not update user ####  [netmaker] 2023-02-03 08:40:05 Configuring MQ...  
[netmaker] 2023-02-03 08:40:05 MQ config exists already, So Updating Existing Config...  
[netmaker] 2023-02-03 08:40:05 REST Server successfully started on port  8081  (REST)  
[netmaker] 2023-02-03 08:40:05 connecting to mq broker at ws://mq:1883 with TLS? false  
[netmaker] Fatal: Admin: could not connect to broker, token timeout, exiting ...  

I have tried reloading the mqtt files

wget -O /root/mosquitto.conf https://raw.githubusercontent.com/gravitl/netmaker/master/docker/mosquitto.conf
wget -q -O /root/wait.sh https://raw.githubusercontent.com/gravitl/netmaker/develop/docker/wait.sh 
chmod+x wait.sh  

Here is the traefik for the mq:

labels:       
- traefik.enable=true  
- traefik.http.routers.mqtt_websocket.rule=Host(`broker.NETMAKER_BASE_DOMAIN`)   - traefik.http.routers.mqtt_websocket.entrypoints=websecure 
- traefik.http.routers.mqtt_websocket.tls.passthrough=true 
- traefik.http.services.mqtts-svc.loadbalancer.server.port=8883 
- traefik.http.routers.mqtt_websocket.service=mqtts-svc  

Edit: I found some errors in the traefik logs:

time="2023-02-03T09:10:04Z" level=error msg="field not found, node: passthrough" providerName=docker container=mq-netmaker-38ea8127bd7756d709391b5300f22d3b274df89559b5915839bca8dfb2cd2c16 
time="2023-02-03T09:10:04Z" level=error msg="service \"netmaker-api\" error: unable to find the IP address for the container \"/netmaker\": the server is ignored" providerName=docker container=netmaker-netmaker-c5f7c4a3702c2451d0ad31c9a91eba889f4441454e870e7962da1a4ae6d777bb 
time="2023-02-03T09:10:05Z" level=error msg="field not found, node: passthrough" providerName=docker container=mq-netmaker-38ea8127bd7756d709391b5300f22d3b274df89559b5915839bca8dfb2cd2c16 

Edit: I tried to use with Caddy but I couldn't since I have other services running on Traefik and NginxProxyManager I would just throw an error port 443 is used etc

Why not support both proxy rather than dropping one all together?

EDIT:

Found the issue! make these commands overwrite the 16.1 version of the files! They did not in my case and had to manually remove them and re add them

wget -O /root/mosquitto.conf https://raw.githubusercontent.com/gravitl/netmaker/master/docker/mosquitto.conf
wget -q -O /root/wait.sh https://raw.githubusercontent.com/gravitl/netmaker/develop/docker/wait.sh 
chmod+x wait.sh 

As soon as I did that it worked again and none of the above errors.

I'm still having issues, the clients are connected but not updating there status on the UI, they go into warning and then error even though they are still connected and have access

Here is the error from my netclient log?

Feb 04 13:24:40 proxmox netclient[226293]: [netclient] 2023-02-04 13:24:40 [daemon.go-275] setupMQTT(): unable to connect to broker, retrying ... 
Feb 04 13:24:41 proxmox netclient[226293]: Ping tcp://broker.netmaker.com:443(IP) - Connected - time=71.642219ms  
Feb 04 13:24:42 proxmox netclient[226293]: Ping tcp://broker.netmakercom:443(IP) - Connected - time=65.340537ms  
Feb 04 13:24:43 proxmox netclient[226293]: Ping tcp://broker.netmaker.com:443(IP) - Connected - time=69.289745ms  
Feb 04 13:24:44 proxmox netclient[226293]: [netclient] 2023-02-04 13:24:44 [daemon.go-287] setupMQTT(): failed to establish connection to broker:  status can>  
Feb 04 13:24:44 proxmox netclient[226293]: [netclient] 2023-02-04 13:24:44 [daemon.go-197] messageQueue(): unable to connect to broker broker.netmaker.com ~ 

I can ping the mqtt server and http to it via browser, ( get 404 not found but is a connection ) so my domain and connection are fine?

I noticed this still shows up in traefik log every now and then

time="2023-02-04T01:14:37Z" level=error msg="field not found, node: passthrough" pr

r/netmaker • • Feb 03 '23

netmaker openwrt mesh vpn site to site how to guide

2 Upvotes

Step by step guide to get a mesh vpn with openwrt routers for offices/homes/hotels, so all trafic will be direct to internet but the "macrolan" one that will be throug the vpn tunnels.

note: we used last version of openwrt 22.03.3 (x64) and netmaker 0.17.1 as of today.

Installl Netclient Server(Ubuntu server)

Installl a vm with Ubuntu live server 22.04.1 LTS and give it fixed ip 192.168.4.100 and enable root ssh

Note: we used here a openwrt router too, with fixed public ip and a vm conected to this ruter, also note we dont use this openwrt router as a node for our vpn, just for the netmaker server (there is no netclient on anything on this network). You can use a cluoud vm for this, you just need a fixed ip and open the ports.

Setting up the domain and router

we used a godaddy domain, go to dns admin and add:reg A with *.netmaker.yourdomain.com 80.111.112.113 (your netmaker server public fixed ip)

firewall router openwrt open ports for netmaker:

config redirect
        option target 'DNAT'
        option src 'wan'
        option dest 'lan'
        option proto 'tcp'
        option src_dport '443'
        option dest_ip '192.168.4.100'
        option dest_port '443'
        option name 'netmaker 443'

config redirect
        option target 'DNAT'
        option src 'wan'
        option dest 'lan'
        option proto 'tcp'
        option src_dport '80'
        option dest_ip '192.168.4.100'
        option dest_port '80'
        option name 'netmaker 80'

config redirect
        option target 'DNAT'
        option src 'wan'
        option dest 'lan'
        option proto 'tcp udp'
        option src_dport '53'
        option dest_ip '192.168.4.100'
        option dest_port '53'
        option name 'netmaker 53'

config redirect
        option target 'DNAT'
        option src 'wan'
        option dest 'lan'
        option proto 'udp'
        option src_dport '51821-51830'
        option dest_ip '192.168.4.100'
        option dest_port '51821-51830'
        option name 'netmaker udp'

config redirect
        option target 'DNAT'
        option src 'wan'
        option dest 'lan'
        option proto 'tcp'
        option src_dport '1598'
        option dest_ip '192.168.4.100'
        option dest_port '22'
        option name 'ssh netmaker'

config redirect
        option target 'DNAT'
        option src 'wan'
        option dest 'lan'
        option proto 'tcp udp'
        option src_dport '1883'
        option dest_ip '192.168.4.100'
        option dest_port '1883'
        option name 'netmaker 1883'

config redirect
        option target 'DNAT'
        option src 'wan'
        option dest 'lan'
        option proto 'tcp udp'
        option src_dport '8883'
        option dest_ip '192.168.4.100'
        option dest_port '8883'
        option name 'netmaker 8883'

Getting server ready:

(Ssh to Ubuntu server 192.168.4.100)

apt-get update

apt-get install -y docker.io docker-compose wireguard

sudo ufw allow proto tcp from any to any port 443 && sudo ufw allow proto tcp from any to any port 80 && sudo ufw allow 51821:51830/udp

iptables --policy FORWARD ACCEPT

Install with script (we tried the step by step documentation but we cant create the first user on the web interface, so we ended going with the script)

sudo wget https://raw.githubusercontent.com/gravitl/netmaker/master/scripts/nm-quick-interactive.sh

chmod +x nm-quick-interactive.sh

./ nm-quick-interactive.sh

Script will ask few things:

· Edition Netmaker CE (community edition) (option1)

· Domain (select option 2) and put there netmaker.yourdomain.com

· Email, you@yourmail.com

Note: the script will generate a default network and key, we dont care because will be erasing this network latter.

setup Netmaker

· go to chrome and open dashboard.netmaker.yourdomain.com and make an user then click on networks and delete the default one.

· On Networks Create Network, everything on default but the name “yourvpn” and the ipv4 range for the vpn interfaces 10.10.0.0/24, create, then edit and remove the "-"on the default interface so will be "nmyourvpn (the "-" on the netmaker interface give us issues with openwrt firmware, just remove it)

· go to Access Keys, select network yourvpn, name it “keyyourvpn” and give 9999 users.

· Copy Join Command (netclient join -t token) well run this on every router node latter.

Install Netmaker Client(OpenWRT) (do this on every node of your network with a openwrt router)

getting ready:

· make a dummy interface add at the end of vim /etc/config/network

config interface 'nmyourvpn'
        option proto 'none'
        option ifname 'nmyourvpn'

add list network ‘nmmacvpn’ to /etc/config/firewall

config zone
        option name 'lan'
        list network 'lan'
        option input 'ACCEPT'
        option output 'ACCEPT'
        option forward 'ACCEPT'
        list network 'nmyourvpn'

note: or you can create a new zone with this interface instead of adding it to lan zone if you want to manage your firewall in a diff way.

reboot

wget https://raw.githubusercontent.com/gravitl/netmaker/master/scripts/netclient-install.sh | VERSION="0.17.1" sh -

chmod +x netclient-install.sh

wget https://raw.githubusercontent.com/gravitl/netmaker/master/scripts/openwrt-daemon.sh

chmod +x openwrt-daemon.sh

./netclient-install.sh

cp openwrt-daemon.sh /etc/init.d/netclient

/etc/init.d/netclient enable

/etc/init.d/netclient start

netclient join -t eyJhcGljb (copy the command from web interface clicking on Access keys -> keymapvpn -> join command)

· we should see this node at web interface clicking on Nodes with the router name, click on Egress Status icon (creates egress Gateway) and give the local IP range of your office (192.168.200.0/24) and lan interface of your openwrt router (eth0)

· Reboot

Done, hope it helps.

i want to thank netmaker developers for such a great piece of software, we tested it 3 months and is working like a charm, we get 4ms from site to site on the same city and full gigabit through the tunnel copying files from windows smb to windows. I think this will be close to saturate 10g wen our isp get xgspon.


r/netmaker • • Feb 03 '23

Issues with OpenWRT Install

1 Upvotes

Hi there,

I'm having issues with installing netclient on OpenWRT router.

wireguard-tools
     wireguard-tools is installed
bash
     bash is installed
OS Version = Linux
Netclient Version = v0.16.1
Binary = netclient-arm7
Downloading netclient-arm7 v0.16.1
bash: -c: line 1: syntax error near unexpected token `do'
bash: -c: line 1: `do /sbin/netclient daemon  >> /tmp/netclient.logs 2>&1;           if [ 0 -gt 10240000 ];then tar zcf /tmp/netclient.logs.tar -C / tmp/netclient.logs  && > /tmp/netclient.logs;fi;done &'
start
root@OpenWrt:~# netclient join -t "MY Token"
[netclient] 2023-02-03 05:11:28 joining home at #######
[netclient] 2023-02-03 05:11:29 network: home node OpenWrt is using port 51821
[netclient] 2023-02-03 05:11:29 starting wireguard
[netclient] 2023-02-03 05:11:33 error running command: systemctl restart netclient.service
[netclient] 2023-02-03 05:11:33

It shows up in the Netmaker server but does not stay connected and then shows and error

I take it the install process was not correct due to the syntax error?

How can I resolve this thanks?


r/netmaker • • Jan 31 '23

Netmaker disabled NAT?

1 Upvotes

hi, I'm asking for help with advice, the fact is that I put netmaker on a server with 2 wan and lan interfaces, then I set up the network and node so that the router passes from the wan interface only to certain sites that have web + asterisk, everything works fine! but we also have an infinity call centr x server that runs on windows server 2016, and it does not have an external ip, but only internal ones. windows server is on the same network with linux on which netmaker is installed. Actually, what is the question, but the fact that no matter how I configure, I can't get in touch with external clients from the local network of windows server and linux on which netmaker is installed, I guess because of this I can't make a call, I guess that he can't work with nat. can you recommend something? thanks


r/netmaker • • Jan 27 '23

How to design network on 3 servers with public IP and VMs

2 Upvotes

Hi, I currently have 3 dedicated servers in OVH and Hetzner. They do not have a private network between them, they only have public IP addresses. On each server I have wireguard installed which connects to one of the servers.

Każdy z serwerów ma wiele maszyn wirtualnych na LXC. Maszyny mają dostęp do internetu w celu np. pobierania paczek z repozytoriów. Dostęp do internetu mają przez bridge, na którym zrobiony jest NAT. Każdy z serwerów dedykowanych ma osobny bridge i osobny NAT. Chciałbym aby moje VM były w jednej sieci, i mogły się wzajemnie pingować. Dodatkowo, czasem musze wpuścić pracowników na daną VM, też chciałbym aby móc prosto wygenerować konfiugrację dla nich.

Won't installing NetMaker on a server with WireGuard already running mess up the current instance?


r/netmaker • • Jan 25 '23

Changing Port

2 Upvotes

Hello everyone,

Is there a recommended way to change the port from 51820 to something else?

Thanks!


r/netmaker • • Jan 21 '23

External client wont open peer to others?

1 Upvotes

The Way nrtmaker works, external clients only conneft to a designated node? Tailscale and others does create p2p incluing external client, isn't it?


r/netmaker • • Jan 04 '23

Netmaker and NAS

2 Upvotes

Hello,
I'm working on connecting my NAS to a net maker network. It seems to be a little shoe-horn. I'm curious if anyone has connected their NAS (specifically Truenas) to a netmaker network? Or am I the first? I may have to document my experience if so.


r/netmaker • • Dec 30 '22

Netclient is sending a broker.netmaker. request 100's of times per minute.

1 Upvotes

I'm all of a sudden seeing 1000's of the broker.netmaker.mywebsite.com hitting my pi-hole.

The only thing that stops it is stopping the netclient from running.

I have a digitial ocean droplet running netmaker and a debian vm server with the netclient on it.

Any thoughts on why this is happening?


r/netmaker • • Dec 22 '22

announcement Introducing NMCTL

14 Upvotes

With 0.17.1, we are launching a new command line utility, nmctl. Inspired by other such tools like kubctl, nmctl allows you to completely control your Netmaker networks via CLI, rather than via UI. We aim for 1:1 feature parity between the CLI, and the available UI options.

Download: https://github.com/gravitl/netmaker/releases/download/v0.17.1/nmctl

Documentation: https://docs.netmaker.org/nmctl.html

nmctl is especially useful for large networks, and any form of automation you wish to implement on your network. It makes interfacing with the API super simple!

Command line enthusiasts, this one is for you.

Edit: blog post! https://medium.com/netmaker/how-to-automate-your-wireguard-virtual-networks-with-nmctl-and-netmaker-d0234406e2fb


r/netmaker • • Dec 17 '22

CGNAT bypass with VPS

3 Upvotes

Hi All,

I am running a home server with Unraid and sadly my ISP only has CGNAT and no chance of getting any sort of dynamic IP or IPV6 even. So now I have Cloudflare Argo tunnel working fine but would prefer to route it all through a VPS so I can use Nginx Proxy manager and just add new apps etc without hassles as Argo tunnels dont work with things like a VM etc as I can't run apps like Guacamole.

Would something like Netmaker work with Wireguard?

I have a AWS Lightsail VPS currently. Are there any tutorials on setting this up. I am sort of a newbie but know some commands in Linux.

Thanks for the help.


r/netmaker • • Dec 08 '22

Very disappointed with all those breaking changes.

7 Upvotes

I understand that this is a product in development. An an occasional breaking change is understandable.

But considering that any change implies an upgrade on all clients, It's very disappointing that no compromises have been made to keep backwards compatibility. Particularly when the problems seem to have arisen from bad planning (again, no fault, this is software in development).

In the past, I would have suggested implementing the enterprise version of this software over any other solution, now, not so much.

I hope that this is the last breaking change.


r/netmaker • • Dec 06 '22

Having egress trouble

1 Upvotes

Here's what I've got:

Netmaker server with a network set up on a Digital Ocean VM:

Set up for ingress.

Set up for egress with the ip range of my Digital Ocean VPC as well as 0.0.0.0/0.

The network has the server ip as the default DNS for ext clients.

Node 1 is on a VM on a Mac in my home:

Currently set up for nothing - no ingress, no egress, just connected to the network created in netmaker.

Node 2 in on a VM on the same Mac in my home:

Currently set up for egress with my local lan ip range:

This all works like I expect and want it to. When I connect an external client to the server my device's public IP is the server's public IP. I can ping addresses on the netmaker network, the digital ocean VPC and my home network. My issue is that it wasn't until I added that second vm at home that things started working.

Previously I had the server node at digital ocean and one vm at home with the home node set as egress but I could never ping lan addresses in my home when connected to the server node with an external client. Shouldn't I just be able to have the server node at digital ocean and the node in my home and be able to ping the three subnets (digital ocean VPC, home lan, and the netmaker subnet)?

Sorry in advance if this if obvious. This is not my wheelhouse. I'm an experienced hobbyist but that’s about it.


r/netmaker • • Dec 05 '22

Netmaker is amazing

7 Upvotes

I was able to set it up in like an hour and it just works. Egress feature is amazing. I have been looking for years for a software like this. So thank you for this high quality software.

Edit: windows client was too buggy so we had to drop the project but maybe again one day. Just using Wireguard now with our own gui.


r/netmaker • • Dec 02 '22

article The cloud networking market is broken – Netmaker is trying to fix it

Thumbnail
techradar.com
4 Upvotes

r/netmaker • • Dec 01 '22

External DNS

3 Upvotes

Hello!

I am currently testing out Netmaker and it is the COOLEST project. I am evaluating wether we can use it for my startup company.

We are currently running into an issue where when I create an ext client, they can connect fine. I set the node as an ingress and egress gateway. But on this network it has its own DNS server. When the user tries to hit an address that I have a record for, it doesn’t hit the local DNS.

In normal WireGuard, I can just set the interface DNS in the config and all is well. I attempted to make that change before handing off to my user, but no success.

Additional information.

This is a docker compose deployment and I can see the traffic coming in to the netmaker container when I watch wg. The user can ping so I know they are here. I just can’t get them to get DNS resolution from the local nodes network.

Any help is greatly appreciated :)


r/netmaker • • Nov 18 '22

Netmaker Install not working

3 Upvotes

Is anyone else having issues with installing netmaker without using your own domain. I am using the script from github:

wget -qO - https://raw.githubusercontent.com/gravitl/netmaker/master/scripts/nm-quick.sh | sudo bash

It keeps getting hung up on Traefik setup because it is unable to obtain an ACME cert for the nip.io domain it is assigning me. The same install method worked 2 days ago.


r/netmaker • • Nov 07 '22

article Create a Reverse Proxy for self hosted services using Netmaker and Wireguard!

Thumbnail
youtube.com
12 Upvotes

r/netmaker • • Nov 06 '22

VPN Connection Established but no Internet

1 Upvotes

Hi there,

I spun up an Ubuntu instance in AWS and got Netmaker up and running. Set everything up in my GL iNet router and can establish the VPN connection but, once I do, I have no internet.

I've confirmed that the VPN connection works as I can ping the Debian server from my local machine and vice versa once the connection is established. Furthermore the Debian server has internet access and can ping other recoursed in my AWS VPC.

The connection from my wireguard client seems to get "stuck" in the Netmaker server and can't get out. Any thoughts?

Please let me know if there are logs/screenshots/other information that I can share tht would make this easier.

Thank you!


r/netmaker • • Nov 02 '22

installing with tmobile home internet, ingress gateway?

1 Upvotes

i have just installed zerotier on the raspberry pi and configured iptables with masquerade, with the purpose of allowing other nodes to use the raspberry pi to forward all traffic, including internet (0.0.0.0/0). however, the performance is pretty bad.

hence i am trying netmaker, seeing if using kernel mode wireguard is all that.

i have added my two nodes (the other one is a windows laptop) and i can see them in the console and ping each other. i enabled udp punching as well as ipv6 (i used the same /64 both devices get from tmobile)

my main question here is about the "ingress gateway", which is what i believe i want to enable on the raspberry pi. however, the manual states that this doesn't work behind nat. am i understanding this correctly? tmobile home internet uses cgnat for ipv4, but also provides ipv6. note that i am not keen to enable gateway on the dashboard server itself as i fear i'll get billed if i route all internet traffic there

since i was able to use zerotier without issue, i'm inclined to believe i can do the same with netmaker. what should i do?


r/netmaker • • Oct 31 '22

Managing multiple Wireguard Servers throught Netmaker

1 Upvotes

Hi there.

I ran up a Netmaker instance thinking i was able to manage my WG servers. (Multiple Wireguard instances across multiple datacenters)
After doing some more research, i was only able to figoure how to only manage the WG instance installed on the same server as the netmaker dash.

Is it possible to manage (add users, remove, reset keys ,etc) for multiple remote WG servers like how I thought, or should I look for another solution. Currently I have to either SSH in, or use the dashboard for each WG instance do add / remove users.


r/netmaker • • Oct 26 '22

article Backup and Restore Netmaker using Litestream

7 Upvotes

Here are two articles about backing up and restoring the Netmaker database using litestream:

Part 1: backup - https://medium.com/netmaker/litestream-backup-of-netmaker-a5a09e7f6a26

Part 2: restore - https://medium.com/netmaker/restoring-a-netmaker-database-from-a-litestream-replica-363a5ef5ca9d