Problem with wireguard and Ubuntu server
-
I have a VPS Ubuntu server on AWS on which I run a Wireguard client, while my Wireguard server is in my home router netgate with pFsense firmware. The server works correctly because I tried to connect remotely with various clients including Android, Windows and Kali and the internet connection was correctly routed to my home router, thus allowing me to use its public IP even from remote clients, running a speedtest I see that on these clients the upload and download speed is 20 mbps and that's ok for me. On the Ubuntu VPS, however, something is wrong, because Wireguard doesn't work well, traffic isn't routed correctly on wireguard, even if ssh from another client connected to the same VPN works, if I run wget to see my public IP I can see that of the home router but if for example I run speedtest-cli as download speed I get 0 mbit/s while in upload 6 mbit/s same problem if I run an apt-get update I get 0% [Waiting for headers]. I think it's a routing problem that unfortunately I don't know how to solve, I searched on the web but I didn't find anyone with a similar problem. This is the configuration as a client on the Ubuntu Server VPS:
[Interface]
Address = 10.10.10.3/32
PrivateKey = (My private key)
DNS = 8.8.8.8
ListenPort = 51820
[Peer]
PublicKey = (router wireguard Public Key)
AllowedIPs = 0.0.0.0/0
Endpoint = (Public IP homenetwork):51820
Thanks, any help is welcome.