On 03/30/10 23:22, Kostyantyn wrote:
Check the User Manual for Virtual Box:
http://download.virtualbox.org/virtualbox/3.1.6/UserManual.pdf
Take a look at section 6.3:"VirtualBox.
A virtual machine with NAT enabled acts much like a real computer that
connects
to the Internet through a router. The ???router???, in this case, is the
VirtualBox network-
ing engine, which maps traf???c from and to the virtual machine
transparently. The
disadvantage of NAT mode is that, much like a private network behind a
router, the
virtual machine is invisible and unreachable from the outside internet;
you cannot run
a server this way unless you set up port forwarding (described below)."
I would suggest to manually set up your ip address and (or tune dhcp
server for VirtualHost).
Then should be easy to adjust your settings for iptables+squid.
Good suggestion, thank.
I think in my case it will be
VBoxManage setextradata "Linux Guest"
"VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestssh/Protocol" UDP
VBoxManage setextradata "Linux Guest"
"VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestssh/GuestPort" 445
VBoxManage setextradata "Linux Guest"
"VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestssh/HostPort" 445
since I want to mount samba cifs windows share.
I think CIFS on windows is using port 445 but I'm not sure on samba on Linux,
will it be 139 or 445?
or I just specify port number when mounting it:
mount -t cifs -o username=xx,password= //10.0.2.15:455/data
--
Joseph