Commit graph

1049 commits

Author SHA1 Message Date
Matthew R. Kasun 8eadccee2b fix statticcheck error 2022-08-18 08:59:36 -04:00
afeiszli 983d90026c move client public ip check to use server 2022-08-17 17:30:30 -04:00
theguy951357 334c579a2e upgrade logic for moving Netclient data folder 2022-08-11 16:22:19 -04:00
Matthew R Kasun 65723e23dd
Merge branch 'develop' into feature_v0.14.8_internet_gateway 2022-08-09 13:55:16 -04:00
Matthew R. Kasun 85cb88f0ad use 0.0.0.0/0 ::/0 as egress range for internet gateways 2022-08-09 13:51:28 -04:00
dcarns c7a3d2b098
Merge pull request #1449 from gravitl/feature_v0.14.7_translateiftablestonftables
Feature v0.14.7 translateiftablestonftables
2022-08-09 09:06:20 -04:00
Christopher Blaha 6c43466141 trying without the / 2022-08-08 21:31:29 -04:00
cameronts 82d8d4ff1e Rearrange imports per PR comments. 2022-08-08 13:02:32 -07:00
cameronts f4d19f5606 Change method used for detecting nftables from looking for nftables.conf (not always there) to looking for nft executable (there upon apt install nft). 2022-08-06 15:40:40 -07:00
dcarns 40c4a7842c
Merge pull request #1432 from gravitl/feature_v0.14.7_netclientaddvarforpublicipservice
Netclient: Add Public IP Service handling to config and GetPublicIP().
2022-08-04 08:50:59 -04:00
cameronts 7c2fce3a55 Change to expandable switch-based firewall detection. 2022-08-03 12:18:04 -07:00
Christopher Blaha 35ae2bf131 Application not Applications 2022-08-03 11:45:18 -04:00
Christopher Blaha 70be0b8f8f changed the path in mac data 2022-08-03 11:41:38 -04:00
cameronts b9b79ed9f9 Changed order of imports. 2022-08-02 16:25:38 -07:00
cameronts 766084d6a3 Add check for nftables on daemon start. 2022-08-02 15:58:39 -07:00
cameronts e6d7c95669 Add netclient detection of nftables. 2022-08-02 15:01:45 -07:00
Abhishek Kondur e2a7e2c812 GRA-408: remove daemon check 2022-08-02 18:46:30 +04:00
Abhishek Kondur 494cd690db GRA-408: change daemon check to install 2022-08-02 17:12:03 +04:00
Abhishek Kondur 68d0091c28 GRA-408: func comment 2022-08-02 11:31:38 +04:00
Abhishek Kondur c772d15080 GRA-408: check if netclient daemon exists to start client daemon service 2022-08-02 11:19:46 +04:00
Abhishek Kondur c537722b76 GRA-408: wipe local fix 2022-08-01 14:18:34 +04:00
cameronts 3f0f2c88ca Updated with PR review comments. 2022-07-29 12:10:42 -07:00
cameronts 3dcce87868 Fixed an old reference. 2022-07-28 14:57:20 -07:00
cameronts f656a48f3a Move public IP services handling to a map-based approach to work for daemon (multiple network configs) and CLI-based setting of the IP services. 2022-07-28 14:33:47 -07:00
cameronts 05283eff14 Change to single variable in ClientConfig (no nested GlobalSettings). 2022-07-28 12:50:53 -07:00
cameronts 1cb42e8f8b Add Public IP Service handling to config and GetPublicIP(). 2022-07-27 16:45:12 -07:00
afeiszli 1a49db79ab returning nil for windows pid 2022-07-27 17:44:14 -04:00
afeiszli 884d1938e6 moved if/else to correct function 2022-07-27 17:28:32 -04:00
afeiszli c35aec1eb7 removing windows from pid call and fixing nil pointer in mac 2022-07-27 17:25:22 -04:00
afeiszli 98e049d1e3 fixing versions 2022-07-26 15:35:04 -04:00
Matthew R. Kasun 67e62cfaa7 consistent file name for upgrade files 2022-07-26 15:00:10 -04:00
Matthew R. Kasun da828263cb more version number changes
Signed-off-by: Matthew R. Kasun <mkasun@nusak.ca>
2022-07-26 14:24:22 -04:00
Matthew R. Kasun 66cbc96b89 version numbers 2022-07-26 13:45:41 -04:00
Christopher Blaha 1bfdcbecb7 space 2022-07-25 08:57:20 -04:00
Christopher Blaha 68a904c3ac fixed lowercase lettering and extra spaces in logs 2022-07-23 08:58:53 -04:00
Christopher Blaha d0c09aa2c0 fixed lowercase letters and extra spaces 2022-07-23 08:54:20 -04:00
Christopher Blaha 4a5ae8fb31 removed ". " 2022-07-22 23:48:46 -04:00
Christopher Blaha bc009d03e3 things 2022-07-22 23:26:46 -04:00
Christopher Blaha b5be396f87 commas, amiright? 2022-07-22 23:24:10 -04:00
Christopher Blaha cb8958e927 log stuff 2022-07-22 22:45:29 -04:00
Christopher Blaha 9be779f666 log messages 2022-07-22 20:32:34 -04:00
Christopher Blaha ac4515c38a logging 2022-07-22 15:51:22 -04:00
dcarns da89e14de3
Merge pull request #1407 from XGFan/patch-1
fix ipv6 in no-wg-quick
2022-07-22 08:59:07 -04:00
XGFan cdb92bf469
fix ipv6 in no-wg-quick 2022-07-21 21:27:44 +08:00
Matthew R. Kasun 3a9f75cc83 lockfile path 2022-07-20 12:51:38 -04:00
Matthew R. Kasun 0ac12e9eb3 lockfile path:w 2022-07-19 15:36:53 -04:00
Matthew R. Kasun 7169c232ed add lockfile to prevent corruption of /etc/hosts 2022-07-19 15:12:45 -04:00
Matthew R. Kasun 0c3a5b7767 code review changes 2022-07-18 16:07:36 -04:00
Matthew R. Kasun cac9d481f8 return after windows restart 2022-07-18 16:07:36 -04:00
Matthew R. Kasun df0e882a7e updated logic for join/leave network 2022-07-18 16:07:36 -04:00
Matthew R. Kasun aa9be268f3 fetch networks for checkin 2022-07-18 16:07:36 -04:00
Matthew R. Kasun cdc7ec7495 remove debugging logs 2022-07-18 16:07:36 -04:00
Matthew R. Kasun e202dc3a44 debugging logs 2022-07-18 16:07:36 -04:00
Matthew R. Kasun 9f2181294e revert to old way for windows 2022-07-18 16:07:36 -04:00
Matthew R. Kasun 4376093fa6 pidfile location windows 2022-07-18 16:07:36 -04:00
Matthew R. Kasun b2131d6d8b eliminate unused var staticcheck 2022-07-18 16:07:36 -04:00
Matthew R. Kasun 23c3b0c276 fix waitgroup 2022-07-18 16:07:36 -04:00
Matthew R. Kasun 1fa4becb48 use SIGHUP to restart daemon 2022-07-18 16:07:36 -04:00
Abhishek Kondur 8ceab029bb GRA-414: add verbose level 4 support to netclient 2022-07-18 16:07:36 -04:00
0xdcarns cadb466d19 fixed missing comma 2022-07-18 16:07:36 -04:00
Matthew R. Kasun c7151f0b01 update logic for determing when to check for free port 2022-07-18 16:07:36 -04:00
0xdcarns 70aa4d717f fixed missing comma 2022-07-11 11:59:05 -04:00
Matthew R. Kasun 7bfbf06eb5 update logic for determing when to check for free port 2022-07-11 08:15:46 -04:00
Matthew R. Kasun b6df54482b refactor client mq connection logic2 2022-07-08 10:22:23 -04:00
Matthew R. Kasun bda6f4e2c6 refactor client mq connection logic 2022-07-08 09:46:21 -04:00
afeiszli 2500331024 mod log 2022-07-07 16:16:56 -04:00
0xdcarns 7cc66870e2 merge fix 2022-07-07 13:40:07 -04:00
0xdcarns 5631f30e50 changed requiredversion to requiredversions 2022-07-07 13:36:14 -04:00
Matthew R. Kasun dcc637e98a add log on completion of update
Signed-off-by: Matthew R. Kasun <mkasun@nusak.ca>
2022-07-07 13:27:08 -04:00
Matthew R. Kasun f59a3c860e support upgrades from multiple version 2022-07-07 13:27:08 -04:00
0xdcarns 6d125eb2fa added upgrade func list 2022-07-07 13:17:08 -04:00
Matthew R. Kasun ab9f0f05e0 client infrastructure to support updates 2022-07-07 13:17:08 -04:00
dcarns ef82ac4af5
Merge pull request #1296 from gravitl/feature_v0.14.5_longer_client_peer_cache
changed client message cache to a day
2022-07-07 13:16:09 -04:00
0xdcarns 52b876b333 moved log to reflect when message is actually consumed 2022-07-07 12:54:21 -04:00
Alex Feiszli 1fcf7023da
Merge pull request #1309 from gravitl/hotfix_v0.14.4_macos
changes for macos installer
2022-07-07 11:38:00 -04:00
dcarns 07729b56f9
Merge pull request #1316 from gravitl/bugfix_v0.14.5_wg_ports
Bugfix v0.14.5 wg ports
2022-07-07 11:29:45 -04:00
0xdcarns 3a74170ab2 added v0.14.5 and removed MQ_SERVER_PORT 2022-07-07 10:23:07 -04:00
0xdcarns 27dbfc867c added node name to logs 2022-07-07 09:58:52 -04:00
0xdcarns 5fc73e6a80 added inform port change util func 2022-07-07 09:52:20 -04:00
Matthew R. Kasun c481f27200 moved checks around 2022-07-06 16:13:51 -04:00
afeiszli c06c7868c0 moving port check logic 2022-07-06 15:20:28 -04:00
afeiszli 35f4bbf808 comment for whitespace placeholder 2022-07-06 13:32:32 -04:00
afeiszli c99e6bf75a changes for macos installer 2022-07-06 13:26:11 -04:00
Matthew R. Kasun a17173fa0f add timeout for http requests 2022-07-06 09:32:00 -04:00
0xdcarns 8da999f21d changed client message cache to a day 2022-07-05 20:22:34 -04:00
afeiszli f28d361bea refactoring cert logic to use database 2022-06-30 22:30:28 -04:00
afeiszli b281047168 adding functions to handle certs in DB 2022-06-30 21:56:11 -04:00
Matthew R. Kasun 34f6a404e2 update version numbers to 14.4
Signed-off-by: Matthew R. Kasun <mkasun@nusak.ca>
2022-06-28 09:58:40 -04:00
Matthew R. Kasun 0410e1d4fb install command 2022-06-23 14:06:26 -04:00
Matthew R. Kasun 806af380a3 remove peers from interface addresses 2022-06-22 14:48:40 -04:00
Matthew R. Kasun c8ec46391d refactor logic for client.key generation 2022-06-22 09:55:10 -04:00
Matthew R Kasun 5aa2c16df1 refactored logic for Hub change 2022-06-21 15:19:54 +00:00
Matthew R. Kasun 4bc04d5922 updated join logic
if join fails, don't try to leave as authentication will fail --- just
    wipe
