Quote from: osmom on April 07, 2025, 11:45:06 AMGib bei Endpoint address: <öffentlicher DNS-Eintrag> mal deinen Zielport 51821 mit an.
Moin,
die angehängte Peer-Config stammt von der Konfiguration auf der OPNsense. Port 51821 lässt sich nicht unter Endpoint address mit einbinden sondern nur über das entsprechende Feld dafür. Die Konfiguration auf dem Client selbst ist direkt darunter und enthält :51821 in der Endpoint address ([Interface],...)
Quote from: vltn on April 05, 2025, 02:46:40 PM6. WireGuard Peer (Konfiguration auf OPNsense):
- Name: WG-Peer-Client-1
- Allowed IPs: 10.180.255.227/32
- Endpoint address: <öffentlicher DNS-Eintrag>
- Endpoint port: 51821
---
[Interface] (Konfiguration auf Client, der verbinden soll)
PrivateKey = WG-Peer-PrivateKey
Address = 10.180.255.227/32
[Peer]
PublicKey = WG-Server-PublicKey
AllowedIPs = 10.180.0.0/16
Endpoint = <öffentlicher DNS-Eintrag>:51821
PersistentKeepalive = 25
VG