This is a test website to try out GitHub and Git Bash
15 Dec 2024 - jhunter
Manage your own Speedport Smart 3 router from Telekom: http://speedport.ip
Web addresses for your router: https://www.noip.com
For the maximum VPN clients on the Speedport Smart 3: https://telekomhilft.telekom.de
In-depth installing wireguard client on ubuntu server https://serverspace.io
This post describes how to prepare an ubuntu server as a client of the wireguard VPN server, which is being hosted by a Telekom Speedport Smart 3 router.
You have a Speedport Smart 3 router.
You have spun up an ubuntu server. I am using ubuntu 24.04.1 LTS.
The ubuntu computer can be in the LAN of the Speedport Smart 3 router from Telekom.
Alternatively the ubuntu machine can be in the WAN; in this case the ubuntu machine requires normal internet access.
By default, the Speedport router will configure VPN clients using the router’s IP address.
Given that the public IP address of most routers changes every few days, in order to maintain conectivity, you should create a routeable web address for your Speedport router.
I used the website no-ip.com to do it. This website lets you create up to three web addresses for free.
This section will configure the hostname you created inside the Speedport router.
This section describes how to configure the Speedport router as the Wireguard VPN server.
The Speedport Smart 3 router can actually only have one VPN and also only one VPN client.
The router does let you download the client configuration file. This file defines the VPN client’s IP address, however the client doesn’t work if you try to change the client IP address within the configuration file.
The next model in the Telekom series, ‘Speedport Smart 4’, doesn’t have this limitation and it does let you create many VPN’s.
To create the VPN:
Here are the commands to install wireguard in ubuntu server.
Optional: Update your ubuntu system.
sudo apt-get update && sudo apt-get upgrade
Install wireguard:
sudo apt install wireguard
Put the Wireguard config file from the Speedport router - unchanged - here: /etc/wireguard/Wireguard.conf
.
Start the VPN client from linux: I think the conf file name must match this command: it’s also going to be the interface name.
sudo wg-quick up Wireguard
From the Speedport router, in the VPN section, you will see the status : VPN access active WG-10-200-200-1 connected
.
From the ubuntu machine, you can use this command. The most interesting thing from its output is seeing: latest handshake: 11 seconds ago
and seeing the transfer number going up: transfer: 4.37 KiB received, 23.60 KiB sent
.
sudo wg show
To stop the VPN from the ubuntu client, use this command:
sudo wg-quick down Wireguard
These tips may help:
Run this command from the ubuntu computer to see if the hostname is correctly resolved (replace hostname
with the hostname you created):
dig hostname
Check the ubuntu server has internet by doing a simply ping:
ping 9.9.9.9
Check the Speedport router has internet, by looking at its LEDs.
If you think the client configuration file was changed after it was downloaded, feel free at any time to delete the Wireguard VPN from the Speedport router, and start again.
If you like, you can use the exact same client configuration file within other compatible client devices. You can only do this to test your VPN, because the VPN will be unstable if two devices use the same VPN client configuration file at the same time.
With this VPN you can use your remote ubuntu machine to communicate with devices within the LAN of the Speedport router.
Devices in the LAN will not be able to create connectons to the remote ubuntu machine.
Uses might include: