createAccount [Create the Account and a User for the account] account accountname accounttype 0 domainid 1 email pfuser@gmail.com firstname pfuser lastname pfuserlastname username usernameparam password password id accountid name accountname listUsers [List the Created User in (3)] account accountname id userid createNetwork [Creating default network] zoneid globalzoneid networkOfferingId globalnetworkofferingid account accountname domainid 1 name portforwardingregressionnetwork displaytext portforwardingregressionnetwork id networkid deployVirtualMachine [Deploy Virtual Machine in the created Account] zoneid globalzoneid serviceofferingid globalserviceofferingid templateid globaltemplateid account accountname domainid 1 displayname PortForwarding-VM-1 group group1 networkids networkid id vmid name vmname ipaddress vmipaddress listRouters [List the Created DomR for the Account] zoneid globalzoneid account accountname domainid 1 id routerid publicip sourcenatpublicip associateIpAddress [Acquire a new IP Address for the Account] zoneid globalzoneid account accountname domainid 1 ipaddress nonsourcenatpublicip createPortForwardingRule 323 [Create Port Forwarding Rule from Source NAT ip address] privateip vmipaddress ipaddress sourcenatpublicip privateport 22 publicport 22 protocol tcp virtualmachineid vmid account accountname domainid 1 createPortForwardingRule 324 [Create Port Forwarding Rule from Non-Source NAT ip address] privateip vmipaddress ipaddress nonsourcenatpublicip privateport 22 publicport 22 protocol tcp virtualmachineid vmid account accountname domainid 1 createPortForwardingRule 325 [Create Port Forwarding Rule with TCP protocol] privateip vmipaddress ipaddress nonsourcenatpublicip privateport 23 publicport 23 protocol tcp virtualmachineid vmid account accountname domainid 1 createPortForwardingRule 326 [Create Port Forwarding Rule with UDP protocol] privateip vmipaddress ipaddress nonsourcenatpublicip privateport 345 publicport 345 protocol udp virtualmachineid vmid account accountname domainid 1 createPortForwardingRule 328 [Create Port Forwarding Rule with TCP protocol] privateip vmipaddress ipaddress nonsourcenatpublicip privateport 25 publicport 25 protocol tcp virtualmachineid vmid account accountname domainid 1 createPortForwardingRule 328 [Create Port Forwarding Rule with same parameters with UDP protocol] privateip vmipaddress ipaddress nonsourcenatpublicip privateport 25 publicport 25 protocol udp virtualmachineid vmid account accountname domainid 1 associateIpAddress [Acquire IP Address for the account (del pf rule exercise begin) ] zoneid globalzoneid account accountname domainid 1 ipaddress nonsourcenatpublicip1 createPortForwardingRule [Create Port Forwarding Rule with the acquired IP Address] privateip vmipaddress ipaddress nonsourcenatpublicip1 privateport 25 publicport 25 protocol udp virtualmachineid vmid account accountname domainid 1 id portforwardingruleid1 deletePortForwardingRule 329 [Delete Port Forwarding Rule] id portforwardingruleid1 account accountname domainid 1 listPortForwardingRules 329 [Try to list the Deleted Port Forwarding Rules (del pf rule exercise end)] true ipaddress nonsourcenatpublicip1 createPortForwardingRule [Create Port Forwarding Rule with the Non-Source NAT IP Address (del ip exercise begin)] privateip vmipaddress ipaddress nonsourcenatpublicip1 privateport 25 publicport 25 protocol udp virtualmachineid vmid account accountname domainid 1 id portforwardingruleid1 disassociateIpAddress [Release the Non-Source NAT IP Address] ipaddress nonsourcenatpublicip1 account accountname domainid 1 listPortForwardingRules 331 [Try to List the Port Forwarding Rules created from Released IP Address(del ip exercise end)] true ipaddress nonsourcenatpublicip1 createLoadBalancerRule [Create Load Balancing Rule Inorder to test PF-LBrule collision (pf-lb collision exercise begin)] privateip vmipaddress publicip sourcenatpublicip privateport 220 publicport 220 algorithm roundrobin name account accountname domainid 1 id lbid assignToLoadBalancerRule [Assign the Created LB Rule to the VM created in the Test] virtualmachineids vmid id lbid createPortForwardingRule [Create Port Forwarding Rule to test PF-LBrule collision (pf-lb rule collison exercise end)] 332 true privateip vmipaddress ipaddress sourcenatpublicip privateport 220 publicport 220 protocol tcp virtualmachineid vmid account accountname domainid 1 stopRouter [ Stop the DomR (add new pfrule when domR is stopped exercise begin)] id routerid createPortForwardingRule 336 [Create Port Forwarding Rule with the Source NAT IP Address] privateip vmipaddress ipaddress sourcenatpublicip privateport 336 publicport 336 protocol tcp virtualmachineid vmid account accountname domainid 1 startRouter [Start the DomR (add new pfrule when domR is stopped exercise end)] id routerid createPortForwardingRule 337 [Create Port Forwarding Rule with the Source NAT IP Address] privateip vmipaddress ipaddress sourcenatpublicip privateport 337 publicport 337 protocol tcp virtualmachineid vmid account accountname domainid 1 id portforwardingruleid_forremove stopRouter [Stop the DomR (del pf rule exercise begin)] id routerid deletePortForwardingRule 338 [Delete Port Forwarding Rule] id portforwardingruleid_forremove account accountname domainid 1 startRouter [Start the DomR (del pf rule exercise end)] id routerid deleteAccount [Delete Account as part of Clean Up] id accountid