HI community,
not sure what happens, wireguard worked flawlessly before, now I can connect but not getting anything transferred. no ping possible.
pivpn and wireguard installed.
wg output:
cloud:~# wg
interface: wg0
public key: ***
private key: (hidden)
listening port: 51820
peer: ***
preshared key: (hidden)
endpoint: ***
allowed ips: 10.6.0.2/32
latest handshake: 10 hours, 1 minute, 35 seconds ago
transfer: 5.52 KiB received, 188 B sent
cloud:/etc/wireguard# cat wg0.conf
[Interface]
PrivateKey = I***
Address = 10.6.0.1/24
MTU = 1420
ListenPort = 51820
### begin User ###
[Peer]
PublicKey = ***
PresharedKey = ***
AllowedIPs = 10.6.0.2/32
### end User ###
cloud:/etc/wireguard#
cloud:/etc/wireguard/configs# cat User.conf
[Interface]
PrivateKey = ***
Address = 10.6.0.2/24
MTU = 1420
DNS = 10.0.1.*
[Peer]
PublicKey = ***
PresharedKey = ***
Endpoint = ***:51820
AllowedIPs = 0.0.0.0/0, ::0/0
cloud:/etc/wireguard/configs#
iptables -L
cloud:/etc/wireguard/configs# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
cloud:/etc/wireguard/configs#
cloud:/etc/wireguard/configs# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default router 0.0.0.0 UG 0 0 0 eth0
10.0.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
10.6.0.0 0.0.0.0 255.255.255.0 U 0 0 0 wg0
10.6.0.2 0.0.0.0 255.255.255.255 UH 0 0 0 *
cloud:/etc/wireguard/configs#
simple and plain, all ok up to the issue occurs.
dstnat port udp/51820 forwared on Mikrotik to the wireguard Dietpi.
what I have not thought of? why it is not working anymore from one day to another?
all other raspis, network config or firewalling not changed in the environment.
Connection tested on IOS wireguard client and windows official wireguard client.
thanks in advance
kind regards,
Pinocchio