0

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.***.***.***

2
  • 3
    Does this answer your question? How to forward a port from one machine to another? Commented 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) Commented Oct 16, 2021 at 9:49

2 Answers 2

1

In theory I can use nginx

Nginx can redirect tcp & udp traffic

2
  • would a proxy server like squid not work? Commented Oct 31, 2022 at 23:07
  • @fcbsd I think nginx can be http proxy Commented Nov 1, 2022 at 9:51
0

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.

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.