Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Jul 2009 23:37:44 +0200 (CEST)
From:      Juergen Lock <nox@jelal.kn-bremen.de>
To:        rondzierwa@comcast.net
Cc:        freebsd-emulation@freebsd.org
Subject:   vbox nat mode (was: Re: vbox driver)
Message-ID:  <200907052137.n65LbiSw045009@triton.kn-bremen.de>
In-Reply-To: <1269338285.441561246827349956.JavaMail.root@sz0128a.westchester.pa.mail.comcast.net>
References:  <1318580966.440881246827137142.JavaMail.root@sz0128a.westchester.pa.mail.comcast.net>

next in thread | previous in thread | raw e-mail | index | archive | help
In article <1269338285.441561246827349956.JavaMail.root@sz0128a.westchester.pa.mail.comcast.net> you write:
>ok, so if i use nat, i can ping and telnet to the bsd machine that is hosting 
>the vm. on the client, ipconfig -all returns an ethernet adapter with an ip 
>address of 10.0.2.15, and a gateway of 10.0.2.2. I can telnet to 10.0.2.2 
>(the bsd host), but from there I can't get back to the client (10.0.2.2) 
>
>there are no pseudo network interfaces on the host, and there are no 
>routes to the client defined, so i'm a little stymed as to how the telnet 
>connection from the client to the host is working. is this some sort of 
>one-way-networking, or am i missing a configuration step? 
>
>how can I connect to network resources that exist outside of the host 
>machine? More importantly, since the client that I am running is a 
>server of sorts, how can other machines on my local network access it? 
>
>ron. 

This might help:
	http://www.virtualbox.org/manual/UserManual.html#networking-nat
(I haven't tried nat portforward on FreeBSD vbox myself yet but I see
no reason why it shouldn't work.  And in nat mode 10.0.2.2 in the guest
is redirected to 127.1 on the host and the guest _should_ be able to
talk to outside hosts, just ping doesn't work...)

 Oh and btw nat mode works basically the same as slirp did in the old
days, i.e. translating (in this case) guest packets into host socket
calls and back.  (which also is the reason ping doesn't work since it
uses icmp which would need raw sockets which only work as root.)

 Good luck,
	Juergen



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200907052137.n65LbiSw045009>