All of lore.kernel.org
 help / color / mirror / Atom feed
* Access to server's local network
@ 2018-05-02 18:31 Jim Brandt
  0 siblings, 0 replies; only message in thread
From: Jim Brandt @ 2018-05-02 18:31 UTC (permalink / raw)
  To: wireguard

[-- Attachment #1: Type: text/plain, Size: 1680 bytes --]

Hi,

I set up WireGuard on two Ras Pi's, one acting as a vpn server and the
other as a portable access point. The server uses only its eth0 interface.
The access point uses one wifi interface for the public side, and another
wifi plus eth0 for clients. The iptables are similar to www.ckn.io.
Packets leaving the wg0 interface on the access point are NATed.

 I'd like to allow clients to access the server's local subnet as well as
routing to the public net but do not see how to do it.  Packets sent to a
local ip seem to get dropped at the server end of the tunnel because that
is as far as a traceroute can go, and tcpdump does not show the packets
arriving at the wg0 interface. Packets to public ip's work as expected.
ProxyARP is enabled on the server but that does not seem to be the current
issue. Could anyone suggest a way to do this?

Client wg-quick config:

[Interface]
Address = 10.200.200.3/32
DNS = 10.200.200.1
PrivateKey = ...
MTU = 1500

[Peer]
PublicKey = ...
AllowedIPs = 0.0.0.0/0
Endpoint = 10.0.0.23:51820
PersistentKeepalive = 21

server wg-quick config:

[Interface]
Address = 10.200.200.1/32
ListenPort = 51820
PrivateKey = ...
MTU = 1500

[Peer]
PublicKey = ...
AllowedIPs = 10.200.200.3/32

sudo ip route show:

default via 10.0.0.1 dev eth0 src 10.0.0.23 metric 202
10.0.0.0/24 dev eth0 proto kernel scope link src 10.0.0.23 metric 202
10.200.200.3 dev wg0 scope link

Click here to Reply or Forward
64.86 GB (30%) of 215 GB used
Manage <https://www.google.com/settings/u/0/storage?hl=en>
Terms <https://www.google.com/intl/en/policies/terms/> - Privacy
<https://www.google.com/intl/en/policies/privacy/>
Last account activity: 1 minute ago
Details

[-- Attachment #2: Type: text/html, Size: 11192 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-05-02 18:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-02 18:31 Access to server's local network Jim Brandt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.