https://netmaker.org logo
Is there any reason I couldn't have two netmaker h...
# client
t
Is there any reason I couldn't have two netmaker hosts behind the same nat, so long as I set them to two different ports & forward those two ports appropriately? I started with this, one works, the other does not, and I'm not quite sure how to figure out why the second one is unconnectable.
j
they mount the same config files (/etc/netclient) which will cause issues
if you run them from docker and mount different folders, then it should work
t
well, I mean, they're two separate physical hosts. Two totally different systems entirely, they just happen to be behind the same firewall.
h
@jolly-london-20127 hey Alex. Am I understanding this correctly? As of v18.+, it won't be easy to have several machines running netclient behind a single NAT gateway? Currently I have several self hosted servers and a few client desktops running netclient at one office location on v.17. Is this going to have to be rethought for v18? I will try to test soon, but sounds like it will result in quite a big change from the current setup
j
It should be the same as it is now to run multiple machines behind the same NAT. If anything, it should work much better, due to the new STUN system. And by the end of next week, we aim to have a new system for determining endpoints for machines on the same local network as well, which will be even better than that.
Here I was just referring to machines on the same physical host
@thousands-boots-71086 in this scenario it is likely that for some reason, they ended up with the same port (probably 51821). It should be avoiding this on its own, but if you change the non-functioning one's port to something else (e.g. 51822) it should work.
t
They definitely didn't; the second one is 51822, but it won't complete the key exchange. I'll post some specifics a little later
j
strange, separate hosts with separate ports on the same network should be no problem...unless, is the problem with them communicating with each other?
t
I did some low level testing and this has to be a problem with the network, I just set up nc so I could make arbitrary connections and the system listening on 51821 works, but the system listening on 51822 doesn't.
anyway, tl;dr: not netmaker
j
weird...can always edit the port in netmaker UI to something else if you want to test
t
ahhhhh, figured it out - one of those systems was one I didn't set up, and I found out whomever did set it up installed firewalld. I did not check for that. 🤦‍♂️
It's working fine now.
3 Views