PiHole: VPN+LAN for LAN gaming

Hello!

Followed Redirecting... the guide to the letter, everything works, from all devices from any location.
Since my friends are connected over the VPN into my network, ideally we should be able to connect to LAN servers within games, this doesn't work however.

Messing around with routing and tracerts:
The Clients can ping the OpenVPN server 10.8.0.1 and all devices on the LAN 192.168.0.0 - Which I want
The Clients cannot ping other Clients - I've tried "Client-to-Client" but nothing changes
LAN devices cannot ping any Clients - Needed to be able to open up LAN gaming

I understand bridging and TAP over TUN, however I could do with maintaining the capability of TUN for the various devices i.e. Android.

Any detailed help would be much appriciated e.g. commands, as my Linux expirence is fairly novice, I'm good with a decent guide. :smiley:

Many thanks

Debug Token:

20vzgf2ese

This issue does not pertain to Pi-hole as a product, It's a question that might be better answered on the OpenVPN forum ...

A few things to keep in mind.

All clients will get 10.0.8.* IPs. That means that they WILL see (based on the server.conf settings - push "redirect-gateway def1 bypass-dhcp") all the LAN computers, however, all the LAN devices from the 192.168 range, will only see the packets originating from the device running the VPN server IP (masked by the MASQUERADE instruction in your IP tables which handle the two way distribution of said packages).

So pinging a 10.0.8 IP from a LAN client, will never work, because there is no route defined on the LAN client.

Due to the nature of the issue, I really think that folks over OpenVPN will be more able to assist you.

1 Like

Yeah, I understand it would be better placed over on the OpenVPN forum, I will transfer over :slight_smile:

It's getting the route defined on the LAN client where I am stuck.

Thanks for your feedback though!

UDP broadcasts are needed for network games on a LAN. To communicate by broadcast, all participants need to be in the same broadcast domain.

This requires bridging: https://openvpn.net/community-resources/ethernet-bridging/

You have some tinkering ahead of you. Good luck!

2 Likes

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.