Comments (7)
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.
@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.
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.
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.
@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.
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.
@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.
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)
- problems installing Wireguard client on HACS HOT 1
- It won't hold the connection to wireguard. HOT 4
- connecting to non-default wg port not possible HOT 4
- Need to create multiple peers in wireguard client under home assistant HOT 9
- Remote HomeAssistant Break after update to 0.2.0 HOT 11
- no local connect HOT 1
- After adding the reposity and refreshing the add-on store I cannot find the wireguard client HOT 4
- Problem connecting to wireguard server HOT 3
- no handshake over IPv6 HOT 1
- set MTU size HOT 1
- Extremely slow connection between server and client HOT 2
- Unable to connect domain.duckdns.org, connection not made between client and server HOT 7
- JSON format HOT 2
- Connecting to HomeAssistant UI via WireGuard Client HOT 4
- Home-Assistant working as a NAT Server for VPN client connection HOT 1
- HA seems not accessible from inside vpn HOT 2
- IP masquerading not working correctly HOT 3
- Core updates will fail -- Solution: disable WireGuard HOT 1
- WireGuard client status API - change port HOT 3
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 addon-wireguard-client.