wireguard.lists.zx2c4.com archive mirror
 help / color / mirror / Atom feed
From: "Дмитрий Марков" <dmitri__13@mail.ru>
To: WireGuard@lists.zx2c4.com
Subject: How ca I use two peers with 0.0.0.0?
Date: Mon, 01 Apr 2019 13:05:20 +0300	[thread overview]
Message-ID: <1554113120.148180037@f500.i.mail.ru> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 618 bytes --]


Hello!

Recently I tried to install wireguard. 

I have 4 computers. 2 of them have public ip. 2 of them behind NAT.

I want to use 2 public PC as endpoits, but I don't understand how to set up 0.0.0.0 for both of them on client side.

So this my configuration on clientside behind NAT
[Interface]
ListenPort = 51820
PrivateKey = KEY
[Peer]
PublicKey = KEY1
AllowedIPs = 0.0.0.0/0
Endpoint = X.X.X.X:51820
[Peer]
PublicKey = KEY2
AllowedIPs = 0.0.0.0/0
Endpoint = X.X.X.X:51820
Wireguard don't allow me to use 0.0.0.0 on both of them. How can I use two peers at this situation?


-- 
With Best Regards,
Dmitry Markov

[-- Attachment #1.2: Type: text/html, Size: 746 bytes --]

[-- Attachment #2: Type: text/plain, Size: 148 bytes --]

_______________________________________________
WireGuard mailing list
WireGuard@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/wireguard

             reply	other threads:[~2019-04-05 15:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-01 10:05 Дмитрий Марков [this message]
2019-04-05 17:48 ` How ca I use two peers with 0.0.0.0? ajs124

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1554113120.148180037@f500.i.mail.ru \
    --to=dmitri__13@mail.ru \
    --cc=WireGuard@lists.zx2c4.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).