Giter VIP home page Giter VIP logo

Comments (10)

AlexanderAllmendinger avatar AlexanderAllmendinger commented on July 28, 2024

I'm having the same issue. Because I need to put x.x.x.x/xx into the "IPv4 Address" and the "IPv6 Address" fields, while also specifying the Subnet in the Subnet dropdowns, it results in making calls while specifying the IP parameter like "x.x.x.x/xx/xx" e.g. in "ip link add wg0 .... -4 address add x.x.x.x/xx/xx ..." which makes the calls fail. Is there any work around how I can modify the stored addresses or subnet information to get it working?

from wg-manager.

perara avatar perara commented on July 28, 2024

@AlexanderAllmendinger I've added a migration that should enable nullable on v6_subnet. Does this fix your problem?
@ethaniel86 I suppose the latest version should fix your issue

from wg-manager.

AlexanderAllmendinger avatar AlexanderAllmendinger commented on July 28, 2024

man you're fast ... thanks for getting back that quick
Unfortunately this didn't do the trick. I'm no web development expert but looking at your commit it looks like you are now allowing that the subnet fields are not set and therefore null.
What I'm trying is creating a new configuration with default parameters (see screenshot). But even with default parameters the validation of the IP addresses for v4 and v6 are failing and therefore I cannot safe the configuration. Once I'm adding a /24 to the ip address fields, the validation works but the IP address is stored with 10.0.200.1/24/24 and therefore any follow up usage fails.

I hope this helps with understanding my issue.
WireGuardScreenshot

from wg-manager.

perara avatar perara commented on July 28, 2024

@AlexanderAllmendinger hopefully it is not working in the latest update

from wg-manager.

AlexanderAllmendinger avatar AlexanderAllmendinger commented on July 28, 2024

I just gave it another try, unfortunately still no luck...
The validation still blocks entering only an IP Address. I hope I'm not missing a step. I basically pull your commits from the github project and then rebuild the frontend, backend and start the server. But I think that should work...

Anyway, when I'm entering only an IP, the validation is still failing and the field is marked red:
_AddWireGuardOnlyIp
The result of this failed validation is that the "Add Server" button is blocked:
_AddWireGuardBlockedAddServer
When I then add the /24 to the IP Address the validation succeeds:
_AddWireGuardIpAndSubnet
Then I can add the server:
_AddWireGuardAllowedAddServer
But still the stored address is wrong as it has the Subnet mask twice:
_AddWireGuardIpAndSubnetBadAddress

from wg-manager.

perara avatar perara commented on July 28, 2024

I'm not able to replicate this. Are you building master branch?

a

then clicking "add server" works fine here:
b

from wg-manager.

perara avatar perara commented on July 28, 2024

Worth mentioning that it is indeed a bug that you can add subnet in that field.

from wg-manager.

AlexanderAllmendinger avatar AlexanderAllmendinger commented on July 28, 2024

Yes, I'm building the master branch and I can see you latest update in the history of my local repository ... but still to me the behavior didn't change yet. Are there any cache files I need to delete?

from wg-manager.

perara avatar perara commented on July 28, 2024

from wg-manager.

AlexanderAllmendinger avatar AlexanderAllmendinger commented on July 28, 2024

Ok, I don't know what is being cached but there was something cached. I created a new system and now it works fine. Thanks for the fast responses and fix!
You take care and stay well!

from wg-manager.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.