2014-06-20 VirtualBoxでポートフォワーディングするときの注意点 VirtualBox 開発 ネットワーク Mac Vagrantとかでもポートフォワーディング多用してるっぽいし、いつもブリッジして甘えてた自分にさよならバイバイして、VirtualBoxにNATかませてビッグウェーブに乗ることにしました。 目標 localhostでポート指定してゲストOSのWebがみれて、SSHできるようにする。 NATの設定をする NATにしなくちゃ話が始まらない。 ではポートフォワーディングの設定をします。 SSH HTTP 悪い例 MacでやってるとMac標準のApacheが返事をして It Works! とか意味分かんない感じで言われると思います。 sudo apachectl stop でプロセスを殺してもあまり変わらず。代わりにシークレットウィンドウ立ち上げるのですが、これで