Score:0

forward traffic from vm host to Minikube

my flag

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?

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.