Code Monkey home page Code Monkey logo

Comments (4)

micahmo avatar micahmo commented on July 27, 2024 1

Ahh ok, I guess because you're not using internet sharing, WireGuard needs to know what interface to listen on locally.

I'll make this an enhancement to add the address property to the server config. Have to verify that it doesn't break anything else.

from wgserverforwindows.

micahmo avatar micahmo commented on July 27, 2024

Hi @b4tman, this is intentional. The server configuration file does not need to know its own public address. That property is targeted only to the client configs, which obviously need to know what endpoint they're connecting to.

I can confirm that my server configuration file has only ListenPort and PrivateKey, and I am able to connect successfully.

from wgserverforwindows.

b4tman avatar b4tman commented on July 27, 2024

Hello @micahmo. Yes WireGuard client can connect to server without Address in server config. But when no internet sharing or routing enabled, using only point-to-point network, clients unable to connect to server directly by it's VPN Address. I mean appications like RDP etc.
When I add Address= to server config, evrything works fine. May be I miss something?

from wgserverforwindows.

micahmo avatar micahmo commented on July 27, 2024

Just a note that while investigating #26, I discovered that putting the Address line in the server configuration file breaks the WireGuard configuration sync. You can see if I try to sync the configuration with that line, WireGuard rejects it.

> wg.exe syncconf wg_server $env:appdata\WS4W\server_wg\wg_server.conf
Line unrecognized: `Address=10.254.0.1'
Configuration parsing error

image

I'm not sure how adding that line fixed your issue. Maybe it was a coincidence. But I've rolled back that change for now. If you can figure out a way to add it so that WireGuard is happy with, I can put it back.

from wgserverforwindows.

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.