goerdi schrieb:
..., aber eben nur dass im Netzwerk vom Server alle Zugriffe angezeigt werden als würden sie von diesem Server kommen (sprich mit einer IP aus dem "eigenen" Netz).
Sie kommen ja auch "über diesen" Server. 😉
Ich kann das reproduzieren (Ping mit "-c 1"!!! von .14 zu .99 via Server mit der .1). Schau dir das (auf dem Server) mal an:
- Mit S-NAT am wg0-Interface vom WG-Server:
:~# tcpdump -vvveni wg0 icmp
tcpdump: listening on wg0, link-type RAW (Raw IP), snapshot length 262144 bytes
10:38:52.699137 ip: (tos 0x0, ttl 64, id 3327, offset 0, flags [DF], proto ICMP (1), length 84)
192.168.22.14 > 192.168.22.99: ICMP echo request, id 5005, seq 1, length 64
10:38:52.699277 ip: (tos 0x0, ttl 63, id 3327, offset 0, flags [DF], proto ICMP (1), length 84)
192.168.22.1 > 192.168.22.99: ICMP echo request, id 5005, seq 1, length 64
10:38:52.706203 ip: (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto ICMP (1), length 84)
192.168.22.99 > 192.168.22.1: ICMP echo reply, id 5005, seq 1, length 64
10:38:52.706240 ip: (tos 0x0, ttl 63, id 0, offset 0, flags [DF], proto ICMP (1), length 84)
192.168.22.99 > 192.168.22.14: ICMP echo reply, id 5005, seq 1, length 64
^C
- Ohne S-NAT am wg0-Interface vom WG-Server:
:~# tcpdump -vvveni wg0 icmp
tcpdump: listening on wg0, link-type RAW (Raw IP), snapshot length 262144 bytes
21:54:16.959530 ip: (tos 0x0, ttl 64, id 31885, offset 0, flags [DF], proto ICMP (1), length 84)
192.168.22.14 > 192.168.22.99: ICMP echo request, id 17503, seq 1, length 64
21:54:16.959629 ip: (tos 0x0, ttl 63, id 31885, offset 0, flags [DF], proto ICMP (1), length 84)
192.168.22.14 > 192.168.22.99: ICMP echo request, id 17503, seq 1, length 64
21:54:16.963459 ip: (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto ICMP (1), length 84)
192.168.22.99 > 192.168.22.14: ICMP echo reply, id 17503, seq 1, length 64
21:54:16.963497 ip: (tos 0x0, ttl 63, id 0, offset 0, flags [DF], proto ICMP (1), length 84)
192.168.22.99 > 192.168.22.14: ICMP echo reply, id 17503, seq 1, length 64
^C
... und fällt dir was auf?
BTW: WG macht (auch) cryptorouting und da ist es auch wichtig was bei AllowedIPs steht.
Wenn Du nicht weiter suchen willst, dann lassen wird es.