Skip to content

Edit network port forward rules #81

Description

@HeroCC

Hello!
I'd like to be able to manipulate port forwarding rules on an OVF I have. However, I don't see a way to do it through cot, is this something that can be added? Or is there already a way to do it? The forward doesn't show up in cot info.
This can be accomplished with VBoxManage, but the system I'm running the build on doesn't have virtualbox installed, and there doesn't appear to be a direct download for just the manage utility.
When I export an OVA with forwarded ports on virtualbox, the network area looks something like this:

  <ovf:NetworkSection>
    <ovf:Info>Logical networks used in the package</ovf:Info>
    <ovf:Network ovf:name="NAT">
      <ovf:Description>Logical network used by this appliance.</ovf:Description>
    </ovf:Network>
  </ovf:NetworkSection>
...
        <ovf:Network>
          <ovf:Adapter slot="0" enabled="true" MACAddress="<snip>" type="82540EM">
            <ovf:DisabledModes>
              <ovf:BridgedInterface name="<snip>" />
              <ovf:InternalNetwork name="intnet" />
              <ovf:NATNetwork name="NatNetwork" />
            </ovf:DisabledModes>
            <ovf:NAT>
              <ovf:Forwarding name="Rule 1" proto="1" hostport="9080" guestport="9080" />
            </ovf:NAT>
          </ovf:Adapter>
        </ovf:Network>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions