Danke dir! Die Änderungen geben ein neues Fehlerbild. Die externe IP der VM ist meine normale Telekom-IP. Das wg0 Interface hat laut ubuntu die IP des VPN Providers (10.2.0.2). Vom Gerät mit der IP .55 kann ich alle möglichen externen IPs anpingen (z.B. 8.8.8.8), jedoch nicht die des VPN Providers (also zB 10.2.0.1) und keine URLs auflösen. Laut tcpdump gehen die Anfragen des .55 Geräts aber durch die wg0 der VM.
curl ifconfig.me 91.*.*.*
4: wg0: <POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1420 qdisc noqueue state UNKNOWN group default qlen 1000 link/none inet 10.2.0.2/32 scope global wg0 valid_lft forever preferred_lft forever
PING 8.8.8.8 (8.8.8.8): 56 data bytes 64 bytes from 8.8.8.8: seq=0 ttl=118 time=10.649 ms 64 bytes from 8.8.8.8: seq=1 ttl=118 time=10.716 ms 64 bytes from 8.8.8.8: seq=2 ttl=118 time=10.456 ms
PING 10.2.0.1 (10.2.0.1): 56 data bytes ^C --- 10.2.0.1 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss
ping web.de ^C
cpdump: listening on enp1s0, link-type EN10MB (Ethernet), snapshot length 262144 bytes 13:14:23.321325 00:1d:ec:0f:e2:64 > 52:54:00:cb:f3:b0, ethertype IPv4 (0x0800), length 98: (tos 0x0, ttl 64, id 52126, offset 0, flags [DF], proto ICMP (1), length 84) 192.168.178.55 > 8.8.8.8: ICMP echo request, id 54035, seq 0, length 64 13:14:23.321361 52:54:00:cb:f3:b0 > dc:39:6f:cf:ba:1e, ethertype IPv4 (0x0800), length 98: (tos 0x0, ttl 63, id 52126, offset 0, flags [DF], proto ICMP (1), length 84) 192.168.178.55 > 8.8.8.8: ICMP echo request, id 54035, seq 0, length 64
tcpdump: listening on wg0, link-type RAW (Raw IP), snapshot length 262144 bytes 13:14:23.321348 ip: (tos 0xc0, ttl 64, id 56465, offset 0, flags [none], proto ICMP (1), length 112) 10.2.0.2 > 192.168.178.55: ICMP redirect 8.8.8.8 to host 192.168.178.1, length 92 (tos 0x0, ttl 63, id 52126, offset 0, flags [DF], proto ICMP (1), length 84) 192.168.178.55 > 8.8.8.8: ICMP echo request, id 54035, seq 0, length 64 13:14:24.321569 ip: (tos 0xc0, ttl 64, id 56668, offset 0, flags [none], proto ICMP (1), length 112) 10.2.0.2 > 192.168.178.55: ICMP redirect 8.8.8.8 to host 192.168.178.1, length 92 (tos 0x0, ttl 63, id 52179, offset 0, flags [DF], proto ICMP (1), length 84) 192.168.178.55 > 8.8.8.8: ICMP echo request, id 54035, seq 1, length 64