Jump to content

internal network port-forwarding between devices

I have a stupid question, not like this forum is new to that

I have a server, an actual piece of garbae I mainly use as a file host, but it also runs a Minecraft server. The only problem is, it runs the Minecraft server like shit.

1333MHz DDR3 and a Core 2 Duo E8400 and unoptimized Minecraft 1.7.10 modded with Forge means chunk loading and responsiveness is ass at the best of times

Vanilla doesn't have this problem, and yes, I've taken the steps to otimize the VM best I can using AdoptOpenJDK OpenJ9 and the sort

 

Being in a college dorm, port-forwarding isn't an option. However, I have an OpenVPN instance built into my router that allows me access to my server without having to open SSH, FTP, and Samba to the world, which is how I manage my server files and programs remotely. Unfortunately, I can't actually port forward connections over OpenVPN. I'd like a way to route a port from one device on the local network to another. I can access devices on my network when using OpenVPN interchangably, I'm given an assigned IP address I can address as if I was on the local network (no surprise there).

 

Say I wanted to port forward for Minecraft, so I forward port 25565 to my local server, which then routes traffic from 25565 to my computer's OpenVPN IP and port, essential stitching a local forward from an OpenVPN instance through a middleman computer to my router.

 

TL;DR can I make my Linux server forward a port from itself to another device on the network

 

thank you all in advance.

My profile picure is real. That's what I look like in real life. I'm actually a blue and white African Wild Dog.

Ryzen 9 5900X - MSI Ventus 2x OC 3060 Ti - 2x8GB Corsair Vengeance LPX 3200MHz CL16 - ASRock B550 Phantom Gaming ITX/ax

EVGA CLC 280 + 2x140mm NF-A14 - Samsung 850 EVO 500GB + WD Black SN750 1TB - Windows 11/10 - EVGA Supernova G3 1000W

Link to post
Share on other sites

Are you not able to run the VPN on the other clients? Would be a simpler solution. If I understand what you're asking for correctly you want a Site-to-Site VPN.

 

Port Forwarding is only needed when you want to access a system behind a router. A Client-to-Site VPN makes it so Port Forwarding isn't necessary.

Link to post
Share on other sites

4 minutes ago, Windows7ge said:

Are you not able to run the VPN on the other clients? Would be a simpler solution. If I understand what you're asking for correctly you want a Site-to-Site VPN.

 

Port Forwarding is only needed when you want to access a system behind a router. A Client-to-Site VPN makes it so Port Forwarding isn't necessary.

I do want to access a system behind a router. In my current living situation, I am not able to forward so my computer cannot be accessed directly on this network. My VPN puts me onto a network in which I can port forward and exose my devices. I'm basically trying to take my current computer, which cannot be accessed directly, and VPN it to a network where it in fact can be forwarded and accessed directly. Does that make a bit more sense?

My profile picure is real. That's what I look like in real life. I'm actually a blue and white African Wild Dog.

Ryzen 9 5900X - MSI Ventus 2x OC 3060 Ti - 2x8GB Corsair Vengeance LPX 3200MHz CL16 - ASRock B550 Phantom Gaming ITX/ax

EVGA CLC 280 + 2x140mm NF-A14 - Samsung 850 EVO 500GB + WD Black SN750 1TB - Windows 11/10 - EVGA Supernova G3 1000W

Link to post
Share on other sites

2 minutes ago, DaJakerBoss said:

I do want to access a system behind a router. In my current living situation, I am not able to forward so my computer cannot be accessed directly on this network. My VPN puts me onto a network in which I can port forward and exose my devices. I'm basically trying to take my current computer, which cannot be accessed directly, and VPN it to a network where it in fact can be forwarded and accessed directly. Does that make a bit more sense?

So you're trying to access the PC that's on campus not a server at your house?

 

I know with Pritunl you can set to allow/disallow inter-client communication between members connected to the VPN. If you connect both your PC and the server sitting behind a port forwarded router and make sure the VPN server allows inter-client communication you should be able to directly access the MC server via it's VPN IP address. Then you just have to share the server on that network.

Link to post
Share on other sites

3 minutes ago, Windows7ge said:

So you're trying to access the PC that's on campus not a server at your house?

 

I know with Pritunl you can set to allow/disallow inter-client communication between members connected to the VPN. If you connect both your PC and the server sitting behind a port forwarded router and make sure the VPN server allows inter-client communication you should be able to directly access the MC server via it's VPN IP address. Then you just have to share the server on that network.

thank you, that's exactly what I was looking for, thank you so much!

My profile picure is real. That's what I look like in real life. I'm actually a blue and white African Wild Dog.

Ryzen 9 5900X - MSI Ventus 2x OC 3060 Ti - 2x8GB Corsair Vengeance LPX 3200MHz CL16 - ASRock B550 Phantom Gaming ITX/ax

EVGA CLC 280 + 2x140mm NF-A14 - Samsung 850 EVO 500GB + WD Black SN750 1TB - Windows 11/10 - EVGA Supernova G3 1000W

Link to post
Share on other sites

1 minute ago, DaJakerBoss said:

thank you, that's exactly what I was looking for, thank you so much!

I re-read my post I need to clarify it a bit:

  • MC Server (connect to VPN)
  • Desktop (connect to VPN)
  • VPN Server (this needs port forwarding)

As I said when you talk to client members on a VPN it bypasses the need for port forwarding but the VPN server itself usually needs it. If you only plan to play MC over the VPN then the MC server itself doesn't need ports opened in your router.

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×