Re: [問題] port forwarding
自問自答
VirtualBox內的網路配接卡需選擇NAT模式
然後到VirtualBox的安裝目錄下
建立 VBM.bat
內容為以下紅色字
VBoxManage setextradata host
"VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/Protocol" TCP
VBoxManage setextradata host
"VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/GuestPort" 22
VBoxManage setextradata host
"VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/HostPort" 2222
以上總共為三行,因BBS單行長度限制而切成六行
其中「host」為主機名稱,三行需相同
「TCP」為通訊協定
「22」為GuestPC之port
「2222」為HostPC之port
「ssh」為服務名稱,三行需相同,若需建立多個port forwarding
可以三行為一組,每組皆有不同之服務名稱
--
╲◣◢╲◣ ╲◣◢╲◣ ╲ ◣ ╲ ◣ ╲ ◣ ╲ ◣
█◣◢█ █◣◢█ ████ ███ ◥███ ███
█◥◤█ █◥◤█ █╲ ◣ █╲█ ╲ ╲█ █ █
█ █ █ █ █◥██ ◥███ ███ █ █
█ █ █ █ █ ╲█ ╲ ╲█ █ ◣ █╲█
◥█ ◥█ ◥█ ◥█ ◥████ ◥███ ◥███ ◥███
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 61.59.196.140
討論串 (同標題文章)
完整討論串 (本文為第 2 之 2 篇):