Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VPN improvements #356

Merged
merged 71 commits into from
May 21, 2020
Merged

VPN improvements #356

merged 71 commits into from
May 21, 2020

Conversation

Darkren
Copy link
Contributor

@Darkren Darkren commented May 1, 2020

Did you run make format && make check?
Yes

Fixes #347 Fixes #343

Changes:

  • Added passcode to authenticate VPN client within the server
  • Added RPC calls to changes passcode for both client and server
  • Added RPC call to change remote PK for client
  • Modified hypervisor's putApp API method to perform the RPC calls mentioned above
  • Added an ability to run this guy on Windows

How to test this PR:

  • Passcode
  1. Add "-passcode", "some_passcode" to the args parameter of both server and client configs
  2. Try to connect. Correct password will result in successful traffic exchange, incorrect password will result in Forbidden status in client logs
  • RPC calls
    Try calling the hypervisor API to change passcode and PK. Passcode may be changed for both server and client. Functionality takes place in the putApp method, the same as used to change PK and passcode for skysocks apps

@Darkren Darkren changed the title VPN improvements [WIP] VPN improvements May 1, 2020
Copy link
Member

@jdknives jdknives left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes work well so far. Should the VPN app stop upon not successfully registering with a remote server?

@Darkren Darkren changed the title [WIP] VPN improvements VPN improvements May 19, 2020
Copy link
Member

@jdknives jdknives left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works smoothly for me. I could not test the Windows setup unfortunately.

Copy link
Contributor

@evanlinjin evanlinjin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good work and clean code. Some of my comments are due to personal taste, if you don't agree with them, feel free to ignore it! 😅

internal/vpn/client.go Show resolved Hide resolved
internal/vpn/errors.go Outdated Show resolved Hide resolved
internal/vpn/noise_credentials.go Show resolved Hide resolved
internal/vpn/os_client_darwin.go Show resolved Hide resolved
Copy link
Contributor

@nkryuchkov nkryuchkov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job!

README.md Outdated Show resolved Hide resolved
internal/vpn/net.go Outdated Show resolved Hide resolved
pkg/visor/init.go Outdated Show resolved Hide resolved
@evanlinjin evanlinjin merged commit 49ef1cf into skycoin:develop May 21, 2020
@Darkren Darkren deleted the feature/vpn-improvements branch August 21, 2020 11:29
jdknives pushed a commit that referenced this pull request Oct 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants