-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #356 from Darkren/feature/vpn-improvements
VPN improvements Former-commit-id: 49ef1cf
- Loading branch information
Showing
258 changed files
with
43,960 additions
and
536 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# Skywire VPN client app | ||
|
||
`vpn-client` app implements client for the VPN server app. | ||
|
||
It opens persistent `skywire` connection to the configured remote visor. This connection is used as a tunnel. Client forwards all the traffic through that tunnel to the VPN server. | ||
|
||
## Configuration | ||
|
||
Additional arguments may be passed to the application via `args` array. These are: | ||
- `-srv` (required) - is a public key of the remove VPN server; | ||
- `-passcode` - passcode to authenticate connection. Optional, may be omitted. | ||
|
||
Full config of the client should look like this: | ||
```json5 | ||
{ | ||
"app": "vpn-client", | ||
"auto_start": false, | ||
"port": 43, | ||
"args": [ | ||
"-srv", | ||
"03e9019b3caa021dbee1c23e6295c6034ab4623aec50802fcfdd19764568e2958d", | ||
"-passcode", | ||
"1234" | ||
] | ||
} | ||
``` | ||
|
||
## Running app | ||
|
||
Compile app binary and start a visor: | ||
|
||
```sh | ||
$ go build -o apps/vpn-client ./cmd/apps/vpn-client | ||
$ ./skywire-visor skywire-config.json | ||
``` | ||
|
||
You should be able to see an additional hop with the `traceroute`-like utils: | ||
|
||
```sh | ||
$ traceroute google.com | ||
``` | ||
|
||
Also, your IP should be detected as the IP of the VPN server: | ||
|
||
```sh | ||
$ curl https://api.ipify.org | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Skywire VPN server app | ||
|
||
`vpn-server` app implements VPN functionality over skywire net. | ||
|
||
Currently the server supports authentication with a passcode that is set in the configuration file. | ||
If none is provided, the server does not require authentication. | ||
|
||
NOTE: in contrast with the proxy apps, VPN server and client must be run on different machines because of the networking features. | ||
|
||
## Configuration | ||
|
||
Additional arguments may be passed to the application via `args` array. These are: | ||
- `-passcode` - passcode to authenticate incoming connections. Optional, may be omitted. | ||
|
||
Full config of the server should look like this: | ||
```json5 | ||
{ | ||
"app": "vpn-server", | ||
"auto_start": true, | ||
"port": 44, | ||
"args": [ | ||
"-passcode", | ||
"1234" | ||
] | ||
} | ||
``` | ||
|
||
## Running app | ||
|
||
Compile app binary and start a visor: | ||
|
||
```sh | ||
$ go build -o apps/vpn-server ./cmd/apps/vpn-server | ||
$ ./skywire-visor skywire-config.json | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.