wireguard.lists.zx2c4.com archive mirror
 help / color / mirror / Atom feed
From: Henning Reich <henning.reich@gmail.com>
To: Paulo Lopes <plopes1960@hotmail.com>
Cc: "wireguard@lists.zx2c4.com" <wireguard@lists.zx2c4.com>
Subject: Re: Deploy a wireguard on 2 raspberry pi to connect 2 remote lan - Lan2Lan
Date: Tue, 7 May 2019 08:44:27 +0200	[thread overview]
Message-ID: <CAOAVeL031uRn=3tj7GKq44itkX2r6TdPag9DDMa8tQA1evPwyw@mail.gmail.com> (raw)
In-Reply-To: <AM0PR08MB3522DC4AA812C933D8285AFCD43B0@AM0PR08MB3522.eurprd08.prod.outlook.com>


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

You have to do the same. Use for the WG-interfaces a "transportation
subnet" and add your local IP as Gateway for the subnet of the other lan
side.

left: ip route add 192.168.90.0/24 via 192.168.1.3
right: ip route add 192.168.1.0/24 via 192.168.90.20


#left
[Interface]
Address = 172.16.0.1/32
ListenPort = 12345
PrivateKey = priv1

#right
[Peer]
PublicKey = pub2
AllowedIPs = 172.16.0.2/32, 192.168.90.0/24
Endpoint = 80.40.20.10:12345

-------

#right
[Interface]
Address = 172.16.0.2/32
ListenPort = 12345
PrivateKey = priv2

#left
[Peer]
PublicKey = pub1
AllowedIPs = 172.16.0.1/32, 192.168.1.0/24
Endpoint = 200.100.50.25:12345

Am Mo., 6. Mai 2019 um 22:43 Uhr schrieb Paulo Lopes <plopes1960@hotmail.com
>:

> Hi all!!!
>
> First, let me thank for the amazing vpn protocol that Wireguard is!!!!
>
> I need your advise. As you can see on the picture attach, I have 2
> raspberry pi. One as a vpn server and the other as a vpn client to connect
> 2 remote Lan.
>
> Can you point me what I need to do, if I want to replace the openvpn for
> the wireguard?
>
> I can connect 2 rpi with wireguard, but, the others ip machinies on the
> server and client side can´t see each other.
>
> With openvpn I needed to inser iroute and add a static route on both
> routers. What I need to with the wireguard?
>
> Once again many tahnks for all the help you can give me😉
>
> _______________________________________________
> WireGuard mailing list
> WireGuard@lists.zx2c4.com
> https://lists.zx2c4.com/mailman/listinfo/wireguard
>

[-- Attachment #1.2: Type: text/html, Size: 3993 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-05-07  6:45 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-01 15:19 Deploy a wireguard on 2 raspberry pi to connect 2 remote lan - Lan2Lan Paulo Lopes
2019-05-07  6:44 ` Henning Reich [this message]
2019-05-07  6:49 ` Christopher Bachner

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='CAOAVeL031uRn=3tj7GKq44itkX2r6TdPag9DDMa8tQA1evPwyw@mail.gmail.com' \
    --to=henning.reich@gmail.com \
    --cc=plopes1960@hotmail.com \
    --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).