wireguard.lists.zx2c4.com archive mirror
 help / color / mirror / Atom feed
* Deploy a wireguard on 2 raspberry pi to connect 2 remote lan - Lan2Lan
@ 2019-05-01 15:19 Paulo Lopes
  2019-05-07  6:44 ` Henning Reich
  2019-05-07  6:49 ` Christopher Bachner
  0 siblings, 2 replies; 3+ messages in thread
From: Paulo Lopes @ 2019-05-01 15:19 UTC (permalink / raw)
  To: wireguard


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

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😉


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

[-- Attachment #2: 43065884_1892102284211888_2227626938879442944_n.jpg --]
[-- Type: image/jpeg, Size: 46732 bytes --]

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

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Deploy a wireguard on 2 raspberry pi to connect 2 remote lan - Lan2Lan
  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
  2019-05-07  6:49 ` Christopher Bachner
  1 sibling, 0 replies; 3+ messages in thread
From: Henning Reich @ 2019-05-07  6:44 UTC (permalink / raw)
  To: Paulo Lopes; +Cc: wireguard


[-- 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Deploy a wireguard on 2 raspberry pi to connect 2 remote lan - Lan2Lan
  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
@ 2019-05-07  6:49 ` Christopher Bachner
  1 sibling, 0 replies; 3+ messages in thread
From: Christopher Bachner @ 2019-05-07  6:49 UTC (permalink / raw)
  To: Paulo Lopes; +Cc: WireGuard mailing list


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

You have to tell the gateway (router) on each side where to route the IP
range of the other side. Usually you route it over the VPN computer, which
you have to configure to allow routing.

- Chris

On Mon, May 6, 2019, 22:42 Paulo Lopes <plopes1960@hotmail.com> wrote:

> 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: 2967 bytes --]

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

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-05-07 13:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2019-05-07  6:49 ` Christopher Bachner

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).