Select host's NAT interface
Posted: 13. Jan 2008, 22:32
Hello,
Is there a way to select the host's interface (IP) on which the NAT will be performed ? I have a linux box with multiple interfaces and I do not want to NAT the HostPort on all interfaces.
I've been looking on the docs and the VirtualBox source code and I have found nothing like that.
Thank you,
G.
-- Later edit:
Well, it seems that VBox will use INADDR_ANY for NAT (source: src/VBox/Devices/Network/slirp/socket.c), function solisten():
addr.sin_addr.s_addr = INADDR_ANY;
Would it be very complicated to add an extra attribute like HostAddress in order to let the user choose the host's local IP for NAT ?
Is there a way to select the host's interface (IP) on which the NAT will be performed ? I have a linux box with multiple interfaces and I do not want to NAT the HostPort on all interfaces.
I've been looking on the docs and the VirtualBox source code and I have found nothing like that.
Thank you,
G.
-- Later edit:
Well, it seems that VBox will use INADDR_ANY for NAT (source: src/VBox/Devices/Network/slirp/socket.c), function solisten():
addr.sin_addr.s_addr = INADDR_ANY;
Would it be very complicated to add an extra attribute like HostAddress in order to let the user choose the host's local IP for NAT ?