Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (19 sloc) 943 Bytes

Virtualbox / Win / Port forwarding

Recently I helped out a team which used Win + Virtualbox to manage certain legacy system in isolation.

This is where I've discovered a windows iptables alternative how to effectively perform port forwarding between Win7 Host and Virtualbox host-bridge network.

It relies on netsh utility availability in order to perform that.

netsh interface portproxy delete v4tov4 listenport=1111 listenaddress=192.168.2.1
netsh interface portproxy add v4tov4 listenport=1111 listenaddress=192.168.2.1 connectport=2222 connectaddress=my.host.com

Notes:

  • 1111 - port to listen to on Virtualbox host-bridge interface
  • 192.168.2.1 - Netsh commands for Interface IP address
  • 2222 - port to redirect to
  • my.host.com - the fqdn address to redirect traffic to

Vuala.