Hosting a Minecraft server on a VPN client
Posted: Tue May 31, 2022 12:50 pm
I have a working Minecraft server that runs on a laptop connected to my home LAN with port forwarding to WAN so that others can join using my public IP address. I wanted to have a way to run this server on the same laptop even when away from home and have people be able to connect using the same IP address. Using my AX88U as a VPN server, I am able to connect to my home LAN and ping devices on it, but I cannot figure out how to set up port forwarding so that port 25565 (Minecraft port) is forwarded from WAN to the VPN server, and then to my laptop. LAN uses a 192.168.50.0/24 subnet, VPN clients use a 10.8.0.0/24 subnet. Sorry for being a noob.
remote [public IP here] 443
float
nobind
proto tcp-client
dev tun
sndbuf 0
rcvbuf 0
keepalive 10 30
client
auth-user-pass
auth SHA1
auth-nocache
data-ciphers-fallback 'AES-128-CBC'
remote-cert-tls server
redirect-gateway def1
Client Config
remote [public IP here] 443
float
nobind
proto tcp-client
dev tun
sndbuf 0
rcvbuf 0
keepalive 10 30
client
auth-user-pass
auth SHA1
auth-nocache
data-ciphers-fallback 'AES-128-CBC'
remote-cert-tls server
redirect-gateway def1