Score:0

How can I have a fixed IP to the randomly selected OpenVPN server?

br flag

We currently run a single OpenVPN server with clients that run apps that talk to it via its (unfortunately often) hardcoded IP 10.8.0.1.

We're switching to multiple OpenVPN servers on the same host, so now clients are in different networks depending on which server they're connected to.

I'm looking for a way for legacy apps running on the clients to still reach their connected server at 10.8.0.1.

Score:0
br flag

I had to

  1. Add push "route 10.8.0.1 255.255.255.255" to each server config
  2. Run ip addr add 10.8.0.1/32 dev tun0 for each tun interface on the server

To automate the second part I added the following to each server configuration.

script-security 2
up /etc/openvpn/up.sh

/etc/openvpn/up.sh:

#!/bin/sh
ip addr add 10.8.0.1/32 dev $dev
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.