afeiszli
96535554f5
fixing mac stuff and dns testing
2022-02-07 11:38:47 -05:00
Matthew R. Kasun
24babaf560
peerupdate refactor
2022-02-07 11:29:10 -05:00
Matthew R. Kasun
a529b28a00
remove call to wgctrl.Device for freebsd
2022-02-07 05:45:24 -05:00
0xdcarns
8533f456bd
edited so that if certain error detected, restart daemon, log changes
2022-02-06 15:02:05 -05:00
Alex Feiszli
6160ec2725
Merge pull request #692 from gravitl/feature_v0.10.0_relay
...
backup logic for relay failing, dont allow server to be relayed
2022-02-06 13:28:45 -05:00
afeiszli
d7acdee86e
ext client logic for peer updates
2022-02-06 13:28:05 -05:00
afeiszli
7215fc539f
ext client logic for peer updates
2022-02-06 13:27:24 -05:00
0xdcarns
4c5d21ec55
changed logging for server keepalive
2022-02-06 11:34:56 -05:00
Matthew R. Kasun
bb20970902
restore pull on daemon start
2022-02-06 11:22:24 -05:00
0xdcarns
8ea0574be9
added cidr regardless
2022-02-06 11:06:04 -05:00
afeiszli
bda337d6b5
fixing route issue
2022-02-05 16:09:23 -05:00
afeiszli
df895dc6b0
switching route thing in windows
2022-02-05 16:02:25 -05:00
afeiszli
d55b7de178
fixing merge problems
2022-02-05 15:55:03 -05:00
afeiszli
9f0f5e1a09
fixing merge problems
2022-02-05 15:53:26 -05:00
afeiszli
dd79186a81
changing validation
2022-02-05 15:50:29 -05:00
afeiszli
7bf864a387
fixing dns and various logs
2022-02-05 15:50:29 -05:00
afeiszli
28ffa37e47
fixing merge
2022-02-05 15:38:50 -05:00
afeiszli
eea0e1265e
changing validation
2022-02-05 15:16:11 -05:00
dcarns
2ae4b1990a
Merge pull request #680 from gravitl/bugfix_v0.10.0_ping_and_retain_messages
...
Bugfix v0.10.0 ping and retain messages
2022-02-05 15:03:16 -05:00
0xdcarns
3713d1891a
silenced logs
2022-02-05 15:00:26 -05:00
afeiszli
5d9e16f0a8
Merge branch 'develop' of https://github.com/gravitl/netmaker into bugfixes_v0.10.0_various2
2022-02-05 14:41:20 -05:00
0xdcarns
25ea986402
1 more change
2022-02-05 14:35:34 -05:00
afeiszli
d3a4b5ad8e
Merge branch 'develop' of https://github.com/gravitl/netmaker into bugfixes_v0.10.0_various2
2022-02-05 14:33:37 -05:00
afeiszli
c6b2e47a15
saving merge
2022-02-05 14:33:34 -05:00
0xdcarns
4cfc161dfe
moved check outside loop
2022-02-05 14:31:58 -05:00
afeiszli
8566332ad9
fixing dns and various logs
2022-02-05 14:26:19 -05:00
0xdcarns
a0ae603a42
routes for different OSs should be handled, cleaned up apply conf
2022-02-05 14:20:50 -05:00
0xdcarns
ac5eea4e3d
began route consolidation
2022-02-05 13:31:06 -05:00
Matthew R. Kasun
44ee0e2e8a
fix error messages
2022-02-04 18:24:46 -05:00
Matthew R. Kasun
6f0950792f
set retained true on server publish and client ping server on checkin
2022-02-04 18:00:17 -05:00
0xdcarns
731977533b
on delete, removes files and ends daemon if required, ifacedelta on key refresh
2022-02-04 16:47:57 -05:00
afeiszli
2cbf08ad1e
adding logic for key checks, OS on server
2022-02-04 14:19:26 -05:00
0xdcarns
85c9d3575a
added wipelocal on all leaves
2022-02-04 11:31:22 -05:00
0xdcarns
10872c4e25
edited logs
2022-02-03 16:34:34 -05:00
afeiszli
9400209d97
adding OS and Version
2022-02-03 15:33:19 -05:00
Matthew R Kasun
4bcd52b85b
remove debug log
2022-02-03 10:56:44 -05:00
Matthew R Kasun
19c476490a
fix path in MessageQueue func
2022-02-03 10:48:40 -05:00
0xdcarns
11a094535f
comment
2022-02-03 09:51:58 -05:00
0xdcarns
06e2603c20
added time to prevent UDP reset
2022-02-03 09:51:37 -05:00
0xdcarns
3a8b6bbaf3
route file add
2022-02-03 09:51:37 -05:00
0xdcarns
284283c130
added logic to check peers
2022-02-03 09:51:37 -05:00
afeiszli
e336d62321
saving current logic
2022-02-03 09:51:37 -05:00
afeiszli
eb6f33704a
adding checks for DNS to ensure connectivity
2022-02-03 09:51:37 -05:00
afeiszli
cbf709166c
adding checks for DNS to ensure connectivity
2022-02-03 09:51:37 -05:00
afeiszli
239b9d36fc
change queue identifier from server.ID to Network.NetID
2022-02-03 09:51:37 -05:00
0xdcarns
f7258bf98f
refactored some client leave & cache and server join logic
2022-02-03 09:51:37 -05:00
dcarns
147cc18be0
Merge pull request #663 from gravitl/feature_v0.10.0_windows_adapt
...
edited windows to new daemon
2022-02-02 09:17:06 -05:00
afeiszli
918e6a5e01
removing peer cache
2022-02-02 00:45:22 -05:00
0xdcarns
f279245f9e
edited windows to new daemon
2022-02-02 00:18:02 -05:00
afeiszli
03a30b6bbc
removing peer cache
2022-02-02 00:02:36 -05:00
afeiszli
7c4e8b2b4a
removing peer cache
2022-02-01 23:30:10 -05:00
afeiszli
80dfdaa8fb
removing UUID gen from client side
2022-02-01 22:36:02 -05:00
afeiszli
f6c68bd209
removing UUID gen from client side
2022-02-01 22:01:30 -05:00
afeiszli
c8154ffa5d
remove GetNodeByIDOrMacAddress
2022-02-01 21:50:11 -05:00
afeiszli
44ee0102f8
add client pull loop + timeout
2022-02-01 16:05:39 -05:00
afeiszli
d78edc36b9
add client pull loop + timeout
2022-02-01 15:46:42 -05:00
afeiszli
8e82bfa607
add client pull loop + timeout
2022-02-01 15:44:30 -05:00
afeiszli
d2467e13f3
allow adding address
2022-02-01 15:27:00 -05:00
afeiszli
eeb658595b
set server node checkin
2022-02-01 14:37:00 -05:00
afeiszli
d64cc1f39e
publish peers on every keepalive
2022-02-01 14:01:13 -05:00
afeiszli
8c0341391c
add logging to check for node publish
2022-02-01 11:31:19 -05:00
afeiszli
bee8492c7a
fixing permissions, logging on netclient
2022-02-01 11:04:57 -05:00
afeiszli
03c2f4e7ee
fixing permissions, logging on netclient
2022-02-01 11:03:14 -05:00
afeiszli
1e5a0e9d04
fix server self updates
2022-01-31 23:18:58 -05:00
afeiszli
35884056b3
disable server deletion
2022-01-31 22:43:12 -05:00
afeiszli
973c5b052e
change order of operations
2022-01-31 21:28:34 -05:00
afeiszli
33f327f245
fixing messages and keepalive
2022-01-31 17:21:31 -05:00
afeiszli
9614735dca
fix peer sync
2022-01-31 16:49:40 -05:00
afeiszli
d1831ece96
fix GetSystemNetworks
2022-01-31 16:36:37 -05:00
afeiszli
9d2ae79fe2
fix iface issues on client and access key deletion
2022-01-31 16:25:29 -05:00
afeiszli
6f9f97e4b7
dont publish to updated node
2022-01-31 16:15:10 -05:00
afeiszli
3964d927ea
testing server update
2022-01-31 15:51:21 -05:00
afeiszli
09c2f9bf8b
fixing peer locs
2022-01-31 15:37:57 -05:00
0xdcarns
d5d442c75c
removed go routines around mq
2022-01-31 14:09:23 -05:00
dcarns
a4582dd14d
Merge pull request #656 from gravitl/bugfix_v0.10.0_get_system_networks
...
Bugfix v0.10.0 get system networks
2022-01-31 13:19:31 -05:00
Matthew R Kasun
9132089853
cleanup
2022-01-31 12:58:51 -05:00
0xdcarns
c621f6c2d6
sync always
2022-01-31 11:29:00 -05:00
0xdcarns
3aaf83d04d
sync conf
2022-01-31 11:25:05 -05:00
0xdcarns
dfe59cb6fe
added ncutils func
2022-01-31 11:21:01 -05:00
0xdcarns
4823566125
debug again
2022-01-31 11:20:59 -05:00
afeiszli
023d9dd3ef
udp hole punch
2022-01-31 11:19:19 -05:00
afeiszli
3cc3cd9a0f
fixing netclient pull to get server addresses
2022-01-31 11:19:17 -05:00
dcarns
a7015e7260
Merge pull request #653 from gravitl/feature_v0.10.0_serverPings
...
Feature v0.10.0 server pings
2022-01-31 11:17:42 -05:00
Matthew R Kasun
e8bbd8790e
add serverkeepalive to Resubcribe
2022-01-30 18:38:15 -05:00
Matthew R Kasun
0434a784cc
prevent fatal stop of mq daemon when netclient config dir contains unexpected files
2022-01-30 18:11:22 -05:00
Matthew R Kasun
c0a085a53f
fix sending keepalives; fix where keepalive timestamps stored
2022-01-30 14:50:18 -05:00
Matthew R Kasun
34069302f3
use map to store last server keepalive time
2022-01-30 10:37:35 -05:00
Matthew R Kasun
7ac0bfd13a
Merge remote-tracking branch 'origin/develop' into feature_v0.10.0_serverPings
2022-01-30 09:18:24 -05:00
Matthew R Kasun
20569ee8ec
Merge remote-tracking branch 'origin/develop' into feature_v0.10.0_serverPings
2022-01-30 05:55:52 -05:00
0xdcarns
ad79f2ea1f
addresses review comments
2022-01-29 18:18:46 -05:00
0xdcarns
410efbab50
switched to eliptical strategy
2022-01-29 18:18:46 -05:00
0xdcarns
2d703dce7c
refactored continue
2022-01-29 18:18:46 -05:00
0xdcarns
3dadb8dcbf
added e..
2022-01-29 18:18:46 -05:00
0xdcarns
aa22afeb95
tracking mod
2022-01-29 18:18:46 -05:00
0xdcarns
ac632a75b7
refactored struct
2022-01-29 18:18:46 -05:00
0xdcarns
79cff15cde
change byte max
2022-01-29 18:18:46 -05:00
0xdcarns
c40c905b3b
edited chunk size
2022-01-29 18:18:46 -05:00
0xdcarns
7c29f2454e
debug
2022-01-29 18:18:46 -05:00
0xdcarns
a058db2102
chunked
2022-01-29 18:18:46 -05:00
0xdcarns
fb69d54f24
change key size
2022-01-29 18:18:46 -05:00
0xdcarns
19426fc3e1
added a cleanup
2022-01-29 18:18:46 -05:00
0xdcarns
d27dee0691
debugging
2022-01-29 18:18:46 -05:00
0xdcarns
03b05f7d7c
removed size
2022-01-29 18:18:46 -05:00
0xdcarns
0015d6fdf8
added encryption/decryption strategy
2022-01-29 18:18:46 -05:00
0xdcarns
1ef52077a7
added beginning of re sub logic
2022-01-29 18:15:52 -05:00
0xdcarns
dc93bd084e
cleaned logs
2022-01-29 18:15:52 -05:00
0xdcarns
f5d763ca9f
added mutex on log
2022-01-29 18:15:52 -05:00
0xdcarns
cd4e2c57d6
added new struct and adapted to funcs
2022-01-29 18:15:52 -05:00
0xdcarns
0d3813295d
server update
2022-01-29 18:15:52 -05:00
0xdcarns
26a0d8bdbe
initial commit
2022-01-29 18:15:52 -05:00
Matthew R Kasun
4854cb2db9
fix typo
2022-01-27 15:52:31 -05:00
Matthew R Kasun
84d9faeb3f
retries for connecting to broker
2022-01-27 15:46:45 -05:00
Matthew R Kasun
4ccce6bac5
update for multiple networks
2022-01-27 14:48:10 -05:00
Matthew R Kasun
513f85ede7
refactor server pings
2022-01-27 09:48:32 -05:00
Matthew R Kasun
895e3b5643
resub on server ping timeout; may not work in multi server enviornment
2022-01-27 06:31:25 -05:00
Matthew R Kasun
5306cff2e8
Merge branch 'feature_v0.10.0_server_response' into feature_v0.10.0_serverPings
2022-01-26 15:12:02 -05:00
Matthew R Kasun
ad581b8764
Merge branch 'feature_v0.10.0_server_response' into feature_v0.10.0_serverPings
2022-01-26 14:04:55 -05:00
Matthew R Kasun
9dedb479d1
publish server keepalive and skeleton client subscription handler
2022-01-26 13:42:52 -05:00
0xdcarns
8232d8b744
added beginning of re sub logic
2022-01-26 11:24:47 -05:00
0xdcarns
71ffa797d4
cleaned logs
2022-01-26 11:21:56 -05:00
0xdcarns
a5e483adab
added mutex on log
2022-01-26 11:20:46 -05:00
0xdcarns
27b29baf32
added new struct and adapted to funcs
2022-01-26 10:40:39 -05:00
0xdcarns
424c801c6c
server update
2022-01-25 23:04:03 -05:00
0xdcarns
d6554ef081
initial commit
2022-01-25 22:14:31 -05:00
Matthew R Kasun
71cc49e06d
fix duplicate constant
2022-01-25 18:23:08 -05:00
Matthew R Kasun
03d17a0520
addressing review comments
2022-01-25 18:15:27 -05:00
Matthew R Kasun
bc54bbf167
manual rebase to develop
2022-01-25 07:31:50 -05:00
Matthew R Kasun
a27c403925
another dns fix
2022-01-24 16:12:57 -05:00
Matthew R Kasun
1c69ee18c8
call UpdateDNS on node update if DNSOn
2022-01-24 15:46:38 -05:00
Matthew R Kasun
f19c114cf6
add MTU to wireguard conf
2022-01-24 10:58:12 -05:00
Matthew R Kasun
8aee75d32b
unsubscribe from node topic on node delete
2022-01-23 18:18:42 -05:00
Matthew R Kasun
c1813c52e9
publish node update and peer update on ingress gateway creation
2022-01-22 15:34:01 -05:00
Matthew R Kasun
fcc1259adf
fix writes/updates to wg config files
2022-01-22 11:38:56 -05:00
Matthew R Kasun
9c6a26dcc5
fix lookup for netclient wg config file
2022-01-21 14:07:28 -05:00
Matthew R Kasun
95dea6a4ba
fix for issue #621
2022-01-21 13:15:54 -05:00
Matthew R Kasun
1a00f8377e
write persistent keepalive to wg.conf file
2022-01-21 09:36:29 -05:00
Matthew R Kasun
799f32c664
fix missing slash in msg topic; update handling of keyUpdates
2022-01-21 07:07:38 -05:00
Matthew R Kasun
30a6b0f4c9
fix pointer in message queue daemon
2022-01-21 06:16:49 -05:00
Matthew R Kasun
2310977391
refactor to reduce number of types of message in message queue simplifying the subscribers and publishers
2022-01-21 05:19:17 -05:00
Matthew R Kasun
b15a5112fc
fixes due to rebase
2022-01-20 15:41:06 -05:00
Matthew R Kasun
639f129407
Merge branch 'feature-messageQueue' of github.com:gravitl/netmaker into feature-messageQueue
...
# Conflicts:
# .gitignore
# docker/mosquitto.conf
# netclient/wireguard/unix.go
2022-01-20 13:21:01 -05:00
Matthew R Kasun
688b2a3a65
fixed tests and removed some debugging logs
2022-01-20 13:16:03 -05:00
Matthew R Kasun
e8683469a5
fix UpdateWgPeers to enable multiple peer sections
2022-01-20 13:16:03 -05:00
Matthew R Kasun
cef9fb8bf1
fix UpdateWgPeers
2022-01-20 13:16:03 -05:00
Matthew R Kasun
14c4b446aa
remove metrics from client
2022-01-20 13:14:59 -05:00
Matthew R Kasun
2f0f0f9c4d
moved peer determination to server
2022-01-20 13:14:48 -05:00
Matthew R Kasun
7c1e672693
use uuid in message queue functions
2022-01-20 13:14:13 -05:00
Matthew R Kasun
b1e66703ff
WIP commit to enable rebasing to uuid feature
2022-01-20 13:14:00 -05:00
Matthew R Kasun
a94e848021
WIP commit
2022-01-20 13:13:38 -05:00
Matthew R Kasun
1b0aabf429
refactor NodeUpdate message queue handler
2022-01-20 13:12:51 -05:00
Matthew R Kasun
b5b7425eaf
add error handling on failed key generation
2022-01-20 13:12:51 -05:00
Matthew R Kasun
a46209cea5
subscribed message handlers implemented
2022-01-20 13:12:12 -05:00
Matthew R Kasun
b85ab18404
Rebase to develop ( #4 )
...
* add nameserver in call to CreateUserSpaceConf
* fixed user deletion
* changed log
* go mod tidy and conver azure tenant to env/conf var
* added egress relayed addrs to relayed nodes
* added post commands for wg quick
* refactored ncutils x-platform
* log fix
* adding egress to relay
* fixing egress on relay
Co-authored-by: dcarns <75687250+0xdcarns@users.noreply.github.com>
Co-authored-by: 0xdcarns <dillon.carns@gmail.com>
Co-authored-by: afeiszli <alex.feiszli@gmail.com>
2022-01-20 13:10:59 -05:00
Matthew R Kasun
ec9f72d2d4
work in progress for message queue
2022-01-20 13:08:08 -05:00
Matthew R Kasun
5e00bd8a3d
WIP commit to enable rebasing to uuid feature
2022-01-20 13:05:59 -05:00
Matthew R Kasun
e7f80c178d
WIP commit
2022-01-20 13:05:41 -05:00
Matthew R Kasun
c9d0cc56ef
refactor NodeUpdate message queue handler
2022-01-20 13:04:58 -05:00
Matthew R Kasun
aad4e44e73
work in progress for message queue
2022-01-20 13:01:23 -05:00
0xdcarns
2e1bc755e2
version update
2022-01-20 13:00:04 -05:00
0xdcarns
be093a951f
added legacy check to maintain compatibility
2022-01-20 13:00:04 -05:00
0xdcarns
41401cfb58
version updates
2022-01-20 13:00:04 -05:00
0xdcarns
66d6c71441
adjusting client join
2022-01-20 12:59:31 -05:00
Matthew R Kasun
443ed80e4d
updated service files for linux and darwin to start netclient daemon vice netclient checkin
2022-01-20 12:53:14 -05:00
Matthew R Kasun
e0275c90d8
fixed tests and removed some debugging logs
2022-01-20 12:53:14 -05:00
Matthew R Kasun
56a5a928ab
fix UpdateWgPeers to enable multiple peer sections
2022-01-20 12:53:14 -05:00
Matthew R Kasun
353c92e333
fix UpdateWgPeers
2022-01-20 12:53:14 -05:00
Matthew R Kasun
989d76ea3d
remove metrics from client
2022-01-20 12:53:13 -05:00
Matthew R Kasun
a86b9bd380
moved peer determination to server
2022-01-20 12:52:49 -05:00
Matthew R Kasun
ec486addf0
use uuid in message queue functions
2022-01-20 12:52:49 -05:00
Matthew R Kasun
aa6f7a138b
WIP commit to enable rebasing to uuid feature
2022-01-20 12:52:49 -05:00
Matthew R Kasun
496187985e
WIP commit
2022-01-20 12:52:49 -05:00
Matthew R Kasun
84884e5c23
refactor NodeUpdate message queue handler
2022-01-20 12:52:49 -05:00
Matthew R Kasun
1046c0ad55
add error handling on failed key generation
2022-01-20 12:52:49 -05:00
Matthew R Kasun
2cf53819f3
subscribed message handlers implemented
2022-01-20 12:52:49 -05:00
0xdcarns
4bc28e455a
linting fixes
2022-01-20 12:52:49 -05:00
Matthew R Kasun
c7dc874bb8
go routines now run forever like they are supposed to
2022-01-20 12:52:49 -05:00
Matthew R Kasun
f11fa093fb
move context up a level
2022-01-20 12:52:49 -05:00
Matthew R Kasun
5458379b32
Replaced ### with - in Node.ID (local copy) to fix mqtt publishing
...
errors
added context to all go routines
removed connectivity function
2022-01-20 12:52:49 -05:00
Matthew R Kasun
cb51a6be78
work in progress for message queue
2022-01-20 12:52:49 -05:00
Matthew R Kasun
90b468f9f9
WIP commit to enable rebasing to uuid feature
2022-01-20 12:52:49 -05:00
Matthew R Kasun
3e016ef8b5
WIP commit
2022-01-20 12:50:00 -05:00
Matthew R Kasun
deef5482a3
refactor NodeUpdate message queue handler
2022-01-20 12:50:00 -05:00
Matthew R Kasun
17eabe5841
add error handling on failed key generation
2022-01-20 12:50:00 -05:00
0xdcarns
d09d3dee63
constants
2022-01-20 12:50:00 -05:00
Matthew R Kasun
6dff650b08
subscribed message handlers implemented
2022-01-20 12:50:00 -05:00
0xdcarns
e2bb597ab1
linting fixes
2022-01-20 12:50:00 -05:00
Matthew R Kasun
8768a2c390
go routines now run forever like they are supposed to
2022-01-20 12:50:00 -05:00
Matthew R Kasun
efd8764de3
move context up a level
2022-01-20 12:50:00 -05:00
Matthew R Kasun
f968ecf4f5
Replaced ### with - in Node.ID (local copy) to fix mqtt publishing
...
errors
added context to all go routines
removed connectivity function
2022-01-20 12:50:00 -05:00
Matthew R Kasun
a44ad51661
work in progress for message queue
2022-01-20 12:50:00 -05:00
Matthew R Kasun
9f00ec8817
Merge branch 'feature-messageQueue' of github.com:gravitl/netmaker into feature-messageQueue
2022-01-20 11:32:12 -05:00
Matthew R Kasun
c456537aff
updated service files for linux and darwin to start netclient daemon vice netclient checkin
2022-01-20 11:29:37 -05:00
Matthew R Kasun
70cf2a26b1
fixed tests and removed some debugging logs
2022-01-20 11:29:16 -05:00
Matthew R Kasun
5147bb61d0
fix UpdateWgPeers to enable multiple peer sections
2022-01-20 11:29:16 -05:00
Matthew R Kasun
9539e78369
fix UpdateWgPeers
2022-01-20 11:29:16 -05:00
Matthew R Kasun
d5939e255a
remove metrics from client
2022-01-20 11:29:16 -05:00
Matthew R Kasun
05dd87887e
moved peer determination to server
2022-01-20 11:29:16 -05:00
Matthew R Kasun
1e199665c0
use uuid in message queue functions
2022-01-20 11:29:16 -05:00
Matthew R Kasun
8fe732be41
WIP commit to enable rebasing to uuid feature
2022-01-20 11:29:16 -05:00
Matthew R Kasun
fcc14fb1e4
WIP commit
2022-01-20 11:29:16 -05:00