Matthew R Kasun
6d6ba3aa7d
random string
...
update algorithm
consolidate MakeRandomString, RandomString & GenerateCrytoString into
one function
2023-05-02 13:28:00 -04:00
Matthew R Kasun
828b3f7162
remove local network/range
2023-02-26 16:28:16 -05:00
kayos@tcp.direct
a15650d3e0
NetClientUtils: Avoid using defer in a for loop, this causes resource leaks.
2023-02-16 02:09:58 -08:00
0xdcarns
b90ef7ac07
static checks
2023-02-06 12:43:12 -05:00
Matthew R Kasun
77cfae41ff
remove postup/down
2023-02-02 11:16:54 -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
c086e9499d
rebase
...
Signed-off-by: Matthew R. Kasun <mkasun@nusak.ca>
2022-12-19 15:15:35 -05:00
kayos@tcp.direct
4c4cd6eb4d
Revert: changing mechanics of loop (for ease of pr review)
...
cherry-pick the ineffective `err` assignment to make our following error check not useless
2022-12-06 20:26:46 -08: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
0xdcarns
40f7036093
fixed first two issues
2022-09-28 15:22:12 -04:00
Matthew R. Kasun
0ba3f6feaf
address code review comment
2022-09-12 06:42:01 -04:00
Matthew R. Kasun
7ec8c4be2a
use RunCmd for postup/postdown
2022-09-09 14:15:10 -04:00
Matthew R. Kasun
03c2c5ae1e
delete postup/down from wg.conf file when gateway is removed
2022-08-31 15:29:33 -04:00
0xdcarns
c05320a323
initial logic added
2022-08-30 10:52:04 -04:00
afeiszli
fbe119f0cd
small windows fix
2022-08-26 11:57:37 -04:00
Matthew R Kasun
723e4ebeee
Merge branch 'develop' into feature_v0.14.7_explicit_routes
2022-08-25 07:31:34 -04:00
afeiszli
f3361170fe
reverting mac path
2022-08-24 16:04:29 -04:00
afeiszli
878e3d848e
adding windows GetDefaultRoute
2022-08-23 00:33:48 -04:00
afeiszli
4d9a07bf00
adding gateway routes for peers
2022-08-22 16:44:04 -04:00
Alex Feiszli
0c7bef6e80
Merge pull request #1466 from gravitl/bugfix_v0.14.7_check_firewall
...
add checks for firewall
2022-08-22 09:35:49 -04:00
afeiszli
b72fa12470
integrating iptables/nft checks
2022-08-22 09:34:43 -04:00
Matthew R. Kasun
484b628848
require firewall
2022-08-22 09:27:45 -04:00
Matthew R. Kasun
f536f0465c
check firewall type on gateway creation
2022-08-19 15:32:25 -04:00
Matthew R Kasun
f569830910
Merge pull request #1442 from theguy951357/bugfix_v0.14.7_apple_data_path
...
Bugfix v0.14.7 apple data path
2022-08-19 10:55:49 -04:00
Matthew R. Kasun
157a8f02cd
add checks for firewall
2022-08-19 10:43:51 -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
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
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
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
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
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
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
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
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
Matthew R. Kasun
fcedf7b60f
revert to old way for windows
2022-07-13 11:31:32 -04:00
Matthew R. Kasun
7e2e89e029
pidfile location windows
2022-07-12 13:55:35 -04:00
Matthew R. Kasun
d36de447ac
use SIGHUP to restart daemon
2022-07-12 05:20:22 -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
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