Giter Club home page Giter Club logo

Comments (7)

bigmoby avatar bigmoby commented on June 19, 2024

Hi @sunnyd24 I think it's not an add-on issue but a support question. Anyway, please check the allowed_ips and address fields are valid according to your server configuration, the port field too.

from addon-wireguard-client.

sunnyd24 avatar sunnyd24 commented on June 19, 2024

@bigmoby Probably correct on support, I am struggling with the config as I am missing something.

See attached for current network toplogy, I still can't figure out how to configure this HASS Wireguard Client (10.10.0.1) to connect to my Windows Wireguard Server at 10.

SD_network_Apr2023_v1

This is my current server config:

[Interface]
PrivateKey = eLIdwLSQCtxJEP3T+WLd9E+o4VedckoubuBpH2yyj1Y=
ListenPort = 60000
Address = 10.10.0.50/24

[Peer]
PublicKey = eLIdwLSQCtxJEP3T+WLd9E+o4VedckoubuBpH2yyj1Y=
PresharedKey = eLIdwLSQCtxJEP3T+WLd9E+o4VedckoubuBpH2yyj1Y=
AllowedIPs = 10.10.0.0/24

This is my current add-on yaml:

interface:
  private_key: eLIdwLSQCtxJEP3T+WLd9E+o4VedckoubuBpH2yyj1Y=
  address: 10.10.0.51
  dns:
    - 8.8.8.8
    - 1.1.1.1
  post_up: >-
    iptables -t nat -A POSTROUTING -o wg0 -j MASQUERADE; iptables -A FORWARD -p
    tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu
  post_down: >-
    iptables -t nat -D POSTROUTING -o wg0 -j MASQUERADE; iptables -D FORWARD -p
    tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu
  mtu: 1420
peers:
  - public_key: eLIdwLSQCtxJEP3T+WLd9E+o4VedckoubuBpH2yyj1Y=
    pre_shared_key: eLIdwLSQCtxJEP3T+WLd9E+o4VedckoubuBpH2yyj1Y=
    endpoint: example.hostname.com:60000
    allowed_ips:
      - 10.10.0.0/24
    persistent_keep_alive: "25"
log_level: debug

Any ideas on how to configure the yaml, as the above does not work?

from addon-wireguard-client.

bigmoby avatar bigmoby commented on June 19, 2024

Please @sunnyd24 could you post here the server config too?
p.s.: please write a demo-string as public_/private_/pre_shared/key for both client and server configuration.

from addon-wireguard-client.

sunnyd24 avatar sunnyd24 commented on June 19, 2024

@bigmoby Sure, I have updated post above to add server config and demo-string used for all keys, shown as:
"eLIdwLSQCtxJEP3T+WLd9E+o4VedckoubuBpH2yyj1Y=".

from addon-wireguard-client.

bigmoby avatar bigmoby commented on June 19, 2024

Mmm no, I mean demo-string each for any field according server and peer...not the same string as a placeholder, it's not useful :-)

from addon-wireguard-client.

sunnyd24 avatar sunnyd24 commented on June 19, 2024

@bigmoby not sure i understand "demo-string".
Do you mean generate valid example keys for all three types you mentioned above?

from addon-wireguard-client.

bigmoby avatar bigmoby commented on June 19, 2024

Hi @sunnyd24
please have a try with this config

[Interface]
PrivateKey = eLIdwLSQCtxJEP3T+WLd9E+o4VedckoubuBpH2yyj1Y=
ListenPort = 60000
Address = 10.10.0.50/24

[Peer]
PublicKey = eLIdwLSQCtxJEP3T+WLd9E+o4VedckoubuBpH2yyj1Y=
PresharedKey = eLIdwLSQCtxJEP3T+WLd9E+o4VedckoubuBpH2yyj1Y=
AllowedIPs = 10.10.0.51/32

In other words, you have to define the correct client IP for the peer.

from addon-wireguard-client.

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.