Il 04/05/2011 10:54, Paride Desimone ha scritto:
Ciao,Ciao, se la macchina virtuale è in modalità NAT puoi usare il port forwarding, naturalmente a macchina spenta: (sezione 6.3.1 del manuale rel 4.0.6) VBoxManage modifyvm "VM name" --natpf1 "guestssh,tcp,,2222,,22" "With the above example, all TCP traffic arriving on port 2222 on any host interface will be forwarded to port 22 in the guest" la conferma sull'host è visibile con: # netstat -anp|grep 2222 tcp 0 0 0.0.0.0:2222 0.0.0.0:* LISTEN 7195/VirtualBox Questo introduce la regola nel file xml "VM name.vbox" <NAT> <DNS pass-domain="true" use-proxy="false" use-host-resolver="false"/> <Alias logging="false" proxy-_only_="false" use-same-ports="false"/> <Forwarding name="guestssh" proto="1" hostport="2222" guestport="22"/> </NAT> mentre per chi usa la GUI la modalità è accessibile dalle impostazioni della rete "Inoltro delle porte". Ciao, Antonio |