Juan Font
11fbef4bf0
Added extra timeout
2021-09-11 23:21:45 +02:00
Juan Font
c4e6ad1ec7
Fixed some typos
2021-09-10 00:52:08 +02:00
Juan Font
263a3f1983
Merge branch 'main' into shared-nodes
2021-09-10 00:49:50 +02:00
Juan Font
8acaea0fbe
Increased timeout
2021-09-10 00:44:27 +02:00
Juan Font
bd6adfaec6
Changes a few more variables
2021-09-10 00:37:01 +02:00
Juan Font
4b4a5a4b93
Update sharing.go
...
Co-authored-by: Kristoffer Dalby <kradalby@kradalby.no>
2021-09-10 00:32:42 +02:00
Juan Font
b098d84557
Apply suggestions from code review
...
Changed more variable names
Co-authored-by: Kristoffer Dalby <kradalby@kradalby.no>
2021-09-10 00:32:06 +02:00
Juan Font
b937f9b762
Update machine.go
...
Added comment on toNode
2021-09-10 00:30:02 +02:00
Juan Font
55f3e07bd4
Apply suggestions from code review
...
Removed one letter variables
Co-authored-by: Kristoffer Dalby <kradalby@kradalby.no>
2021-09-10 00:26:46 +02:00
Juan Font
2780623076
Renamed SharedNode to SharedMachine
2021-09-06 14:43:43 +02:00
Juan Font
75a342f96e
Renamed files
2021-09-06 14:40:37 +02:00
Juan Font
729cd54401
Renamed sharing function
2021-09-06 14:39:52 +02:00
Juan Font
a023f51971
Merge pull request #101 from SilverBut/main
...
fix: check last seen time without possible null pointer
2021-09-03 10:35:49 +02:00
Juan Font
5076eb9215
Merge pull request #102 from SilverBut/patch-1
...
docs: add notes on how to build own DERP server
2021-09-03 10:24:32 +02:00
Juan Font
7edd0cd14c
Added add node cli
2021-09-03 10:23:45 +02:00
Juan Font
7ce4738d8a
Preload namespace so the name can be shown
2021-09-03 10:23:26 +02:00
Juan Font
7287e0259c
Minor linting issues
2021-09-02 17:08:39 +02:00
Juan Font
d86de68b40
Show namespace in node list table
2021-09-02 17:06:47 +02:00
Juan Font
4ba107a765
README updated
2021-09-02 17:00:46 +02:00
Juan Font
187b016d09
Added helper function to get list of shared nodes
2021-09-02 16:59:50 +02:00
Juan Font
7010f5afad
Added unit tests on sharing nodes
2021-09-02 16:59:12 +02:00
Juan Font
48b73fa12f
Implement node sharing functionality
2021-09-02 16:59:03 +02:00
Juan Font
1ecd0d7ca4
Added DB SharedNode model to support sharing nodes
2021-09-02 16:57:26 +02:00
Silver Bullet
6faaae0c5f
docs: add notes on how to build own DERP server
...
The official doc is hidden under a bunch of issues. Add a doc link here and hope it could be helpful.
2021-09-02 06:08:12 +08:00
Silver Bullet
e4ef65be76
fix: check last seen time without possible null pointer
2021-09-02 05:44:42 +08:00
Juan Font
39c661d408
Merge pull request #99 from juanfont/explicit-ubuntu-version
...
Use explicit version in Dockerfile
2021-08-26 21:18:16 +02:00
Juan Font
91a48d6a43
Update Dockerfile
...
Use explicit version in Dockerfile (addresses #95 )
2021-08-26 10:23:45 +02:00
Kristoffer Dalby
123f0fa185
Merge pull request #98 from kradalby/initial-dns-server-exit-node
2021-08-25 22:58:25 +01:00
Kristoffer Dalby
ba3dffecbf
Update readme
2021-08-25 19:05:10 +01:00
Kristoffer Dalby
8735e5675c
Add a test for the getdnsconfig function
2021-08-25 19:03:04 +01:00
Kristoffer Dalby
3f5e06a0f8
Dont add the portnumber to the ip
2021-08-25 18:43:13 +01:00
Juan Font
ba40a40b73
Merge pull request #96 from qbit/version_fix
...
Fix setting of version
2021-08-25 12:34:34 +02:00
Kristoffer Dalby
b3732e7fb9
Add nameserver as resolver aswell
2021-08-25 07:04:48 +01:00
Aaron Bieber
104776ee84
fix setting of version
2021-08-24 07:49:15 -06:00
Kristoffer Dalby
01e781e546
Pass DNSConfig to nodes in MapResponse
2021-08-24 07:11:45 +01:00
Kristoffer Dalby
e77c16b55a
Add DNSConfig to example and setup test
2021-08-24 07:10:09 +01:00
Kristoffer Dalby
987bbee1db
Add DNSConfig field to configuration
2021-08-24 07:09:47 +01:00
Juan Font
74d2fe1baa
Merge pull request #84 from kradalby/integration-tests-ci
...
Improve logic to keep nodes up to date with the network state
2021-08-23 09:42:07 +02:00
Kristoffer Dalby
98e63d5561
Merge pull request #94 from kradalby/split-lint-test
...
Split lint and test CI files
2021-08-23 07:46:11 +01:00
Kristoffer Dalby
059f13fc9d
Add missing comment for stream function
2021-08-23 07:38:14 +01:00
Kristoffer Dalby
ebd27b46af
Add comment to updatemachine
2021-08-23 07:35:44 +01:00
Juan Font
ca8d814918
Merge pull request #92 from kradalby/enhance-route-command
...
Enhance route command with ptables and multiple routes
2021-08-22 12:48:30 +02:00
Kristoffer Dalby
0aeeaac361
Always load machine object from DB before save/modify
...
We are currently holding Machine objects in memory for a long time,
while waiting for stream/longpoll, this might make us end up with stale
objects, that we just call save on, potentially overwriting stuff in
the database.
A typical scenario would be someone changing something from the CLI,
e.g. enabling routes, which in turn is overwritten again by the stale
object in the longpolling function.
The code has been left with TODO's and a discussion is available in #93 .
2021-08-21 16:52:19 +01:00
Kristoffer Dalby
28ed8a5742
Actually rename lint
2021-08-21 15:42:23 +01:00
Kristoffer Dalby
f749be1490
Split lint and test CI files
...
This commit splits the lint and test steps into two different jobs in
github actions.
Consider this a suggestion, the idea is that when we look at PRs we will
see explicitly which one of the two types of checks fails without having
to open Github actions.
2021-08-21 15:40:27 +01:00
Kristoffer Dalby
693bce1b10
Update test machine name properly
2021-08-21 15:35:26 +01:00
Kristoffer Dalby
4f97e077db
Add --all flag to routes enable command to enable all advertised routes
2021-08-21 15:04:30 +01:00
Kristoffer Dalby
c883e79884
Enhance route command with ptables and multiple routes
...
This commit rewrites the `routes list` command to use ptables to present
a slightly nicer list, including a new field if the route is enabled or
not (which is quite useful).
In addition, it reworks the enable command to support enabling multiple
routes (not only one route as per removed TODO). This allows users to
actually take advantage of exit-nodes and subnet relays.
2021-08-21 14:49:46 +01:00
Kristoffer Dalby
a054e2514a
Keep tailscale count at 25 in integration tests
2021-08-21 09:26:18 +01:00
Kristoffer Dalby
c49fe26da7
Code clean up, loglevel debug for integration tests
2021-08-21 09:15:16 +01:00