Game Server Hosting while Obfuscating personal IPv4 address

Hello,

This is my first post here so please excuse me if this isn’t the correct space. I have a couple of custom Docker containers that are hosting both Valheim and Minecraft Vanilla.

The issue I’ve been having lately is when I route them through my VPN tunnel (OpenVPN with Static IP hosted in its own docker container) my game servers lag very bad and have bad performance. When I switch to my personal IP the performance is just fine. I am trying to find a solution that allows me to obfuscate my personal IP address while retaining good network performance to my game server containers.

Has anyone else had this issue and if so, how did you fix it?

If this seems a bit vague, I’ll gladly elaborate.

Thanks in advance. :slight_smile:

You might want to consider Wireguard instead of OpenVPN for performance.

I just hate the fact that my users would have to use a wireguard configuration. My friends are all non-technical dudes who would probably complain they have to use some wireguard config to connect. I just want a hassle free way for them to connect to an IP address.

Did I understand correctly that your friends are ok with openvpn, but not ok with wireguard?

Also, about static ip – do you use some kind of vps for this? If so, it is “doubling” the latency: Client → VPS → Your server instead of Client → Your server.

1 Like

So I’m using OpenVPN as in the OpenVPN client and running it inside its own docker container.

I am then attaching my game server docker containers to the OpenVPN container and routing my traffic through that one container, and in doing so, obfuscating/hiding my home IP address.

I don’t use a VPS - I was actually considering leasing a VPS to tunnel my traffic from/to my Game Servers

Hope that clears it up.

TLDR; Running OpenVPN client with Static IPv4 address in isolated docker container. Routing all other game server traffic (each in their own docker containers) through the OpenVPN container.

No setup required on my users end. They simply just type in the IP assigned by my VPN and then the port and they’re able to connect.

How did you get this static IPv4? And did you set it manually? Are you sure that it is really “static”?

I don’t see a point in using OpenVPN then. Your friends can’t see your personal (aka local) IP anyway, unless there is a very fancy router setup. They just “see” the (public) IP leased to you by your ISP. This IP can be static or dynamic (changed over time). In case you provide different IPs to your friends for your server, it’s dynamic. Usually ISPs charge extra for providing a static ip.

It could be the case that I simply didn’t understand your setup. Posting some docker compose (or docker runs) that you used for deploying the containers could help.

I paid for an add on from them to get a Chicago based Static IPv4.

Yes, I’m aware of that. That IP also has my personal info, address, location and is also capable of being DDoS’d.

My ISP assigned IP hasn’t changed in a very long time, idk how long my lease is valid on this address but I’m assuming it is a bit. I’ve had this IP for at least two weeks.

Ok. Is this the very IP you provide to your friends?

Again, posting your exact docker configs (compose files or run commands) will help a lot.

Either TCPShield or something like Playit.gg unless you want a) Wireguard / Tailscale or b) using your own IP

I really like the idea of playit.gg but I wanted to buy a fixed/custom URL and they’re sold out :frowning:

TCP Shield is something I haven’t considered or checked into, I can check it out.

Using my IP is not ideal.

Really, why not? What risk do you perceive from some friends of yours knowing your public IP address?

Well, no, it doesn’t “have” any of that (approximate location can be determined, but address and other personal information can’t without a subpoena or court order to your ISP), but it is capable of being DDoS’d. Do you expect that to happen? How many people are you sharing this with, anyway?

1 Like

Well, I just don’t like the idea of people being able to potentially get my information. I am pretty sure if you google an IP it will show an address, right? Or at least the town it resides in.

I mean, I don’t expect to get DDoS’d but I’d rather not even have that as an option. Or at least would like to mitigate the risk.

I have no idea what makes you think that–no, that isn’t the case.

Even that is iffy. Mine, a static IP I’ve had for the past ten years (that also has public DNS records pointing to it), still geolocates to the nearest major city.

2 Likes

So can you advise what you’d do in my situation then? Just send er?

It’s playing a game with your friends? Just send it.

2 Likes

That should only happen on Google Maps if street addresses get replaced by IP addresses. You might be thinking of wifi devices showing on Google Maps and Location Services? Access Points may show?

What IP are you sharing with them now? How did the OpenVPN container get another public IP? Did you buy some VPN services for this?

My ISP assigned public IPv4 address. I have some randoms that I play with too that are friends of friends so that’s why I’m iffy about sharing out my personal IP.

Ok. But that didn’t answer my questions.

You are sharing with friends a different (from your ISP-leased public) address assigned to OpenVPN, right? How is it assigned? How did you get this different address?

I leased a static IPv4 from OpenVPN for an additional charge per month. They assign it.

I bought it as an add on