0xdcarns
|
7347085e5e
|
conflict resolution
|
2022-08-30 10:55:18 -04:00 |
|
0xdcarns
|
c05320a323
|
initial logic added
|
2022-08-30 10:52:04 -04:00 |
|
Matthew R. Kasun
|
0d00e8289f
|
fix nft rules for internet gateway
|
2022-08-25 14:55:03 -04:00 |
|
Matthew R. Kasun
|
ed7e263fb1
|
fix parsing postup/postdown
|
2022-08-25 09:38:36 -04:00 |
|
Matthew R. Kasun
|
b7ea52c3b2
|
fix ; spacing on postup/postdown
|
2022-08-25 08:35:48 -04:00 |
|
Matthew R Kasun
|
723e4ebeee
|
Merge branch 'develop' into feature_v0.14.7_explicit_routes
|
2022-08-25 07:31:34 -04:00 |
|
Matthew R. Kasun
|
5240da222a
|
freebsd saving post up/post down command to conf file
|
2022-08-25 06:59:12 -04:00 |
|
Matthew R. Kasun
|
cd5e9abe06
|
Revert "freebsd post up/post down logic"
This reverts commit a0c8795d38 .
|
2022-08-25 06:50:19 -04:00 |
|
Matthew R. Kasun
|
a0c8795d38
|
freebsd post up/post down logic
|
2022-08-25 06:40:37 -04:00 |
|
afeiszli
|
48f8dd79e7
|
disabling zombie logic
|
2022-08-24 11:04:52 -04:00 |
|
Matthew R. Kasun
|
b2e5b239db
|
fix range check
|
2022-08-23 16:35:36 -04:00 |
|
afeiszli
|
dbec514d5d
|
doing a backwards loop instead
|
2022-08-23 15:21:36 -04:00 |
|
afeiszli
|
f07a6dcf2f
|
add handling for slice size reduction to for loop
|
2022-08-23 15:21:36 -04:00 |
|
Matthew R. Kasun
|
eb3ad7974d
|
fix interation logic
|
2022-08-23 15:21:36 -04:00 |
|
afeiszli
|
2db1571afb
|
doing a backwards loop instead
|
2022-08-23 15:06:49 -04:00 |
|
afeiszli
|
4a247d8f41
|
add handling for slice size reduction to for loop
|
2022-08-23 15:06:49 -04:00 |
|
Matthew R. Kasun
|
447e80efee
|
remove internet gateway from server peers allowed ip
|
2022-08-23 15:06:49 -04:00 |
|
afeiszli
|
5b21b03a61
|
doing a backwards loop instead
|
2022-08-23 15:04:24 -04:00 |
|
afeiszli
|
d836718f04
|
add handling for slice size reduction to for loop
|
2022-08-23 15:04:24 -04:00 |
|
Matthew R. Kasun
|
b572a8cdaf
|
fix interation logic
|
2022-08-23 14:56:53 -04:00 |
|
Matthew R. Kasun
|
044e0734c1
|
remove internet gateway from server peers allowed ip
|
2022-08-23 14:36:39 -04:00 |
|
Alex Feiszli
|
45df9b6bac
|
Merge pull request #1467 from gravitl/refactor_v0.14.7_server_routing
refactor server routing
|
2022-08-22 09:37:10 -04:00 |
|
Matthew R. Kasun
|
f536f0465c
|
check firewall type on gateway creation
|
2022-08-19 15:32:25 -04:00 |
|
Matthew R. Kasun
|
abadb28a56
|
remove unused functions to pass staticchecks
|
2022-08-19 14:38:36 -04:00 |
|
Matthew R. Kasun
|
184e5a66d9
|
refactor server routing
|
2022-08-19 11:25:39 -04:00 |
|
Matthew R Kasun
|
d7384b6a81
|
Merge pull request #1462 from gravitl/refactor_v0.14.7_unnecessary_code
remove func NetworkNodesUpdatePullChanges
|
2022-08-18 15:51:01 -04:00 |
|
Matthew R. Kasun
|
43258b642e
|
Merge branch 'develop' into bugfix_v0.14.7_nft
|
2022-08-18 15:49:06 -04:00 |
|
Matthew R. Kasun
|
3a1dd8dc1e
|
remove func NetworkNodesUpdatePullChanges
|
2022-08-18 04:49:35 -04:00 |
|
Matthew R. Kasun
|
e3c1189008
|
flush tables vice delete rules for nft
|
2022-08-18 04:20:23 -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 |
|
cameronts
|
82d8d4ff1e
|
Rearrange imports per PR comments.
|
2022-08-08 13:02:32 -07:00 |
|
cameronts
|
e190bff807
|
Fix failing test.
|
2022-08-07 20:28:10 -07:00 |
|
cameronts
|
a6660bb377
|
Pull firewall command building to separate functions for easier maintenance/reuse. Change DeleteIngressGateway's approach to preserving the egress gateway (if present).
|
2022-08-07 19:22:54 -07:00 |
|
cameronts
|
aeca559a8a
|
Update code handling of firewall commands and add more logging.
|
2022-08-06 15:00:20 -07:00 |
|
cameronts
|
9f92b20a15
|
Added chain creation for nftables.
|
2022-08-05 05:07:00 -07:00 |
|
0xdcarns
|
de91533372
|
added better state management to make OAuth sign-ins HA
|
2022-08-04 10:03:39 -04:00 |
|
cameronts
|
c858d76bad
|
Merge branch 'develop' of https://github.com/gravitl/netmaker into feature_v0.14.7_translateiftablestonftables
|
2022-08-03 12:25:40 -07:00 |
|
cameronts
|
7c2fce3a55
|
Change to expandable switch-based firewall detection.
|
2022-08-03 12:18:04 -07:00 |
|
Bob
|
e202b0a045
|
fix removal of egress range from relayed egress allowedips
|
2022-08-03 18:59:55 +00:00 |
|
cameronts
|
eab23b7022
|
Modified ingress deletion handling to preserve egress gateway if present. Removed ingress from FreeBSD as not supported.
|
2022-08-03 11:36:16 -07:00 |
|
cameronts
|
e6d7c95669
|
Add netclient detection of nftables.
|
2022-08-02 15:01:45 -07:00 |
|
cameronts
|
903a7a65c8
|
Fix nftFound handling in logger.Log call.
|
2022-08-01 16:52:30 -07:00 |
|
cameronts
|
1b01914c52
|
Added logging for nftables handling.
|
2022-08-01 15:52:49 -07:00 |
|
cameronts
|
81c896b22a
|
Add nftables support.
|
2022-08-01 11:12:25 -07:00 |
|
Matthew R. Kasun
|
437e672360
|
code review comments
|
2022-07-28 07:57:19 -04:00 |
|
Matthew R. Kasun
|
7a763fec66
|
add extclient ip if relayed node is ingress
|
2022-07-27 06:20:54 -04:00 |
|
Matthew R. Kasun
|
82fe2b60f5
|
relayed node peer update for ingress
|
2022-07-26 16:40:54 -04:00 |
|
Mathias Neerup
|
0b4aca18db
|
Make NatEnabled string instead of boolean + add tests
|
2022-07-20 13:01:28 +02:00 |
|
Mathias Neerup
|
f9666c0a66
|
Add option to select if source NATing should be enabled or not
|
2022-07-19 16:28:44 +02:00 |
|
afeiszli
|
da293409d8
|
fix egress on server
|
2022-07-06 13:52:05 -04:00 |
|
Alex Feiszli
|
23fff67bd5
|
Merge pull request #1274 from gravitl/bugfix_v0.14.5_HA
Bugfix v0.14.5 ha
|
2022-06-30 20:58:30 -04:00 |
|
dcarns
|
29f5a9250e
|
Merge pull request #1270 from gravitl/bugfix_v0.14.5_relayed_egress
add logic for calculating peers when relayed node is egress gateway
|
2022-06-30 20:55:47 -04:00 |
|
0xdcarns
|
60a1c00c99
|
added better checks for HA servers
|
2022-06-30 17:00:12 -04:00 |
|
dcarns
|
3f2a56d03e
|
Merge pull request #1266 from gravitl/bugfix_v0.14.5_static_checks
eliminate static check warnings
|
2022-06-30 10:24:09 -04:00 |
|
dcarns
|
10fcd8b5c2
|
Merge pull request #1267 from gravitl/bugfix_v0.14.5_network_names
don't allow . in network name
|
2022-06-30 10:22:47 -04:00 |
|
0xdcarns
|
d909fc28ec
|
added local server check before updating server
|
2022-06-30 09:28:03 -04:00 |
|
Matthew R Kasun
|
6ab994bd9e
|
add logic for calculating peers when relayed node is egress gateway
|
2022-06-29 14:58:18 +00:00 |
|
Matthew R. Kasun
|
29786cc9c4
|
removeLocalServer only if node.IsServer
|
2022-06-27 18:06:26 -04:00 |
|
Matthew R. Kasun
|
075a0aafd4
|
don't allow . in network name
|
2022-06-27 14:08:59 -04:00 |
|
Matthew R. Kasun
|
0c4f5b100b
|
update validation of usernames
|
2022-06-27 13:51:09 -04:00 |
|
Matthew R. Kasun
|
f65925c70c
|
remove unused function
|
2022-06-27 12:50:28 -04:00 |
|
Matthew R. Kasun
|
4dbcd0a630
|
switch to jwt.RegisterdClaims
|
2022-06-27 10:47:28 -04:00 |
|
Matthew R. Kasun
|
b217d526fa
|
fix network validation tests
|
2022-06-27 10:23:11 -04:00 |
|
Matthew R Kasun
|
fb60ead1a2
|
fix missing digit
|
2022-06-24 20:17:08 +00:00 |
|
dcarns
|
6fdc347dfa
|
Merge pull request #1244 from gravitl/bugfix_v0.14.4_network_delete
remove check as node has been already deleted from database
|
2022-06-23 09:25:13 -04:00 |
|
Matthew R Kasun
|
317b5c3d5d
|
remove egressrange from relayed egress allowedips
|
2022-06-23 11:43:44 +00:00 |
|
Matthew R Kasun
|
ac37184c77
|
remove check as node has been already deleted from database
|
2022-06-23 11:37:30 +00:00 |
|
Matthew R Kasun
|
5aa2c16df1
|
refactored logic for Hub change
|
2022-06-21 15:19:54 +00:00 |
|
Alex Feiszli
|
2720c64ac7
|
Merge pull request #1227 from gravitl/master
ishub hotfix
|
2022-06-17 15:37:18 -04:00 |
|
afeiszli
|
d57031e747
|
point to site logic
|
2022-06-17 14:36:32 -04:00 |
|
Matthew R. Kasun
|
932eba8d21
|
fix statticcheck errors
|
2022-06-16 15:42:32 -04:00 |
|
afeiszli
|
c7c0469eea
|
adding in temp code for egress route on server
|
2022-06-16 10:15:21 -04:00 |
|
afeiszli
|
3fca11c1df
|
add udp port for relay
|
2022-06-15 14:29:25 -04:00 |
|
afeiszli
|
c383ec0747
|
updating relay logic to remove udp
|
2022-06-15 12:05:55 -04:00 |
|
afeiszli
|
d3a6faa90d
|
updating route setting logic
|
2022-06-15 11:18:49 -04:00 |
|
afeiszli
|
cd78a7c902
|
fixing index panic
|
2022-06-15 09:18:38 -04:00 |
|
afeiszli
|
ba687dc504
|
remove redundant if
|
2022-06-15 08:46:58 -04:00 |
|
afeiszli
|
b24691193f
|
adding server/relay check for endpoint
|
2022-06-15 08:45:11 -04:00 |
|
afeiszli
|
f632f043fe
|
adding check for relay
|
2022-06-14 16:48:39 -04:00 |
|
afeiszli
|
da8bafc35f
|
adding back in relay check
|
2022-06-14 16:37:28 -04:00 |
|
Matthew R Kasun
|
9643e34475
|
Merge branch 'develop' of github.com:gravitl/netmaker into develop
|
2022-06-14 19:40:07 +00:00 |
|
Matthew R Kasun
|
27253d504b
|
fix missing peer from relay
|
2022-06-14 19:39:59 +00:00 |
|
afeiszli
|
6fe58014cd
|
adding locallistenport and udp hole punching
|
2022-06-14 15:01:53 -04:00 |
|
Matthew R Kasun
|
72799caa42
|
code review fixes
|
2022-06-14 15:30:22 +00:00 |
|
Matthew R Kasun
|
34263a6e2f
|
refactor peer calculations
|
2022-06-14 14:36:30 +00:00 |
|
Matthew R. Kasun
|
b280f39908
|
code review changes
|
2022-06-14 13:56:54 +00:00 |
|
Matthew R. Kasun
|
77a629dff1
|
code review changes
|
2022-06-14 13:56:54 +00:00 |
|
Matthew R. Kasun
|
236ada91bc
|
skip yourself when checking zombies
|
2022-06-14 13:56:54 +00:00 |
|
Matthew R. Kasun
|
cce7e30aeb
|
only check for zombies on same network
|
2022-06-14 13:56:54 +00:00 |
|
dcarns
|
63a8abf5cc
|
Merge pull request #1203 from gravitl/bugfix_v0.14.3_relay
update relay when relayed address updated
|
2022-06-13 17:36:22 -04:00 |
|
Matthew R. Kasun
|
79e093124a
|
code review changes
|
2022-06-13 16:06:00 -04:00 |
|
Matthew R. Kasun
|
cb0635f0ee
|
update relay when relayed address updated
|
2022-06-13 11:40:14 -04:00 |
|
dcarns
|
e657c2c717
|
Merge pull request #1201 from gravitl/bugfix_v0.14.3_relay
IsRelayed off on relayed node when deleting relay
|
2022-06-13 11:11:39 -04:00 |
|
Matthew R. Kasun
|
7701aead2c
|
code review changes
|
2022-06-13 09:34:25 -04:00 |
|
Matthew R. Kasun
|
24c58913eb
|
IsRelayed off on relayed node when deleting relay
Signed-off-by: Matthew R. Kasun <mkasun@nusak.ca>
|
2022-06-11 08:52:40 -04:00 |
|
afeiszli
|
9ad3e980e5
|
removing typo
|
2022-06-09 09:23:23 -04:00 |
|
afeiszli
|
5d4cd31366
|
reversing logic
|
2022-06-08 14:56:28 -04:00 |
|
Matthew R. Kasun
|
cefc3e608b
|
delete extclients when node is deleted
|
2022-06-07 16:31:25 -04:00 |
|
Matthew R. Kasun
|
d418f2d65f
|
use booleans
|
2022-06-07 15:17:04 -04:00 |
|
Matthew R. Kasun
|
c2e22926a4
|
do not permit uppercase in Network names
|
2022-06-06 17:28:00 -04:00 |
|
afeiszli
|
9d78624edc
|
fixing relay logic
|
2022-06-01 10:17:46 -04:00 |
|
afeiszli
|
cdf2c60a1c
|
more comments on peer logic
|
2022-05-31 16:33:42 -04:00 |
|
afeiszli
|
9e00a00bda
|
GetPeers comments
|
2022-05-31 16:11:58 -04:00 |
|
Alex Feiszli
|
298aa8b779
|
Merge pull request #1148 from gravitl/feature_v0.14.2_brokeraddr
changing broker retrieval/setting logic
|
2022-05-31 14:44:54 -04:00 |
|
afeiszli
|
8d422526b3
|
refactoring servercfg
|
2022-05-31 12:07:56 -04:00 |
|
afeiszli
|
0865a535c7
|
changing broker retrieval/setting logic
|
2022-05-30 12:39:33 -04:00 |
|
afeiszli
|
8694295dc4
|
fixing timer logic
|
2022-05-28 10:23:32 -04:00 |
|
afeiszli
|
709ecd8cfe
|
fixing ip check
|
2022-05-27 10:52:47 -04:00 |
|
Matthew R. Kasun
|
62b8b9bb8e
|
update routes to use iplib
|
2022-05-26 17:39:18 -04:00 |
|
Matthew R. Kasun
|
ef298fa343
|
update peers to use iplib
|
2022-05-26 16:28:08 -04:00 |
|
Matthew R. Kasun
|
c37fa49096
|
switch to smaller ip lib
|
2022-05-26 16:14:52 -04:00 |
|
Matthew R. Kasun
|
fef31752bd
|
send server version in peer update message
|
2022-05-25 15:21:22 -04:00 |
|
afeiszli
|
3f038ab951
|
isStatic now only represents whether the Endpoint var is static
|
2022-05-23 15:24:09 -04:00 |
|
afeiszli
|
d63bae351d
|
fixing rangeupdate for ipv6, setting ipv4 assignment
|
2022-05-12 19:35:46 -04:00 |
|
0xdcarns
|
2de7beb31e
|
added nil checks, handled empty map
|
2022-05-11 12:07:06 -04:00 |
|
0xdcarns
|
e7f9310b3d
|
added length checks as temp solution
|
2022-05-10 15:18:29 -04:00 |
|
dcarns
|
184ef00d63
|
Merge pull request #1072 from sullrich/patch-1
Add FreeBSD egress support
|
2022-05-10 09:12:30 -04:00 |
|
0xdcarns
|
d1101ffe3a
|
reworked dns to propogate all entries regardless
|
2022-05-09 11:17:16 -04:00 |
|
Scott Ullrich
|
360a13312a
|
Update gateway.go
* Add support for FreeBSD egress
* Make Post up and down commands a bit more readable
|
2022-05-08 13:37:22 -04:00 |
|
afeiszli
|
80cc86783d
|
fixing ipv6
|
2022-05-02 10:48:00 -04:00 |
|
Alex Feiszli
|
726e5e1388
|
Merge pull request #1048 from gravitl/bugfix_v0.13.1_server_ipv6route
added static server routes
|
2022-04-28 10:19:00 -04:00 |
|
0xdcarns
|
e1ab6b21fd
|
added static server routes
|
2022-04-28 09:50:26 -04:00 |
|
0xdcarns
|
8a914d48e4
|
removed bad check for extra comma, added comment for relay handling of address6 later
|
2022-04-28 09:26:13 -04:00 |
|
0xdcarns
|
394c58319b
|
test amend
|
2022-04-26 08:52:43 -04:00 |
|
afeiszli
|
894fd1f5bd
|
making dual stack addressing work client side
|
2022-04-25 21:16:47 -04:00 |
|
afeiszli
|
b03b4cfcff
|
adding in ipv4
|
2022-04-25 20:50:09 -04:00 |
|
0xdcarns
|
cee0ed1c39
|
reverted some old logic
|
2022-04-25 13:10:55 -04:00 |
|
0xdcarns
|
9d365c9c28
|
changes to allowedip parsing to handle ipv6 better
|
2022-04-25 13:10:55 -04:00 |
|
0xdcarns
|
7654556a3a
|
bugfix tweaks
|
2022-04-25 13:10:55 -04:00 |
|
0xdcarns
|
6eab0498fc
|
some changes around iptables
|
2022-04-25 13:10:55 -04:00 |
|
0xdcarns
|
5aae277551
|
added blank address check on peers
|
2022-04-25 13:10:55 -04:00 |
|
0xdcarns
|
fed4650b3f
|
start ipv6 from 1
|
2022-04-25 13:10:55 -04:00 |
|
0xdcarns
|
3298a074bb
|
fixed issue around setting ipv6 or not unnecessarily
|
2022-04-25 13:10:55 -04:00 |
|
0xdcarns
|
bcfc96ddd4
|
tidied go mod, fixed bug with last ipv6 addr
|
2022-04-25 13:10:55 -04:00 |
|
0xdcarns
|
c39f2fed84
|
bugfix for reverse unique address
|
2022-04-25 13:10:55 -04:00 |
|
0xdcarns
|
dc12b1e418
|
route changes + primary addr on node
|
2022-04-25 13:10:54 -04:00 |
|
0xdcarns
|
8e976d1f55
|
removed isdualstack references
|
2022-04-25 13:09:23 -04:00 |
|
0xdcarns
|
ca1c75b620
|
set addresses appropriately based on if network is using ipv6/4
|
2022-04-25 13:08:45 -04:00 |
|
0xdcarns
|
a78ebaaad1
|
added tests
|
2022-04-25 13:08:45 -04:00 |
|
0xdcarns
|
611a425852
|
added more uniform unique address checks
|
2022-04-25 13:08:45 -04:00 |
|
afeiszli
|
9a66674a5c
|
minor logic revisions
|
2022-04-25 11:36:09 -04:00 |
|
afeiszli
|
91ca96534b
|
adding comments, removing bad check
|
2022-04-25 11:36:09 -04:00 |
|
afeiszli
|
6a90cd803a
|
publishing port changes
|
2022-04-25 11:36:08 -04:00 |
|
afeiszli
|
ccc0ed851d
|
adding local listen port
|
2022-04-25 11:34:32 -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 |
|
Matthew R. Kasun
|
6aa1a68a6f
|
register command - client
|
2022-04-13 15:25:35 -04:00 |
|
Matthew R. Kasun
|
935567761b
|
mq direct to server public ip
|
2022-04-12 10:43:02 -04:00 |
|