[WireGuard] Using wireguard link as a proxy?

Bruno Wolff III bruno at wolff.to
Thu Jul 21 22:57:42 CEST 2016

I am trying to test using a wireguard link as a proxy and I am having trouble. 
On the source machine I am trying to route packets through wg0 using a 
routing entry that has the remote end point tunnel address on a via command. 
The idea is to have the packets sent through the tunnel and then to do 
source nat on the remote side of the tunnel. The packets go to the interface, 
but do not come out the other end. Ping reports:
>From icmp_seq=69 Destination Host Unreachable
ping: sendmsg: Required key not available

So I think the destination address in the packet is being used to find the 
tunnel key to use rather than the immediate next destination for the packet.

Has anyone else played with something like this an gotten it to work? 

Some info on what I was trying:
ip route
default via dev em1  proto static  metric 100 via dev wg0 dev em1  proto kernel  scope link  src  metric 100 dev wg0  proto kernel  scope link  src 

wg source machine
  allowed ips:

wg proxy machine
  allowed ips:

tcpdump output from wg0
15:54:34.129798 IP > ICMP echo request, id 25371, seq 1, length 64

More information about the WireGuard mailing list