I’m currently trying to play some old games (Anno 1701/Warcraft 3) with My friends and i dont really know how i can “change” My LAN IP Adress to be the one from my VPN.
I’m using OpenVPN on my own Server and in Windows it works, and i can play with them.
But in Debian 12 I can connect to My VPN, but the games will use My LAN Adress instead of the VPN Adress and i dont know how i can change it, or force them to use the VPN Adress.
I’m using Steam with Proton to Start the games, and OpenVPN connection via NetworkManager.
Any help here Would be appreciated, Google Would only lead me to answers, that would’nt work like changing the Metric of the Network devices.
Thanks for the reply, but sadly this won’t work.
The VPN Server is set up to not redirect any traffic from the vpn network to the outside (and i don’t really want to enable it for all clients).
Also just editing my config file, gives me access to the VPN network without access to the internet, but Anno still only sees my local ip adress instead of the VPN adress and it wont allow connections from other Networks.
Are your friends in the same network via VPN?
Yes, my friends have a connection to the same VPN server.
In windows it works with the openvpn gui client and we can play together, just need to figure out how to do it in debian.
Do you all connect to a server in that network or something? How does the game work
You don’t “change” your IP address, you change which interface is used to reach which network. Normally a single interface to reach all networks (default route). What you have now is that, but with an extra interface (VPN) directly in another network, with its own route. All trafic with destination that network will go through that interface, with the source IP of that VPN interface.
That means i need a way to change the interface, the game will use?
Most of the games are client-to-client and have a lobby, like old warcraft 3.
Normally One of my friends, or i open a server ingame and everyone will see it in the main lobby (probably via broadcast to the network).
But Most of the games dont have a switch for which network connection to use.