Commit graph

148 commits

Author SHA1 Message Date
Matthew R Kasun 9b072e1050 remove network capabilities from netmaker
remove NET_ADMIN, NET_RAW, SYS_MODULE capabilities from docker-compose
files
remove sysctls from dockerfiles
remove ManageIPTables and PortForwardServices from ServerConfig
remove functions related to removed attributes
2023-01-23 12:37:07 -05:00
Matthew R Kasun 9edb541388 remove localrange 2023-01-20 05:42:05 -05:00
Matthew R. Kasun 8bfe255eab Merge remote-tracking branch 'origin/develop' into netclient_refactor_latest
Signed-off-by: Matthew R. Kasun <mkasun@nusak.ca>
2023-01-04 14:16:12 -05:00
Matthew R. Kasun 38cd4d7700 refactor join
also removes server node
suspect there may be issues with proxy
and UI interactions with nodes
2022-12-20 15:29:09 -05:00
walkerwmanuel 71d66b7f93 Refactored user functions to use refrences rather than values 2022-12-20 15:10:40 -05:00
kayos@tcp.direct e878e4820a
Fixes+Chores: avoid de-referencing nil ptrs + lint
- Avoid referencing conditions we know are false/true

 - Avoid using name of imported package as variable

 - Avoid broken (see list item 1) if else statement in `ipservice.go` by refactoring to switch statement

 - When assigning a pointer value to a variable along with an error, check that error before referencing that pointer. Thus avoiding de-referencing a nil and causing a panic.
  *** This item is the most important ***

 - Standard gofmt package sorting + linting; This includes fixing comment starts for go doc

 - Explicit non-handling of unhandled errors where appropriate (assigning errs to _ to reduce linter screaming)

 - Export ErrExpired in `netcache` package so that we can properly reference it using `errors.Is` instead of using `strings.Contains` against an `error.Error()` value
2022-12-06 20:11:20 -08:00
Abhishek Kondur 4b1a85a3ee proxy changes 2022-12-02 17:35:41 +05:30
Abhishek Kondur a7c0abe2fc refactor proxy updates 2022-11-07 01:25:04 +05:30
Abhishek Kondur acae6c3aed added relay functionality to proxy 2022-11-04 01:24:48 +05:30
Abhishek Kondur 17e05d430b sync peers updates with proxy 2022-11-02 15:33:42 +05:30
Abhishek Kondur 31a7e73473 add proxy to netmaker server 2022-10-28 17:02:22 +05:30
Matthew R. Kasun 1de2989b84 move logic to serverctl.setNetworkDefaults() 2022-09-30 15:16:13 -04:00
afeiszli 5916dffb91 fix update user 2022-09-14 14:44:52 -04:00
afeiszli 8a1ba674a7 ee fixes 2022-09-14 09:58:01 -04:00
afeiszli 90bb3884e6 initialize network settings to avoid panic 2022-09-13 16:32:11 -04:00
afeiszli 96772bb4bd network and ACL initialization 2022-09-13 15:41:23 -04:00
0xdcarns 88cd0a6497 initial commit 2022-09-13 15:25:56 -04:00
afeiszli 8fc9dac969 adding security fixes 2022-08-31 11:38:29 -04:00
0xdcarns 5c2106dd46 re-add server mq port 2022-07-07 14:08:24 -04:00
0xdcarns 3a74170ab2 added v0.14.5 and removed MQ_SERVER_PORT 2022-07-07 10:23:07 -04:00
0xdcarns 393102ad69 first connection established 2022-07-05 16:27:17 -04:00
0xdcarns adaf8f1ca6 initial changes to make cert <-> broker comms work 2022-07-05 15:04:45 -04:00
afeiszli f28d361bea refactoring cert logic to use database 2022-06-30 22:30:28 -04:00
Matthew R. Kasun 932eba8d21 fix statticcheck errors 2022-06-16 15:42:32 -04:00
afeiszli 8d422526b3 refactoring servercfg 2022-05-31 12:07:56 -04:00
afeiszli 709ecd8cfe fixing ip check 2022-05-27 10:52:47 -04:00
Matthew R. Kasun 53b3e7f415 configurable mq ports 2022-05-25 10:31:44 -04:00
0xdcarns 6eab0498fc some changes around iptables 2022-04-25 13:10:55 -04:00
Matthew R. Kasun 747d6bc692 remove comms network leftovers
Signed-off-by: Matthew R. Kasun <mkasun@nusak.ca>
2022-04-22 05:21:35 -04:00
Matthew R. Kasun 7152f6ccd4 remove references to grpc/comms net 2022-04-21 15:53:44 -04:00
dcarns ff89e3a391
Merge pull request #980 from gravitl/feature_v0.12.2_version_update
update server version on start; update client version on ping
2022-03-28 20:01:18 -04:00
Matthew R. Kasun 52a14877ff update versions
Signed-off-by: Matthew R. Kasun <mkasun@nusak.ca>
2022-03-28 17:26:03 -04:00
0xdcarns 7ca2c259ed added option to make iptables change 2022-03-28 10:36:23 -04:00
0xdcarns ffdc3daed4 change log msg 2022-03-28 10:23:13 -04:00
0xdcarns a2a6d75c25 fixed iptable check 2022-03-28 10:21:18 -04:00
0xdcarns d74106c071 added iptables check cmd 2022-03-28 10:00:35 -04:00
0xdcarns 22a06005f0 removed annoying log 2022-03-25 16:30:20 -04:00
0xdcarns 4cd75f2985 initial commit 2022-03-22 15:13:48 -04:00
0xdcarns 8d63a8e058 added graceful wait for comms 2022-03-21 14:47:51 -04:00
0xdcarns 772e5e6e80 commsnet else init 2022-03-17 13:54:41 -04:00
0xdcarns d738a35eaf added comms net default acl check 2022-03-17 13:51:23 -04:00
0xdcarns 3157511cd5 fixed comms id init 2022-03-17 13:14:06 -04:00
afeiszli fdfbde118e putting acl check before server pull 2022-03-13 21:35:22 -04:00
afeiszli 8306c213a7 adding default acl function 2022-03-13 20:58:30 -04:00
0xdcarns 8516524d02 sync hotfix 2022-02-22 16:14:23 -05:00
0xdcarns 324d2ba70c moved telemetry check and generated comms CIDR better 2022-02-22 14:53:40 -05:00
afeiszli 4dc9f74ae4 fixed ssh port forwarding 2022-02-21 16:39:52 -05:00
afeiszli f21dad5184 fixed hub logic 2022-02-21 09:45:42 -05:00
afeiszli d166e4b348 always sync servernet 2022-02-21 08:57:06 -05:00
0xdcarns 9c6c6ef176 change env to var 2022-02-20 11:37:15 -05:00