• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

Problem with wireguard and Ubuntu server

Scheduled Pinned Locked Moved WireGuard
1 Posts 1 Posters 236 Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V
    viciud
    last edited by Sep 14, 2023, 4:24 PM

    I have a VPS Ubuntu server 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.

    1 Reply Last reply Reply Quote 0
    1 out of 1
    • First post
      1/1
      Last post
    Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
      This community forum collects and processes your personal information.
      consent.not_received