0

I have the following setup:

MAC Book Pro and Ubuntu 22.04, running on parallels.

Minikube installed on the ubuntu vm.

Some pods running in the Minikube cluster and configured an external service.

From my Ubuntu VM (where Minikube is running) I can reach the external

service via curl http://192.168.49.2:30000

From the Host System (Mac Book) I can't reach the external service.

10.211.55.6 is Interface enp0s5 of my Ubuntu Guest

192.168.49.1 is the Minikube Interface br-9b14b5e220d9 of my Ubuntu Guest

192.168.49.2:30000 would be the the address, the external service is reachable

I have created in Parallels port forwarding to my VM (that works).

So when I type in https//10.211.55.6:30000 in my Browser of my Host system,

i can see the packets on interface enp0s5 on my Ubuntu VM

Now I want to forward the incoming packets on enp0s5 to my service 192.168.49.2

I tried the follwing Iptable rule, but I didn't work:

iptables -t nat -A PREROUTING -i enp0s5 -p tcp --dport 30000 -j DNAT --to-destination 192.168.49.2:30000

Does anyone know what's missing?

sangul
  • 1
  • 2

0 Answers0