
Laut Doku wird folgendes gemacht um einen port per nat auf die vm zubekommen.
The [incomingtcp] Section
This section is used to configure TCP port forwarding for NAT. In this section, you can assign a port number to an IP address and port number on a virtual machine.
The following line shows the format used in this section.
8887 = 192.168.27.128:21
This example creates a mapping from port 8887 on the host to the IP address 192.168.27.128 and port 21. When this mapping is set and an external machine connects to the host at port 8887, the network packets are automatically forwarded to port 21 (the standard port for FTP) on the virtual machine with IP address 192.168.27.128.
Ich möchte aber das nicht auf allen ips gehorcht wird sondern nur auf einer bestimmten ip. Damit ich auf unterschiedlichen Ips den gleichen port benutzen kann.
Also ungefähr so:
212.212.212.212:8887 = 192.168.27.128:21
212.212.212.213:8887 = 192.168.27.129:21
Diese einträge so funktionieren nicht.
gibt es auch eine Möglichkeit zubestimmen welche IP die rausgehenden Pakete haben die durch nat durchgelaufen sind ?