This question has probably been asked before. Suppose I have FreeBSD 12, and I have a server with for example ip: 45.***.***.*** and I want it to forward a port like 25565 (Minecraft Server) to another ip: 95.***.***.***
-
3Does this answer your question? How to forward a port from one machine to another?Jim L.– Jim L.2021-10-14 19:38:32 +00:00Commented Oct 14, 2021 at 19:38
-
@JimL. No, without SSH. I want the VDS server to be a protection for the main server (I think)Redis– Redis2021-10-16 09:49:16 +00:00Commented Oct 16, 2021 at 9:49
Add a comment
|
2 Answers
A common usecase would be to setup a firewall which does the port redirection.
On FreeBSD there are three options, pf, ipfw, and ipfilter.
All are able to do this. Personally I think pf is the most easy to learn, but YMMV. The handbook has some chapters on how to setup a firewall.