Skip to content

Added Wireguard noop support#555

Merged
tadovas merged 2 commits intomasterfrom
wireguard-noop
Nov 21, 2018
Merged

Added Wireguard noop support#555
tadovas merged 2 commits intomasterfrom
wireguard-noop

Conversation

@soffokl
Copy link
Copy Markdown
Member

@soffokl soffokl commented Nov 21, 2018

Closes #502

@soffokl soffokl self-assigned this Nov 21, 2018
service_noop "github.com/mysteriumnetwork/node/services/noop"
service_openvpn "github.com/mysteriumnetwork/node/services/openvpn"
openvpn_service "github.com/mysteriumnetwork/node/services/openvpn/service"
service_wireguard "github.com/mysteriumnetwork/node/services/wireguard"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

There is clearly something wrong with package structure inside openvpn :( service_openvpn and openvpn_service? I know it's out of this PR scope, but please don't do it with wireguard too :)

Copy link
Copy Markdown
Contributor

@tadovas tadovas left a comment

Choose a reason for hiding this comment

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

Approving this as skeleton. But so much work to be done for now. Maybe wireguard should not be started by default at the moment

// }

// TODO wireguard device configuration like private key, listen port, peer list should survive through restarts.
// TODO we need to have some persistent storage for it.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We can create separate ticket for that. Its not high priority IMHO.

// })

// TODO if the wireguard interface already configured we can get required parameters from it.
// device, err := client.Device("wg0")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

WG device name should be selected only after listing all active devices. Then choosing free number. We should know which device constitutes which session.

Copy link
Copy Markdown
Contributor

@zolia zolia left a comment

Choose a reason for hiding this comment

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

Its good to have a frame. Let merge this.

@tadovas
Copy link
Copy Markdown
Contributor

tadovas commented Nov 21, 2018

After sync with master :)

@tadovas tadovas merged commit f151161 into master Nov 21, 2018
@soffokl soffokl deleted the wireguard-noop branch November 29, 2018 11:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants