Comments (4)
Huh? The problem? It's not really a problem, more of an enhancement with more features (such as autocompletion of input subnets, common ones/previously used ones for instance).... ?
But yeah - thanks for the input on where the placeholder comes from!
I've also just updated the allowed ips above, we realized those before were actually wrong... :)
from linguard.
Note that i'm adding both subnets and a list of IPs (/32s), having them in a "template" or / and auto-completed from previous peers would be best i think.
from linguard.
Tunnel all traffic for the public internet over WG (exclude any/all local network subnets)
EDIT: CORRECTED 2021-11-22:
AllowedIPs = 1.0.0.0/8, 2.0.0.0/7, 4.0.0.0/6, 8.0.0.0/7, 11.0.0.0/8, 12.0.0.0/6, 16.0.0.0/4, 32.0.0.0/3, 64.0.0.0/3, 96.0.0.0/4, 112.0.0.0/5, 120.0.0.0/6, 124.0.0.0/7, 126.0.0.0/8, 128.0.0.0/3, 160.0.0.0/5, 168.0.0.0/8, 169.0.0.0/9, 169.128.0.0/10, 169.192.0.0/11, 169.224.0.0/12, 169.240.0.0/13, 169.248.0.0/14, 169.252.0.0/15, 169.255.0.0/16, 170.0.0.0/7, 172.0.0.0/12, 172.32.0.0/11, 172.64.0.0/10, 172.128.0.0/9, 173.0.0.0/8, 174.0.0.0/7, 176.0.0.0/4, 192.0.0.0/9, 192.128.0.0/11, 192.160.0.0/13, 192.169.0.0/16, 192.170.0.0/15, 192.172.0.0/14, 192.176.0.0/12, 192.192.0.0/10, 193.0.0.0/8, 194.0.0.0/7, 196.0.0.0/6, 200.0.0.0/5, 208.0.0.0/4, 224.0.0.0/4, ::/1, 8000::/2, c000::/3, e000::/4, f000::/5, f800::/6, fe00::/9, fec0::/10, ff00::/8
For instance, as the WG-android app does - is a hell of a config to copy and paste each time, that should definitely be an option aswell while creating peers.
EDIT: CORRECTED 2021-11-22:
I've updated the above string, we had missed a few nets (especially - it had 0.0.0.0/5 in the beginning which is incorrect...)
https://www.procustodibus.com/blog/2021/03/wireguard-allowedips-calculator/ is a great guideline.
from linguard.
This is an unpleasant feature. This problem is solved by replacing the validators in the ipv4 field:
ipv4 = StringField("IPv4", validators=[DataRequired(), PeerIpValidator()],
render_kw={"placeholder": "0.0.0.0/32"})
In this class:
class PeerIpValidator
from linguard.
Related Issues (20)
- doesn't automatically set ip forwarding HOT 1
- Add support for pre-shared key
- No internet access HOT 1
- Append CIDR range to interface Address field in config
- Latest Handshake for peer not being populated
- /usr/sbin/iptables is mapped to container's iptables
- add/remove peer without interface restart HOT 1
- define default values for DNS and AllowedIPs HOT 1
- Switch to dotnet
- reverse proxy ssl static links in the pages still http
- Make DNS Optional
- Problemas con el password
- Cambio de Puerto
- [r115] - docker
- Not showing correctly in Nginx reverse proxy subdirectory HOT 2
- Added support for subdirectory in reverse proxy enviroment
- Added support for subdirectory in reverse proxy enviroment HOT 1
- Add OpenID-Connect authentication
- Add PostgreSQL traffic driver
- Confliction instructions in docker-compose
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from linguard.