wireguard.lists.zx2c4.com archive mirror
 help / color / mirror / Atom feed
* [Feature Request] Add ability to exclude subnets from AllowedIPs
@ 2019-08-22 19:10 Aryn Starr
  2019-08-25 19:17 ` Derrick Lyndon Pallas
  0 siblings, 1 reply; 4+ messages in thread
From: Aryn Starr @ 2019-08-22 19:10 UTC (permalink / raw)
  To: wireguard

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('106.203.202.0/23')
>>> n2 = ipaddress.ip_network('106.203.203.13/32')
>>> l = list(n1.address_exclude(n2))
>>> print(l)

```
Which is terrible.
_______________________________________________
WireGuard mailing list
WireGuard@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/wireguard

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

end of thread, other threads:[~2019-08-26 17:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-22 19:10 [Feature Request] Add ability to exclude subnets from AllowedIPs Aryn Starr
2019-08-25 19:17 ` Derrick Lyndon Pallas
2019-08-25 20:26   ` Aryn Starr
2019-08-26 17:48     ` Ivan Labáth

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