Openwrt vpn gaming servers

so i just stared to use openwrt i put the vpn server in usa but i was still in asia server and the ping doesnt get better in na west servers any ideas why and please help

Just out of curiosity: Why would you think your ping would get any better if you're going through VPN? Usually using a VPN increases the distance your traffic travels, so I'd expect the ping to increase a well.

What are you trying to use a VPN connection for?

  • You need to make sure your VPN is acutally connected (basiclly "plugged in", virtually)
  • You need to make sure your routing is set up in a way to send the traffic that needs being sent through the VPN actually through the VPN.

I have never used OpenVPN on OpenWRT. The routers I had were always too slow in terms of CPU to handle VPN sufficiently. So I've only anecdotal wisdom here.

The first thing for you to do is to provide

  • your OpenVPN configuration (the config files on your OpenWRT router, in full, incuding the file paths you put them in),
  • your routers current routing state (output of route command)

oh yeah i forgot to say im 13 i dont know what any of that mean we had a guy to help us and i actually get very good ping with an vpn i get a 50 ping i am using a vpn because im in china and i just want to play with my friends on na west so i get good internet but when i put the vpn server and the game mode udp relay server in us but i still dont get good ping in na servers only on asia servers

Gaming through a VPN inherently increases ping since it takes two hops through the Internet to reach the game server instead of just one if you can play directly. I suppose this is more of a question how to defeat the China firewall if it won't let you game directly.

Using a VPN will only improve ping if your normal internet connection takes an indirect or congested route to the destination.
What ping are you getting to US West?

This kind of firewall typically relies on DPI that can dynamically filter and rate limit traffic using heuristic evaluation based on various parameters including signature match, protocol type, session duration, traffic volume, SNI, GeoIP, Social Credit, etc., so bypassing it with VPN or mitigating by other means can be a real headache.

Then maybe you should go and contact that guy again to help you with your VPN.

Please show two different screenshots:

  • First one: The manual of your OpenVPN provider that tells you what to do
  • Second one: The OpnWRT configuration interface where you added this settings

If there are none-english things on that screenshots, please add translations for me as well.

And of course, if there are thigs that look like credentials, just blurr the values out on the screenshots.

I get 150 ping on an west servers while playing with my friends but in Asia servers when my vpn is connected to the us I get 40 - 60 depends on my spot if I’m close to the router I get 40

But my ping doesn’t improve on na west when I’m really close to the router

I didn’t set up openvpn the guy that helped us did I think my dad is out of town for work and I can’t ask him for the guy to help us but like I have this thing called neo bird and I can change servers and stuff maybe from there?

What does that even mean?!?!

I’m just 13 it’s way too complicated just hearing that I know it will be a pain in the ass

1 Like

Probably yeah i don’t know but I get very good internet while using the vpn like I set up my vpn server to the us I get like 40 ping on Asia servers in Fortnite

And I get like 150 on an west and i don’t know why probably your right I think it’s more of a question on like chinas firewall

It’s like I want to play on us servers so I set my vpn to USA but it’s stuck in asia

Could you please clarify what "na west" and "an west" stand for?
And could you please clarify which numbers you're trying to accomplish?

Just in case you're talking about "noth america":

Its roughly 1100km from china to north america. It takes light about 40ms to travel that distance, which adds up to 80ms because "ping" includes the way back.

I guess if you're paying really good money for priority traffic, don't take any detour and have no chinese firewall in place trying take its time to inspect your traffic, you should have something like 100ms from from border to border. Since not all network terminates at a country border, add a little extra. And because VPN takes CPU on both sides to encrypt and decrypt, add a little extra.

I never did something like this, but I'd expect a ping no less than 120 from china to a north american server, not accounting for the chinese government trying to have a look at every package you send.

If you are talking about playing games on north american server while sitting in china, honest question: What are the numbers you're expecting to have?


Or, just for some reference (from Europe, no VPN, no nothing - I have no idea where the target servers are physically hosted, but at least for Huawei I would expect a location within CN):

$ ping -nc3
PING ( 56(84) bytes of data.
64 bytes from icmp_seq=1 ttl=36 time=252 ms
64 bytes from icmp_seq=2 ttl=36 time=247 ms
64 bytes from icmp_seq=3 ttl=36 time=249 ms

--- ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2003ms
rtt min/avg/max/mdev = 247.097/249.262/251.660/1.870 ms
$ ping -nc3
PING 56 data bytes
64 bytes from 2407:c080:17ef:ffff::7274:d206: icmp_seq=1 ttl=11 time=307 ms
64 bytes from 2407:c080:17ef:ffff::7274:d206: icmp_seq=2 ttl=11 time=310 ms
64 bytes from 2407:c080:17ef:ffff::7274:d206: icmp_seq=3 ttl=11 time=307 ms

--- ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
rtt min/avg/max/mdev = 307.175/308.135/309.903/1.251 ms

Or to take Australia as another example (at least there's no GFW involved):

$ ping -nc3
PING ( 56(84) bytes of data.
64 bytes from icmp_seq=1 ttl=106 time=245 ms
64 bytes from icmp_seq=2 ttl=106 time=248 ms
64 bytes from icmp_seq=3 ttl=106 time=247 ms

--- ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
rtt min/avg/max/mdev = 245.106/246.848/248.110/1.272 ms
1 Like

So na west is North America west and yes I want to play games with my friends on North America west servers while sitting in China on Asia servers with my vpn connected to the USA I get 40 ping but in North America west servers I get 150

The speed of light (in vacuum) is approximately 299 792 458 m / s (aka 300000 Km/s), but in optical fiber we have an index of refraction of ~1.4 resulting in ~2/3 of the speed of light or ~200000Km/s.
If we convert this to per millisecond we get 200Km/ms and if we want a signal back our data has to travel there and back, for ~100Km/millisecond RTT.
That means a continuous fiber path of 1100Km will have a physical path RTT >= 1100/100 = 11 ms...

Most active components in-between also take some time, so this certainly is a best case estimate... and finally we need to know the actual length of the actually used fiber path, fiber rarely is taking the shortest path between any two end-points of the internet...

1 Like

Ha ha, yes. Off by a magnitude. I guess that's what happens when I do math on my sick days instead of staying in bed. Sorry for that.