Posted on November 4, 2020 at 10:56 am
First create a Hetzner VPS and attach a floating IP to it.
I followed this guide to make sure the floating IP is persistent:
How to Make Floating IP Persistent (Hetzner)
In short, the procedure is like this:
1) Create a file named 60-my-floating-ip.cfg:
vi /etc/network/interfaces.d/60-my-floating-ip.cfg |
2) Paste the following configuration for IPv4:
auto eth0:1 iface eth0:1 inet static address Your.Floating.IP netmask 32 |
3) Restart the network service:
service networking restart |
4) Type “ifconfig” and it should output:
eth0:1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet Your.Floating.IP netmask 255.255.255.255 broadcast 0.0.0.0 ether 94:00:00:6b:3e:1d txqueuelen 1000 (Ethernet) |
If you use more than one floating IP, eth0:1 will be increased (e.g eth0:2).
Other Posts
- Route OpenVPN Connections Through Floating IP
- How to Configure a Floating IP in a VPS (Hetzner)
- Set OpenVPN to Listed on a Specific IP Address
- Bash Trim Leading and Trailing Whitespace from a String
- Bash Get Name of Ethernet Network Interface
- VPN Providers with Dedicated Static IP Address
- OpenVPN Iptables Rules
- WireGuard VPN Iptables Rules
Updated Posts
- AMD Chipsets & Graphics Card Drivers for Windows 7, 8, 10
- AMD Radeon 7400 Drivers for Windows 10
- How to pass custom command-line parameters in InnoSetup
- Add Desktop shortcut for all Windows PC users
- Programmatically create desktop icon with InnoSetup
- GeneratePress - a Lightweight WordPress Theme 2021
- InnoSetup disable DesktopIcon via command-line
- Use cURL to authenticate with JWT Bearer tokens