GithubHelp home page GithubHelp logo

Comments (1)

klementng avatar klementng commented on July 17, 2024

Can you check if your wireguard config contains the "AllowedIPs" key?

[Interface]
....

[Peer]
....
AllowedIPs = 0.0.0.0/0, ::/0
...

The relevant code portion where net1 used is in this code snippet

        for ips in wg_config.peers[peer_id]["AllowedIPs"]:  # type: ignore

            if ips == "::/0" and platform.system().lower() == "windows":
                self.log.info("OS == windows, skipping AllowedIPs '::/0'")
                continue

            try:
                net1 = ipaddress.ip_network(ips)
                net2 = ipaddress.ip_network(wst.endpoint_ip + "/32")
                allowed_ips.extend(map(str, net1.address_exclude(net2)))  # type: ignore
            except (TypeError, ValueError) as e:
                self.log.warning(f"{e} - Appending {net1} to AllowedIPs anyways")
                allowed_ips.append(ips)

        if platform.system().lower() == "windows":
            self.log.debug("OS == windows, adding ['::/1','8000::/1'] to AllowedIPs")
            allowed_ips.extend(["::/1", "8000::/1"])

from wireguard-over-wstunnel.

Related Issues (3)

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.