2022-06-20 10:37:31 -04:00
0xdcarns b98cbcf602 removed deprecated references and fixed static checks 2022-06-17 09:35:08 -04:00
Matthew R. Kasun 932eba8d21 fix statticcheck errors 2022-06-16 15:42:32 -04:00
dcarns d709a04e4f
Merge pull request #1208 from gravitl/feature_v0.14.3_versioning
versioning
2022-06-15 15:11:20 -04:00
afeiszli d3a6faa90d updating route setting logic 2022-06-15 11:18:49 -04:00
afeiszli 40009d946b versioning 2022-06-14 13:24:26 -04:00
Matthew R. Kasun afe12b277d force lowercase for /etc/hosts profile names
to test:
create newtwork with Upper case name
check profile in /etc/hosts is created with all lowercase
2022-06-06 13:01:51 -04:00
guppy0130 5ca5710f61
typo fixup, resolves #1181
* fixes a typo
2022-06-03 22:57:09 -07:00
afeiszli 74fa228784 adding versions 2022-06-01 17:09:45 -04:00
Matthew R Kasun def0c574f2
Merge pull request #1159 from gravitl/bugfix_v0.14.2_peer_logic
Bugfix v0.14.2 peer logic
2022-06-01 10:35:31 -04:00
afeiszli 9d78624edc fixing relay logic 2022-06-01 10:17:46 -04:00
Matthew R. Kasun 9578b72d5e remove publish prior to registration with server 2022-06-01 08:00:22 -04:00
afeiszli 5bfbe2b81d fix test 2022-05-31 14:15:51 -04:00
afeiszli 716c717265 fix freebsd build 2022-05-31 13:49:27 -04:00
afeiszli 8d422526b3 refactoring servercfg 2022-05-31 12:07:56 -04:00
afeiszli c0070a1bd2 fixing gui logic 2022-05-31 08:44:36 -04:00
afeiszli e4189ad8bd refactoring serverinfo logic 2022-05-31 08:42:12 -04:00
afeiszli 46b2cfef1c removing port fallback 2022-05-30 12:56:58 -04:00
afeiszli bad2a0faea moving around some logic 2022-05-30 12:54:30 -04:00
afeiszli 0865a535c7 changing broker retrieval/setting logic 2022-05-30 12:39:33 -04:00
Matthew R. Kasun 85ad06941d use interface as hostctl profile 2022-05-27 09:45:52 -04:00
Matthew R. Kasun 62b8b9bb8e update routes to use iplib 2022-05-26 17:39:18 -04:00
Matthew R. Kasun 28a6ea85cb remove debug logs 2022-05-25 17:50:13 -04:00
Matthew R. Kasun fef31752bd send server version in peer update message 2022-05-25 15:21:22 -04:00
Matthew R. Kasun 0764632b30 add : in server connection string 2022-05-25 11:37:55 -04:00
Matthew R. Kasun 53b3e7f415 configurable mq ports 2022-05-25 10:31:44 -04:00
Alex Feiszli e6e686b8b6
Merge pull request #1130 from gravitl/bugfix_v0.14.1_slash
remove slash
2022-05-24 16:42:48 -04:00
afeiszli 556b7499dd remove slash 2022-05-24 16:31:18 -04:00
0xdcarns 553b03c1b4 made daemon only get networks once 2022-05-24 14:19:47 -04:00
0xdcarns 5a3b6141bd added mutex lock for conf writes 2022-05-24 13:42:06 -04:00
0xdcarns 3c415c19cc win manifest version update 2022-05-24 13:16:28 -04:00
0xdcarns f64983eda1 updated compose, bug report, and README.md versions 2022-05-24 13:12:44 -04:00
0xdcarns bf4fdd94ac removed unnecessary loop from daemon start 2022-05-24 09:38:27 -04:00
Matthew R Kasun 2a35ef39a6 fix startup 2022-05-23 16:10:02 -04:00
dcarns c3989fc6f1
Merge pull request #1116 from gravitl/bugfix_v0.14.1_node_health_gui
handled checkin time comparison for health better
2022-05-23 11:17:24 -04:00
afeiszli da774f7679 removing legacy DNS logic 2022-05-23 10:02:47 -04:00
0xdcarns aed80d0886 handled checkin time comparison for health better 2022-05-23 10:02:28 -04:00
Alex Feiszli f2ca830106
Merge pull request #1108 from gravitl/bugfix_v0.14.1_ports
isStatic now only represents whether the Endpoint var is static
2022-05-22 14:33:08 -04:00
afeiszli 1af535046c isStatic now only represents whether the Endpoint var is static 2022-05-20 11:19:55 -04:00
dcarns dcc1216139
Merge pull request #1107 from gravitl/refactor_0.14.1_setupMQTT
check broker connectivity on mqtt setup
2022-05-20 11:13:23 -04:00
Matthew R Kasun 05e0531167
Merge pull request #1106 from gravitl/bugfix_v0.14.1_unnecessary_chk
removed unnecessary check for network in join command
2022-05-20 11:02:53 -04:00
Matthew R. Kasun a1fd52d7d5 check broker connectivity on mqtt setup 2022-05-20 10:50:23 -04:00
dcarns d4bd11ec32
Merge pull request #1105 from gravitl/bugfix_v0.14.1_ports
fixing logic for port setting
2022-05-20 10:21:31 -04:00
0xdcarns d43cfc727e removed unnecessary check for network in join command 2022-05-20 09:09:56 -04:00
afeiszli 91fe618fae log 2022-05-20 09:06:12 -04:00
afeiszli 92f243a1ba fixing logic for port setting 2022-05-20 08:38:32 -04:00
dcarns 9e741905e9
Merge pull request #1103 from gravitl/bugfix_v0.14.1_broker_timeout_checks
add checks/logs on broker connect timeout
2022-05-19 17:16:30 -04:00
afeiszli a73e53ee31 adding check for AllowedIP length 2022-05-19 16:04:47 -04:00
Matthew R. Kasun 5b2013eda4 move logging to checkBroker function 2022-05-19 15:51:06 -04:00
Matthew R. Kasun 9a9f1b973e add checks/logs on broker connect timeout 2022-05-19 10:44:28 -04:00
dcarns 9072da4514
Merge pull request #1091 from gravitl/feature_v0.14.0_windows_msi_refactor
removing windows installer portions
2022-05-16 13:01:18 -04:00
Matthew R. Kasun 976ab07de1 use token.WaitTimeout() 2022-05-16 09:38:47 -04:00
Matthew R. Kasun f440b5cc07 remove dns entries in /etc/hosts on leave/uninstall 2022-05-16 07:23:44 -04:00
afeiszli bc1eb17bad removing windows installer portions 2022-05-15 20:26:38 -04:00
dcarns d2d8f47346
Merge pull request #1086 from gravitl/feature_v0.14.0_optional_daemon
made daemon install optional and changed mac logging path
2022-05-13 09:41:26 -04:00
0xdcarns 3e0094e822 made daemon install optional and changed mac logging path 2022-05-13 09:35:00 -04:00
Matthew R. Kasun c8ec507484 add timeout to http.get 2022-05-13 06:04:27 -04:00
afeiszli d63bae351d fixing rangeupdate for ipv6, setting ipv4 assignment 2022-05-12 19:35:46 -04:00