https://netmaker.org logo
Join Discord
Powered by
# install
  • v

    victorious-manchester-56949

    05/25/2023, 8:01 PM
    Yeah, internal for now lol
  • v

    victorious-manchester-56949

    05/25/2023, 8:02 PM
    In the future there will be some routing magic occuring.
  • b

    bored-island-21407

    05/25/2023, 8:02 PM
    netmaker is intended to be installed on a machine with a static public ip.... you can do what you want but your are going to have to make a bunch of changes to your docker-compose file
  • b

    bored-island-21407

    05/25/2023, 8:05 PM
    question: if all your clients are on an internal private network, why do you need an overlaid encrypted network?
  • v

    victorious-manchester-56949

    05/25/2023, 8:05 PM
    That's perfectly okay.
  • v

    victorious-manchester-56949

    05/25/2023, 8:05 PM
    Internal testing to vet the product for my company lol
  • b

    bored-island-21407

    05/25/2023, 8:06 PM
    but in the future, clients will be on different networks
  • v

    victorious-manchester-56949

    05/25/2023, 8:06 PM
    Correct-o
  • b

    bored-island-21407

    05/25/2023, 8:07 PM
    and what exactly is the problem with having the netmaker server with a public ip?
  • v

    victorious-manchester-56949

    05/25/2023, 8:08 PM
    Well I'm testing it internally right now lol
  • b

    bored-island-21407

    05/25/2023, 8:09 PM
    what version are you testing? v0.20.0
  • v

    victorious-manchester-56949

    05/25/2023, 8:09 PM
    Correct. Here's my docker-compose file. https://cdn.discordapp.com/attachments/975815541954609152/1111385627225751683/message.txt
  • b

    bored-island-21407

    05/25/2023, 8:11 PM
    whats in your Caddyfile
  • v

    victorious-manchester-56949

    05/25/2023, 8:12 PM
    # Dashboard https://dashboard.test.internal.lan { tls /root/certs/fullchain.pem /root/certs/privkey.pem # Apply basic security headers header { # Enable cross origin access to *.test.internal.lan Access-Control-Allow-Origin *.test.internal.lan # Enable HTTP Strict Transport Security (HSTS) Strict-Transport-Security "max-age=31536000;" # Enable cross-site filter (XSS) and tell browser to block detected attacks X-XSS-Protection "1; mode=block" # Disallow the site to be rendered within a frame on a foreign domain (clickjacking protection) X-Frame-Options "SAMEORIGIN" # Prevent search engines from indexing X-Robots-Tag "none" # Remove the server name -Server } reverse_proxy http://netmaker-ui } # Netmaker Exporter https://netmaker-exporter.test.internal.lan { tls /root/certs/fullchain.pem /root/certs/privkey.pem reverse_proxy http://netmaker-exporter:8085 } # Prometheus https://prometheus.test.internal.lan { tls /root/certs/fullchain.pem /root/certs/privkey.pem reverse_proxy http://prometheus:9090 } # Grafana https://grafana.test.internal.lan { tls /root/certs/fullchain.pem /root/certs/privkey.pem reverse_proxy http://grafana:3000 } # API https://api.test.internal.lan { tls /root/certs/fullchain.pem /root/certs/privkey.pem reverse_proxy http://netmaker:8081 } # STUN https://stun.test.internal.lan { tls /root/certs/fullchain.pem /root/certs/privkey.pem reverse_proxy netmaker:3478 } # TURN https://turn.test.internal.lan { tls /root/certs/fullchain.pem /root/certs/privkey.pem reverse_proxy host.docker.internal:3479 } # TURN API https://turnapi.test.internal.lan { tls /root/certs/fullchain.pem /root/certs/privkey.pem reverse_proxy http://host.docker.internal:8089 } # MQ wss://broker.test.internal.lan { tls /root/certs/fullchain.pem /root/certs/privkey.pem reverse_proxy ws://mq:8883 }
  • v

    victorious-manchester-56949

    05/25/2023, 8:12 PM
    Lol sorry, tried to format it and it failed to send.
  • b

    bored-island-21407

    05/25/2023, 8:12 PM
    lol
  • b

    bored-island-21407

    05/25/2023, 8:13 PM
    my recommendation would be to go back to the standard docker-compose file and make your changes in netmaker.env
  • v

    victorious-manchester-56949

    05/25/2023, 8:13 PM
    So I tried that and it seems that docker-compose failed to take it anything from netmaker.env.
  • Also tried using `nm quick sh` to even
    v

    victorious-manchester-56949

    05/25/2023, 8:14 PM
    Also tried using
    nm-quick.sh
    to even just get it running and it stopped after
    pulling config files
    j
    • 2
    • 2
  • b

    bored-island-21407

    05/25/2023, 8:15 PM
    and you need to match what you have in the the Caddyfile to the compose/env.. eg in Caddy you have netmaker api listening on port 8081 but in the compose you did not specify a port
  • v

    victorious-manchester-56949

    05/25/2023, 8:16 PM
    Lol jfc. I can't believe I didn't catch that. Thanks!
  • v

    victorious-manchester-56949

    05/25/2023, 8:38 PM
    Okay, so trying this now, seems to be no joy with the env file
    Copy code
    WARNING: The NM_DOMAIN variable is not set. Defaulting to a blank string.
    WARNING: The STUN_PORT variable is not set. Defaulting to a blank string.
    WARNING: The SERVER_HOST variable is not set. Defaulting to a blank string.
    WARNING: The UI_IMAGE_TAG variable is not set. Defaulting to a blank string.
    WARNING: The TURN_USERNAME variable is not set. Defaulting to a blank string.
    WARNING: The TURN_PASSWORD variable is not set. Defaulting to a blank string.
    WARNING: The EXPORTER_API_PORT variable is not set. Defaulting to a blank string.
  • v

    victorious-manchester-56949

    05/25/2023, 8:42 PM
    But weirdly, if I echo $STUN_PORT, I get back the proper value.
  • v

    victorious-manchester-56949

    05/25/2023, 9:09 PM
    Okay, so the fix was to build the netmaker.env file myself and symbolically link it to .env, even though it ignores netmaker.env and expects .env. lol
  • v

    victorious-manchester-56949

    05/25/2023, 9:10 PM
    But that still didn't fix the netmaker-exporter issue where it's trying to connect to
    ws://<what_it_thinks_is_its_external_ip>:1884
    rather than what it should be connecting to.
  • m

    mammoth-zoo-95458

    05/26/2023, 12:42 AM
    I see in the doc that oracle cloud is not recommended. Is it still the case? Out of curiosity, what's the actual issue? After a quick search I found it could be something with iptables, but could anyone share more technical details about this?
  • r

    refined-application-67112

    05/26/2023, 1:42 AM
    Hello, I'm trying to do a fresh install of netmaker v0.20 and the install script always fails at "Pulling config files..." There are no errors, it just stops.
  • `
    r

    refined-application-67112

    05/26/2023, 1:42 AM
    Copy code
    -----------------------------------------------------------------
    Confirm Settings for Installation
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Does everything look right? [y/n]: y
    Stopping all containers...
    -----------------------------------------------------------------
    Beginning installation...
    -----------------------------------------------------------------
    . . .
    . . .
    . . .
    Pulling config files...
    j
    • 2
    • 4
  • Okay so last spicy bit here My netmaker
    v

    victorious-manchester-56949

    05/26/2023, 2:01 PM
    Okay so last spicy bit here. My netmaker-exporter is failing to connect to mq. Repeated
    Copy code
    [netmaker] Fatal: could not connect to broker, token timeout, exiting ...
    [netmaker-exporter] 2023-05-26 13:56:47 MQ Broker Endpoint  ws://mq:1884
    b
    t
    • 3
    • 10
  • v

    victorious-manchester-56949

    05/26/2023, 2:01 PM
    However, netmaker itself does succeed in connecting to mq.