netconfig-example.yml 2.4 KB

1234567891011121314151617181920212223242526272829303132
  1. server:
  2. grpcaddress: 10.101.0.1:50051 # Address of GRPC Server (used for all interaction with server after registration)
  3. apiaddress: 1.2.3.4:8081 # Address of API Server (used only for registration/unregistration)
  4. accesskey: 5qKTbTgsvb45y3qyRmWft # Key used to sign up with server. Used only during registration
  5. node:
  6. name: my-computer # name of this node
  7. interface: nm-example # name of interface to create/use for WG
  8. network: example # name of network this ode is a part of
  9. password: $2a$0afehuytviN/thMpVlCYkonxy.Ws2.rNCJjBSAa3HZuhrK5hpYxme # encrypted node password, used to retrieve JWT. Can be changed to new pass in plaintext and CLI will update/replace with encrypted pass
  10. macaddress: 6c:4b:91:0g:68:7b # MAC of node. Used as a Unique ID
  11. localaddress: 192.168.1.32 # Address on local network, used as endpoint for other local nodes for faster comms
  12. wgaddress: 10.7.11.2 # Private WG addres on network
  13. wgaddress6: "f8:34:41:77:5c:15" # Private ipv6 address if network is dual stack
  14. roaming: "on" # Whether or not to grab new endpoint value automatically
  15. dns: "off" # Whether or not to set local DNS based on Netmaker's Private DNS server
  16. islocal: "no" # Based on network. If yes, will use local IP as endpoint.
  17. isdualstack: "yes" # Use IPv6 in addition to IPv4
  18. isingressgateway: "no" # whether or not node is an ingress gateway (will set iptables forwarding rules)
  19. allowedips: "" # not currently used
  20. localrange: "" # local range if it's a local network. For instance, 192.168.1.0/24
  21. postup: "" # postup command, used by ingress/egress gateways to set iptables
  22. postdown: "" # postdown command, used by ingress/egress gateways to set iptables
  23. port: 51821 # WG port to use
  24. keepalive: 20 # default keepalive with nodes
  25. publickey: 8/q9cOg7c9QjnoXygVrY/VNE197VMRadJodkb1ZsujA= # public key of node to show to other nodes
  26. privatekey: "" # private key, set only for changing and then will revert to blank in config
  27. endpoint: 78.170.22.168 # public endpoint for reaching node
  28. postchanges: "false" # if true, will post and config file changes on next checkin and then revert to false
  29. ipforwarding: "on" # set ip forwarding; highly recommended to leave on
  30. network: home # the network (duplicate of node.network)
  31. daemon: "on" # whether or not to manage systemd
  32. operatingsystem: "" # not currently in use