virtualbox操作技巧
virtualbox中创建NAT网卡
./VBoxManage.exe natnetwork add --netname NatNetwork --network "10.0.2.0/24"
批量创建端口转发
创建50个,如下
for suffix in {1..50}; do h_port=`echo $(($suffix + 200))`; ./VBoxManage.exe natnetwork modify --netname NatNetwork --port-forward-4 "Rule ${suffix}:tcp:[]:${h_port}:[10.0.2.${suffix}]:22"; done