PunCha (PCH)

编程研究

Configure port forwarding with NAT

From: http://scriptogr.am/kevinshen/post/configure-port-forwarding-with-nat

terminology:

  • guest: virtual machine like Ubantu

  • host: physical machine where virtual machine is running on, e.g. Windows 7

  • virtual machine app: VMware, Virtual Box etc.

with NAT configuration:

guest lives in a private network virtual machine app created. host and other guest can't access the service it exposes. use port forwarding will let virtual machine app listens to the certain ports on the host and forward to guest. we will utilize it to expose same port on both host and guest

Steps:

  1. create a rule in the virtual machine application, set Host IP: 127.0.0.1, set HostPort: 3000, set Guest Port: 3000
  2. in guest, listen to port 3000.
  3. in host, open a web browser, type: localhost:3000. it will send get request to guest
阅读更多
个人分类: 运维
上一篇Paypal开源nodejs框架研究(二)KrakenJs之Enrouten
下一篇Thrift实践:(一)安装 -- 未完待续
想对作者说点什么? 我来说一句

nat_and_ip_masquerade.pdf

2009年09月01日 358KB 下载

没有更多推荐了,返回首页

关闭
关闭