S
S
sudo rm -rf /2020-11-17 01:10:25
macOS
sudo rm -rf /, 2020-11-17 01:10:25

How to redirect requests to "your" machine to a virtual machine in MacOS?

There is a PC on MacOS - PC. It has a virtual machine with Linux, with Bridge-mode - VM.
IP PC : 192.168.1.64
IP VM : 192.168.1.77

There is a script on a remote machine that is configured on a PC (let's assume the port is 25565), but the server listening to it is on the VM. We need to redirect all packets to 192.168.1.64:25565 to 192.168.1.77:25565.
The router is too dumb for that. On the net, I googled answers with iptables, which is not in MacOS.

How to make a redirect in macOS?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
elbrus56, 2020-11-17
@elbrus56

macOS has PF.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question