WireGuard Archive on lore.kernel.org
 help / color / Atom feed
From: Paul Zillmann <paul@zil.li>
To: wireguard@lists.zx2c4.com
Cc: henningreich@gmail.com
Subject: Re: Overlapping AllowedIPs Configuration
Date: Sat, 25 May 2019 20:39:24 +0200
Message-ID: <536efee3-3d15-682f-4979-7fa2bb3457c3@zil.li> (raw)
In-Reply-To: <20190506210827.2h4nzjxjpmwg7kpa@yavin>


we have the same problem here, although our allowed IP ranges should be for all peers.
We have OSPF traffic on the wireguard links so it should be task of the 
Kernel's routing table to decide where to send what.

The problem is that the allowed-ips configuration has multiple purposes: 
routing table and firewall/packet filter. This introduces these 
problems. It would be helpfull to get a compile flag or something else 
to make this behavior optional. Right now Wireguard isn't very friendly 
to dynamic routing.

I came up with multiple solutions:
- create multiple interfaces + tunnels.
- create a bash script that injects the Kernel's routing table into the 
wg tool every other minute.

Do you guys have a better idea? If not I would create the bash script.

- Paul
WireGuard mailing list

  parent reply index

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-06 21:08 Aleksa Sarai
2019-05-11 15:19 ` Henning Reich
2019-05-11 17:11   ` Aleksa Sarai
2019-05-25 18:39 ` Paul Zillmann [this message]
2019-06-06 10:09   ` Toke Høiland-Jørgensen
2019-06-07  8:05     ` Ivan Labáth
2019-06-07 10:07       ` Matthias Urlichs
2019-06-13  7:29         ` Vincent Wiemann
2019-06-07 23:58     ` Paul Zillmann
2019-06-08  7:32   ` Markus Grundmann

Reply instructions:

You may reply publically 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:

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

  git send-email \
    --in-reply-to=536efee3-3d15-682f-4979-7fa2bb3457c3@zil.li \
    --to=paul@zil.li \
    --cc=henningreich@gmail.com \
    --cc=wireguard@lists.zx2c4.com \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

WireGuard Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/wireguard/0 wireguard/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 wireguard wireguard/ https://lore.kernel.org/wireguard \
		wireguard@lists.zx2c4.com zx2c4-wireguard@archiver.kernel.org
	public-inbox-index wireguard

Newsgroup available over NNTP:

AGPL code for this site: git clone https://public-inbox.org/ public-inbox