[Feature Request] Add ability to exclude subnets from AllowedIPs
Derrick Lyndon Pallas
derrick at pallas.us
Sun Aug 25 21:17:41 CEST 2019
Why wouldn't this happen as an iptables rule?
If some AllowedIPs trick is working for you and you're using Python and the kernel version of Wireguard, check out , which will allow you to programmatically set up the interface.
FWIW, I'm not sure adding complication to AllowedIPs is the right approach, but adding it to a tool seems reasonable. Maybe it also makes sense to allow an IPset, but I'm haven't thought it through. My gut says routing prior to Wireguard is probably what you're looking for.
~Derrick • iPhone
> On Aug 22, 2019, at 12:10 PM, Aryn Starr <whereislelouch at icloud.com> wrote:
> I live in Iran, and here the internet censorship is fierce. I need to route almost all of my traffic through the VPN, but some domestic sites are not accessible from the US. Also, since ISPs apply different censoring rules, sometimes my own servers are not reachable via the VPN (because the server’s ISP blocks the VPN, while my local ISP does not.)
> The best current solution I’ve seen is
> $ python3
>>>> import ipaddress
>>>> n1 = ipaddress.ip_network('220.127.116.11/23')
>>>> n2 = ipaddress.ip_network('18.104.22.168/32')
>>>> l = list(n1.address_exclude(n2))
> Which is terrible.
> WireGuard mailing list
> WireGuard at lists.zx2c4.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the WireGuard