[SOLVED] openvpn and gaming - server access issue

Started by NoncarbonatedClack, June 08, 2022, 05:05:19 AM

Previous topic - Next topic
June 08, 2022, 05:05:19 AM Last Edit: June 14, 2022, 03:17:14 PM by NoncarbonatedClack
So I've set this up a few years ago (albeit on pfsense instead) but I made the switch to OPNsense earlier this year and couldn't be happier.

I'm rebuilding my server environment after not running it for a while, and now I'm getting my minecraft server running on docker again.

The trouble is, that while I can get my friend connected to openvpn, and he can ping the server's IP, minecraft fails to allow him to join (connection timeout error). I can join fine (the server is running on a different VLAN than my LAN).

General setup is:
OPNsense does layer 3, vlan's terminate here, openvpn terminates here
trunk port to cisco switch, and trunks for 2 esxi hosts

I went through the openvpn wizard, so I have the default firewall rules in place. I'm not really sure where to look, as docker (running on a slimmed down ubuntu VM) is accepting connections (works from my LAN, also verified iptables rule on the ubuntu guest)

Anyone have suggestions on where to look please?
Current
NUC 11 Pro NUC11TNHi50L
i5-1135G7
32 GB DDR4 3200Mhz CL16
1 TB Samsung 970 Evo Plus
2x i225-LM NICs

Running as a VM with 2 vCPU, 2 GB RAM, and on ESXi v8.0

Retired:
HP ML310e G8 v2
Xeon E3-1220 V2
16 GBDDR3 ECC
Intel i350-T4

Attached rule details for the openvpn rule

Current
NUC 11 Pro NUC11TNHi50L
i5-1135G7
32 GB DDR4 3200Mhz CL16
1 TB Samsung 970 Evo Plus
2x i225-LM NICs

Running as a VM with 2 vCPU, 2 GB RAM, and on ESXi v8.0

Retired:
HP ML310e G8 v2
Xeon E3-1220 V2
16 GBDDR3 ECC
Intel i350-T4

Maybe the server is not allowed/able to answer?  You could try with a rule that allows the server to talk to anything.  How does your friend connect?

bump for visibility? any suggestions?
Current
NUC 11 Pro NUC11TNHi50L
i5-1135G7
32 GB DDR4 3200Mhz CL16
1 TB Samsung 970 Evo Plus
2x i225-LM NICs

Running as a VM with 2 vCPU, 2 GB RAM, and on ESXi v8.0

Retired:
HP ML310e G8 v2
Xeon E3-1220 V2
16 GBDDR3 ECC
Intel i350-T4

Check firewall rules of interface which network your minecraft server belongs to.

By default incoming traffic from different networks is blocked.

Also clients won't be able to access different network clients without proper routes, but pinging tells that routes are fine.

Quote from: Vilhonator on June 10, 2022, 08:00:18 PM
Check firewall rules of interface which network your minecraft server belongs to.

By default incoming traffic from different networks is blocked.

but wouldn't ping count as traffic and thus be blocked..?

I'll make a rule and try it out though.
Current
NUC 11 Pro NUC11TNHi50L
i5-1135G7
32 GB DDR4 3200Mhz CL16
1 TB Samsung 970 Evo Plus
2x i225-LM NICs

Running as a VM with 2 vCPU, 2 GB RAM, and on ESXi v8.0

Retired:
HP ML310e G8 v2
Xeon E3-1220 V2
16 GBDDR3 ECC
Intel i350-T4

Quote from: NoncarbonatedClack on June 10, 2022, 10:18:58 PM
Quote from: Vilhonator on June 10, 2022, 08:00:18 PM
Check firewall rules of interface which network your minecraft server belongs to.

By default incoming traffic from different networks is blocked.

but wouldn't ping count as traffic and thus be blocked..?

I'll make a rule and try it out though.

Not quite. Ping tells you if route exists and you can block Pingign by blocking ICMP traffic (firewall blocks TCP/UDP traffic by default, ping is neither of those).

Also you will be able to ping pretty much any IP to which there's a route to and if ICMP traffic isn't blocked. Again, ping only tells you if there's a working route to that address, traceroute would give you more detailed results on routes.

Quote from: Vilhonator on June 10, 2022, 11:47:50 PM
Quote from: NoncarbonatedClack on June 10, 2022, 10:18:58 PM
Quote from: Vilhonator on June 10, 2022, 08:00:18 PM
Check firewall rules of interface which network your minecraft server belongs to.

By default incoming traffic from different networks is blocked.

but wouldn't ping count as traffic and thus be blocked..?

I'll make a rule and try it out though.

Not quite. Ping tells you if route exists and you can block Pingign by blocking ICMP traffic (firewall blocks TCP/UDP traffic by default, ping is neither of those).

Also you will be able to ping pretty much any IP to which there's a route to and if ICMP traffic isn't blocked. Again, ping only tells you if there's a working route to that address, traceroute would give you more detailed results on routes.

Interesting, thanks.

firewall rule did it!
Current
NUC 11 Pro NUC11TNHi50L
i5-1135G7
32 GB DDR4 3200Mhz CL16
1 TB Samsung 970 Evo Plus
2x i225-LM NICs

Running as a VM with 2 vCPU, 2 GB RAM, and on ESXi v8.0

Retired:
HP ML310e G8 v2
Xeon E3-1220 V2
16 GBDDR3 ECC
Intel i350-T4