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

support multiple peers #1

Open
hoyho opened this issue Jan 26, 2022 · 1 comment
Open

support multiple peers #1

hoyho opened this issue Jan 26, 2022 · 1 comment

Comments

@hoyho
Copy link

hoyho commented Jan 26, 2022

This app work very well
I would like to add multiple peers to to config

$vpnConfig = @'
<WireGuard>
    <Interface>
        <PrivateKey>foo</PrivateKey>
        <Address>10.0.0.2/32</Address>
        <Port>51820</Port>
    </Interface>
    <Peer>
        <PublicKey>bar</PublicKey>
        <AllowedIPs>10.0.0.254/32</AllowedIPs>
        <Port>51820</Port>
        <PersistentKeepalive>5</PersistentKeepalive>
    </Peer>
    <Peer>
        <PublicKey>baz</PublicKey>
        <AllowedIPs>10.0.0.253/32</AllowedIPs>
        <Port>51820</Port>
        <PersistentKeepalive>5</PersistentKeepalive>
    </Peer>
</WireGuard>
'@

Set-VpnConnection -Name wg-rust -CustomConfiguration $vpnConfig

It will failed at parsing the config : duplicate field Peer
image

I think multiple peer is a common use case. Is there's any way to support that?

@luqmana luqmana assigned luqmana and unassigned luqmana Feb 10, 2022
@luqmana
Copy link
Owner

luqmana commented Feb 10, 2022

Yup! That should be possible, unfortunately can't make any promises on when I'll be able to work on it.

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

No branches or pull requests

2 participants