run under terminal:
VBoxManage setextradata "Guest_Name” “VBoxInternal/Devices/pcnet/0/LUN#0/Config/Rule_Name/UDP” 0
VBoxManage setextradata “Guest_Name” “VBoxInternal/Devices/pcnet/0/LUN#0/Config/Rule_Name/GuestPort” 80
VBoxManage setextradata “Guest_Name” “VBoxInternal/Devices/pcnet/0/LUN#0/Config/Rule_Name/HostPort” 8880
where
Guest_Name is the name of the Guest OS
Rule_Name is any name you like
8880 is the external port which will open on the host
80 is the port of the Guest OS that will forward to
pcnet is the NIC device selected in VM, not neccessary to be pcnet
有事就記: VirtualBox NAT port forwarding
VirtualBox - Configuring port forwarding with NAT - Aviran’s Place
VBoxManage setextradata "Guest_Name” “VBoxInternal/Devices/pcnet/0/LUN#0/Config/Rule_Name/UDP” 0
VBoxManage setextradata “Guest_Name” “VBoxInternal/Devices/pcnet/0/LUN#0/Config/Rule_Name/GuestPort” 80
VBoxManage setextradata “Guest_Name” “VBoxInternal/Devices/pcnet/0/LUN#0/Config/Rule_Name/HostPort” 8880
where
Guest_Name is the name of the Guest OS
Rule_Name is any name you like
8880 is the external port which will open on the host
80 is the port of the Guest OS that will forward to
pcnet is the NIC device selected in VM, not neccessary to be pcnet
有事就記: VirtualBox NAT port forwarding
VirtualBox - Configuring port forwarding with NAT - Aviran’s Place
沒有留言:
發佈留言