Workaround bad network routes

Help with Setup, Hardware, Performance or other Issues...Or just pimp your rig.
Post Reply
mudfreak
Private First Class
Private First Class
Posts: 14
Joined: Mon Jan 02, 2017 10:53 pm

Workaround bad network routes

Post by mudfreak »

Hey,

this goes out to the network specialists.

Background:
==========
since a few weeks I have the problem that I get super bad lagspikes and jitter on ONLY my favorite game server (let's call it FAVSRV).
Via traceroute and ping I found that this happens only on the network route from my home (big german ISP connection) and
FAVSRV.
When I try traceroute and ping from a VPS I own then there seems to be no problems.

Here's my (failed) solution attempt:
==========================
I thought I could route the traffic from my home bzflag-client to FAVSRV via my VPS.
Being very nooby in network stuff I tried this on my VPS:
socat tcp-l:1234,fork,reuseaddr tcp:${FAVSRVIP}:${FAVSRVPORT}
socat udp-l:1234,fork,reuseaddr udp:${FAVSRVIP}:${FAVSRVPORT}

With my bzflag-client at home I now enter my VPS-IP and port 1234 and it then connects to FAVSRV via my VPS.
That's working - yay.

What does NOT work is the callsign authentication. I get a "-".

Question:
========
Can anyone help me with fixing the callsign authentication there?
Or come up with a better solution?
If this is a very stupid idiotic attempt, you can say that too, I don't mind. ;-)

Cheers,
Mudfreak
playerStr
Private First Class
Private First Class
Posts: 11
Joined: Fri Feb 09, 2024 9:50 am

Re: Workaround bad network routes

Post by playerStr »

AFAIK global auth requests a token over https, so maybe you have to forward your https through your VPS connection as well?
mudfreak
Private First Class
Private First Class
Posts: 14
Joined: Mon Jan 02, 2017 10:53 pm

Re: Workaround bad network routes

Post by mudfreak »

Um, are you sure?
I don't think the client normally connects to "gameserver:443" for authentication.
Probably the game server takes the client IP and connects to some central auth server on port 443. But that's nothing that I need or could reroute.
playerStr
Private First Class
Private First Class
Posts: 11
Joined: Fri Feb 09, 2024 9:50 am

Re: Workaround bad network routes

Post by playerStr »

AFAIK it connects to a bzflag.org service for global auth, and I think the IP it does that with has to be the same as the one you log into a server with? I am not 100% on that
mudfreak
Private First Class
Private First Class
Posts: 14
Joined: Mon Jan 02, 2017 10:53 pm

Re: Workaround bad network routes

Post by mudfreak »

Yeah, that makes sense.
Maybe I need to reroute the traffic to bzflag.org too.
I need to figure out how to do that.
User avatar
Zehra
Private First Class
Private First Class
Posts: 921
Joined: Sun Oct 18, 2015 3:36 pm
Location: Within the BZFS API and Beyond it
Contact:

Re: Workaround bad network routes

Post by Zehra »

The IP address must match for it to work.

In short:

Code: Select all

Client -> VPS -> Global auth
The VPS needs to make the authentication request if you are attempting to proxy your connection through it.

I started researching this due to IPv6/IPv4 issues messing with global authentication.

-Zehra
Those who are critical of me, I'll likely be the same of them. ~Zehra
The decisions we make are the ones we look forward too and the ones we regret. ~Zehra
There's a difference between knowing my name and knowing me, one shows respect to my name and the other is to who I am. ~Zehra

See where I've last been active at Strayers.
Visit BZList.net for a modern HTML5 server stats site.

Click here to view the 101 Leaderboard & Score Summaries Last updated 2021-01-12 (YYYY-MM-DD)
Latest 101 thread
Post Reply