Page 1 of 1
port forwards should listen on localhost only
Posted: 24. Sep 2008, 16:50
by bollin
Hi,
my port forwarding listens on all (*) interfaces. Is it possible to limit it to localhost only?
Cheers,
Torsten
Posted: 24. Sep 2008, 21:57
by frank
I fear this is not possible. The current NAT implementation is a complete user-space implementation which uses sockets to emulate TCP/IP connections.
Posted: 24. Sep 2008, 22:13
by bollin
Frank Mehnert wrote:I fear this is not possible. The current NAT implementation is a complete user-space implementation which uses sockets to emulate TCP/IP connections.
Yes, I see that src/VBox/Devices/Network/slirp/socket.c has a line
addr.sin_addr.s_addr = INADDR_ANY;
in function solisten() and that seems to be the problem.
Cheers,
Torsten