<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>vCloud Air &#8211; Blog of Kliment Andreev &#8211; A place so I won&#039;t forget things</title>
	<atom:link href="https://blog.andreev.it/category/cloud/vcloud-air/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.andreev.it</link>
	<description></description>
	<lastBuildDate>Sun, 27 Sep 2020 14:36:39 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>FreeBSD, vCloud Air: FreeBSD 10.1 on vCloud Air</title>
		<link>https://blog.andreev.it/2015/02/freebsd-10-1-on-vcloud-air/</link>
					<comments>https://blog.andreev.it/2015/02/freebsd-10-1-on-vcloud-air/#respond</comments>
		
		<dc:creator><![CDATA[Kliment Andreev]]></dc:creator>
		<pubDate>Tue, 17 Feb 2015 16:42:33 +0000</pubDate>
				<category><![CDATA[Cloud]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[vCloud Air]]></category>
		<category><![CDATA[freebsd]]></category>
		<guid isPermaLink="false">http://blog.iandreev.com/?p=1764</guid>

					<description><![CDATA[In this post I&#8217;ll describe how to install FreeBSD 10.1 and make it available&#8230;]]></description>
										<content:encoded><![CDATA[<div id="bsf_rt_marker"></div><p>In this post I&#8217;ll describe how to install FreeBSD 10.1 and make it available with a public IP on <a href="http://vcloud.vmware.com" target="_blank" rel="noopener noreferrer">vCloud Air</a> platform. Unlike CentOS, Ubuntu and Windows, FreeBSD doesn&#8217;t come as a prepackaged VM in the public catalogs.</p>
<h1>Create a VM</h1>
<p>First, go to <a href="http://vcloud.vmware.com" target="_blank" rel="noopener noreferrer">http://vcloud.vmware.com</a> and log in or sign up for a new account. When you log in, select your data center where you want the VM to be provisioned. Then, click on the <strong>Virtual Machines</strong> tab. </p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2015/02/P050-01.png"><img fetchpriority="high" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2015/02/P050-01.png" alt="" width="950" height="370" class="aligncenter size-full wp-image-7194" srcset="https://blog.andreev.it/wp-content/uploads/2015/02/P050-01.png 950w, https://blog.andreev.it/wp-content/uploads/2015/02/P050-01-300x117.png 300w, https://blog.andreev.it/wp-content/uploads/2015/02/P050-01-768x299.png 768w, https://blog.andreev.it/wp-content/uploads/2015/02/P050-01-585x228.png 585w" sizes="(max-width: 950px) 100vw, 950px" /></a><br />
Click <strong>Create a VM</strong> or <strong>Create your first virtual machine</strong> button and then choose <strong>Create My Virtual Machine from Scratch</strong>.</p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2015/02/P050-02.png"><img decoding="async" src="https://blog.andreev.it/wp-content/uploads/2015/02/P050-02.png" alt="" width="811" height="557" class="aligncenter size-full wp-image-7195" srcset="https://blog.andreev.it/wp-content/uploads/2015/02/P050-02.png 811w, https://blog.andreev.it/wp-content/uploads/2015/02/P050-02-300x206.png 300w, https://blog.andreev.it/wp-content/uploads/2015/02/P050-02-768x527.png 768w, https://blog.andreev.it/wp-content/uploads/2015/02/P050-02-585x402.png 585w" sizes="(max-width: 811px) 100vw, 811px" /></a><br />
A new tab will open because FreeBSD is not part of the VMware catalog. Once there click on <strong>Build New vApp</strong>.</p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2015/02/P050-03.png"><img decoding="async" src="https://blog.andreev.it/wp-content/uploads/2015/02/P050-03.png" alt="" width="1262" height="625" class="aligncenter size-full wp-image-7196" srcset="https://blog.andreev.it/wp-content/uploads/2015/02/P050-03.png 1262w, https://blog.andreev.it/wp-content/uploads/2015/02/P050-03-300x149.png 300w, https://blog.andreev.it/wp-content/uploads/2015/02/P050-03-1024x507.png 1024w, https://blog.andreev.it/wp-content/uploads/2015/02/P050-03-768x380.png 768w, https://blog.andreev.it/wp-content/uploads/2015/02/P050-03-1170x579.png 1170w, https://blog.andreev.it/wp-content/uploads/2015/02/P050-03-585x290.png 585w" sizes="(max-width: 1262px) 100vw, 1262px" /></a><br />
A vApp is a container of VMs. For example, you can create a vApp consisting of two VMs, one database and one web front-end VM. In our case, we&#8217;ll have one VM. Enter the name of the vApp and fill out the rest of the form. Most likely, you&#8217;ll leave the defaults so click <strong>Next</strong>. </p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2015/02/P050-04.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2015/02/P050-04.png" alt="" width="972" height="637" class="aligncenter size-full wp-image-7197" srcset="https://blog.andreev.it/wp-content/uploads/2015/02/P050-04.png 972w, https://blog.andreev.it/wp-content/uploads/2015/02/P050-04-300x197.png 300w, https://blog.andreev.it/wp-content/uploads/2015/02/P050-04-768x503.png 768w, https://blog.andreev.it/wp-content/uploads/2015/02/P050-04-585x383.png 585w" sizes="(max-width: 972px) 100vw, 972px" /></a><br />
The next screen asks you where are the installation files for the OS. Since we are using FreeBSD and it&#8217;s not in the public VMware catalog and we don&#8217;t have our catalog yet, we just have to click <strong>New Virtual Machine</strong>. </p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2015/02/P050-05.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2015/02/P050-05.png" alt="" width="973" height="640" class="aligncenter size-full wp-image-7198" srcset="https://blog.andreev.it/wp-content/uploads/2015/02/P050-05.png 973w, https://blog.andreev.it/wp-content/uploads/2015/02/P050-05-300x197.png 300w, https://blog.andreev.it/wp-content/uploads/2015/02/P050-05-768x505.png 768w, https://blog.andreev.it/wp-content/uploads/2015/02/P050-05-585x385.png 585w" sizes="(max-width: 973px) 100vw, 973px" /></a><br />
This will bring you to this screen.</p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2015/02/P050-06.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2015/02/P050-06.png" alt="" width="682" height="638" class="aligncenter size-full wp-image-7199" srcset="https://blog.andreev.it/wp-content/uploads/2015/02/P050-06.png 682w, https://blog.andreev.it/wp-content/uploads/2015/02/P050-06-300x281.png 300w, https://blog.andreev.it/wp-content/uploads/2015/02/P050-06-585x547.png 585w" sizes="(max-width: 682px) 100vw, 682px" /></a></p>
<p>Enter the name of the virtual machine and then the computer name. Both can be random descriptions in this case. If you use a VM from the VMware catalog, you can specify the host name in the computer name field. Click <strong>Other</strong> for the <strong>Operating System Family</strong> and specify <strong>FreeBSD (64-bit)</strong>. Choose how many CPUs and RAM you need and click <strong>Next</strong>. For the storage policy, choose <strong>Standard</strong> or <strong>Standard-SSD</strong>.</p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2015/02/P050-07.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2015/02/P050-07.png" alt="" width="977" height="637" class="aligncenter size-full wp-image-7200" srcset="https://blog.andreev.it/wp-content/uploads/2015/02/P050-07.png 977w, https://blog.andreev.it/wp-content/uploads/2015/02/P050-07-300x196.png 300w, https://blog.andreev.it/wp-content/uploads/2015/02/P050-07-768x501.png 768w, https://blog.andreev.it/wp-content/uploads/2015/02/P050-07-585x381.png 585w" sizes="(max-width: 977px) 100vw, 977px" /></a></p>
<p>Click <strong>Next</strong> and select the <strong>default-routed-network</strong>. For the <strong>IP assignment</strong> I choose <strong>Static &#8211; Manual</strong> which means I&#8217;ll have to specify the IP. If you choose <strong>Static &#8211; Pool</strong>, vCloud will assign an IP from the pool. Your best bet is to use <strong>Static &#8211; Manual</strong>. vCloud can&#8217;t interact that well with BSD, so I wasn&#8217;t able to assign an IP from the static pool. Click <strong>Next</strong>, review and then&#8230;<br />
<a href="https://blog.andreev.it/wp-content/uploads/2015/02/P050-08.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2015/02/P050-08.png" alt="" width="966" height="319" class="aligncenter size-full wp-image-7201" srcset="https://blog.andreev.it/wp-content/uploads/2015/02/P050-08.png 966w, https://blog.andreev.it/wp-content/uploads/2015/02/P050-08-300x99.png 300w, https://blog.andreev.it/wp-content/uploads/2015/02/P050-08-768x254.png 768w, https://blog.andreev.it/wp-content/uploads/2015/02/P050-08-585x193.png 585w" sizes="(max-width: 966px) 100vw, 966px" /></a></p>
<p>&#8230;click <strong>Finish</strong>. </p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2015/02/P050-09.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2015/02/P050-09.png" alt="" width="969" height="632" class="aligncenter size-full wp-image-7202" srcset="https://blog.andreev.it/wp-content/uploads/2015/02/P050-09.png 969w, https://blog.andreev.it/wp-content/uploads/2015/02/P050-09-300x196.png 300w, https://blog.andreev.it/wp-content/uploads/2015/02/P050-09-768x501.png 768w, https://blog.andreev.it/wp-content/uploads/2015/02/P050-09-585x382.png 585w" sizes="(max-width: 969px) 100vw, 969px" /></a></p>
<p>If you click <strong>Home</strong>, you&#8217;ll see that the VM is being created. It takes about a minute or two. </p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2015/02/P050-10.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2015/02/P050-10.png" alt="" width="495" height="376" class="aligncenter size-full wp-image-7203" srcset="https://blog.andreev.it/wp-content/uploads/2015/02/P050-10.png 495w, https://blog.andreev.it/wp-content/uploads/2015/02/P050-10-300x228.png 300w" sizes="(max-width: 495px) 100vw, 495px" /></a></p>
<h1>Create a catalog</h1>
<p>You don&#8217;t have to wait for the build to finish. Click <strong>Catalogs</strong>, then <strong>default-catalog</strong>, then <strong>Media &#038; Other</strong> and click the <strong>Upload</strong> icon. We&#8217;ll upload the FreeBSD ISO image so we can install the VM from scratch. </p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2015/02/P050-11.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2015/02/P050-11.png" alt="" width="565" height="240" class="aligncenter size-full wp-image-7204" srcset="https://blog.andreev.it/wp-content/uploads/2015/02/P050-11.png 565w, https://blog.andreev.it/wp-content/uploads/2015/02/P050-11-300x127.png 300w" sizes="(max-width: 565px) 100vw, 565px" /></a></p>
<div style="border:1px solid red; padding:16px;">
<p style="text-align:center;"><strong><span style="color:#800000;">IMPORTANT</span> </strong></p>
<p>If you get an error that your browser is not supported, make sure that <strong>Java Deployment Toolkit</strong>.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2015/02/P050-12.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2015/02/P050-12.png" alt="" width="800" height="72" class="aligncenter size-full wp-image-7205" srcset="https://blog.andreev.it/wp-content/uploads/2015/02/P050-12.png 800w, https://blog.andreev.it/wp-content/uploads/2015/02/P050-12-300x27.png 300w, https://blog.andreev.it/wp-content/uploads/2015/02/P050-12-768x69.png 768w, https://blog.andreev.it/wp-content/uploads/2015/02/P050-12-585x53.png 585w" sizes="(max-width: 800px) 100vw, 800px" /></a>
</p>
</div>
<p>When this box shows up, specify the URL for the BSD iso and give it some description. Paste this in the URL field, then click OK. You will be prompted for your username and password for the vCloud subscription. </p>
<p>ftp://ftp.freebsd.org/pub/FreeBSD/releases/amd64/amd64/ISO-IMAGES/10.1/FreeBSD-10.1-RELEASE-amd64-disc1.iso</p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2015/02/P050-13.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2015/02/P050-13.png" alt="" width="805" height="467" class="aligncenter size-full wp-image-7206" srcset="https://blog.andreev.it/wp-content/uploads/2015/02/P050-13.png 805w, https://blog.andreev.it/wp-content/uploads/2015/02/P050-13-300x174.png 300w, https://blog.andreev.it/wp-content/uploads/2015/02/P050-13-768x446.png 768w, https://blog.andreev.it/wp-content/uploads/2015/02/P050-13-585x339.png 585w" sizes="(max-width: 805px) 100vw, 805px" /></a></p>
<p>It will take some time, about 10 mins. You can see the progress, but the progress bars are kind of not in sync. You can click refresh but you&#8217;ll see no progress. Just wait about 10-15 mins. See below.</p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2015/02/P050-14.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2015/02/P050-14.png" alt="" width="919" height="348" class="aligncenter size-full wp-image-7207" srcset="https://blog.andreev.it/wp-content/uploads/2015/02/P050-14.png 919w, https://blog.andreev.it/wp-content/uploads/2015/02/P050-14-300x114.png 300w, https://blog.andreev.it/wp-content/uploads/2015/02/P050-14-768x291.png 768w, https://blog.andreev.it/wp-content/uploads/2015/02/P050-14-585x222.png 585w" sizes="(max-width: 919px) 100vw, 919px" /></a></p>
<p>You can also use a tool called ovftool which can be downloaded from VMware site. The syntax to upload an ISO image is:</p>
<pre class="brush: bash; title: ; notranslate">
ovftool --sourceType=ISO bsd10.iso &quot;vcloud://username@mail.com:secret@us-california-1-3.vchs.vmware.com?org=aebc198-667efde-xy76&amp;vdc=VDC&amp;catalog=My Catalog&amp;media=bsd10.iso&quot;
</pre>
<p>This will upload the file called bsd10.iso which is in the same folder as ovftool to my subscription that&#8217;s in us-California-1-3.vchs.vmware.com, with org identifier aevc198&#8230;.My datacenter is called VDC and my catalog is called My Catalog. I log as username@mail.com with password secret.</p>
<h1>Install FreeBSD</h1>
<p>Once the upload completes, go back to <strong>My Cloud</strong> tab, then <strong>VMs</strong>, select the VM and map the iso from the toolbar (click the icon that looks like a CD). </p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2015/02/P050-15.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2015/02/P050-15.png" alt="" width="573" height="194" class="aligncenter size-full wp-image-7208" srcset="https://blog.andreev.it/wp-content/uploads/2015/02/P050-15.png 573w, https://blog.andreev.it/wp-content/uploads/2015/02/P050-15-300x102.png 300w" sizes="(max-width: 573px) 100vw, 573px" /></a></p>
<p>Select the ISO and click <strong>Insert</strong>.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2015/02/P050-16.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2015/02/P050-16.png" alt="" width="895" height="383" class="aligncenter size-full wp-image-7209" srcset="https://blog.andreev.it/wp-content/uploads/2015/02/P050-16.png 895w, https://blog.andreev.it/wp-content/uploads/2015/02/P050-16-300x128.png 300w, https://blog.andreev.it/wp-content/uploads/2015/02/P050-16-768x329.png 768w, https://blog.andreev.it/wp-content/uploads/2015/02/P050-16-585x250.png 585w" sizes="(max-width: 895px) 100vw, 895px" /></a></p>
<p>At this point, you can power up the VM and open the console. The installer will kick in and you have to specify the IP manually, gateway IP, enter the hostname, DNS servers, root password, time zone etc&#8230; Standard FreeBSD installation. </p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2015/02/P050-17.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2015/02/P050-17.png" alt="" width="710" height="306" class="aligncenter size-full wp-image-7210" srcset="https://blog.andreev.it/wp-content/uploads/2015/02/P050-17.png 710w, https://blog.andreev.it/wp-content/uploads/2015/02/P050-17-300x129.png 300w, https://blog.andreev.it/wp-content/uploads/2015/02/P050-17-585x252.png 585w" sizes="(max-width: 710px) 100vw, 710px" /></a></p>
<p>Once the install completes, reboot, log in as root and verify that you have an IP assigned. Don&#8217;t try to ping the gateway, you won&#8217;t be able to do so. </p>
<h1>Install VMware Tools</h1>
<p>If everything looks OK, we can install the <strong>VMware Tools</strong>. Right click the VM, and choose to install the tools. </p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2015/02/P050-18.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2015/02/P050-18.png" alt="" width="622" height="410" class="aligncenter size-full wp-image-7211" srcset="https://blog.andreev.it/wp-content/uploads/2015/02/P050-18.png 622w, https://blog.andreev.it/wp-content/uploads/2015/02/P050-18-300x198.png 300w, https://blog.andreev.it/wp-content/uploads/2015/02/P050-18-585x386.png 585w" sizes="(max-width: 622px) 100vw, 622px" /></a></p>
<p>Nothing will happen, but this will map the CD with VMware Tools installation. You&#8217;ll have to install the tools manually. Open the console, log as root and type the following. </p>
<pre class="brush: bash; title: ; notranslate">
mount -t cd9660 /dev/cd0 /mnt
cd /tmp
tar xzf /mnt/vmware-freebsd-tools.tar.gz
cd vmware-tools-distrib
./vmware-install.pl
</pre>
<p>If you receive an error that perl can&#8217;t be found, install perl first.</p>
<pre class="brush: bash; title: ; notranslate">
pkg install perl5.16
</pre>
<p>Reboot after.</p>
<h1>Configure the NAT &#038; Firewall for outside access</h1>
<p>For this you will need an external IP. Each <strong>vCloud Air</strong> subscription comes with external edge gateway, but this is not your external IP. You&#8217;ll have to add one (extra charge). Go back to the <strong>vCloud OnDemand</strong> portal (not <strong>vCloud Director</strong>) and click on <strong>Gateways</strong>. Then click on <strong>Public IPs</strong>. Add an external IP and copy it to the clipboard. </p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2015/02/P050-19.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2015/02/P050-19.png" alt="" width="754" height="328" class="aligncenter size-full wp-image-7212" srcset="https://blog.andreev.it/wp-content/uploads/2015/02/P050-19.png 754w, https://blog.andreev.it/wp-content/uploads/2015/02/P050-19-300x131.png 300w, https://blog.andreev.it/wp-content/uploads/2015/02/P050-19-585x254.png 585w" sizes="(max-width: 754px) 100vw, 754px" /></a></p>
<p>This will take some time, 3-5 mins. We don&#8217;t have to do anything inside our VM. This external IP can serve multiple VMs behind the NAT. Same as your internal network behind one public IP from your internet provider. </p>
<p>For this example, I&#8217;ll create the NAT for the internal network and allow the VM to freely communicate with the outside world (access to updates, patches, ports etc.) and then allow port 22 (ssh) to hit our VM. </p>
<div style="border:1px solid red; padding:16px;">
<p style="text-align:center;"><strong><span style="color:#800000;">IMPORTANT</span> </strong></p>
<p>You can create the NAT and Firewall rules at both vCloud OnDemand and vCloud Director portals. The dialog boxes are slightly different, but the information asked is the same.</strong> plugin is enabled.
</p>
</div>
<p>We&#8217;ll create the rules in <strong>vCloud Director</strong>. Anyway, that&#8217;s the place where you are going to spend most of the time. Click on <strong>Administration</strong> tab and then on your datacenter. </p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2015/02/P050-20.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2015/02/P050-20.png" alt="" width="639" height="168" class="aligncenter size-full wp-image-7213" srcset="https://blog.andreev.it/wp-content/uploads/2015/02/P050-20.png 639w, https://blog.andreev.it/wp-content/uploads/2015/02/P050-20-300x79.png 300w, https://blog.andreev.it/wp-content/uploads/2015/02/P050-20-585x154.png 585w" sizes="(max-width: 639px) 100vw, 639px" /></a><br />
Click the <strong>Edge Gateway</strong>, right-click the <strong>gateway</strong> and choose <strong>Edge Gateway Services</strong>. </p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2015/02/P050-21.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2015/02/P050-21.png" alt="" width="647" height="167" class="aligncenter size-full wp-image-7214" srcset="https://blog.andreev.it/wp-content/uploads/2015/02/P050-21.png 647w, https://blog.andreev.it/wp-content/uploads/2015/02/P050-21-300x77.png 300w, https://blog.andreev.it/wp-content/uploads/2015/02/P050-21-585x151.png 585w" sizes="(max-width: 647px) 100vw, 647px" /></a></p>
<p>This box will show up. Click <strong>NAT</strong> first and then click <strong>Add SNAT</strong>.<br />
In my case it looks like this. The hidden text is my external IP.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2015/02/P050-22.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2015/02/P050-22.png" alt="" width="567" height="367" class="aligncenter size-full wp-image-7215" srcset="https://blog.andreev.it/wp-content/uploads/2015/02/P050-22.png 567w, https://blog.andreev.it/wp-content/uploads/2015/02/P050-22-300x194.png 300w" sizes="(max-width: 567px) 100vw, 567px" /></a></p>
<p>This means that all VMs on my internal subnet will use one external IP for outbound access. </p>
<p>Now, let&#8217;s create another rule, this time click <strong>Add DNAT</strong>. Fill out as below. The hidden part is my external IP. </p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2015/02/P050-23.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2015/02/P050-23.png" alt="" width="524" height="541" class="aligncenter size-full wp-image-7216" srcset="https://blog.andreev.it/wp-content/uploads/2015/02/P050-23.png 524w, https://blog.andreev.it/wp-content/uploads/2015/02/P050-23-291x300.png 291w" sizes="(max-width: 524px) 100vw, 524px" /></a><br />
This rule maps port 22 on the external edge interface with my particular VM on 192.168.109.2. Mind that these rules are for the NAT. The ports are still closed on the firewall, so we&#8217;ll have to poke some holes there next. </p>
<p>Click on the <strong>Firewall</strong> tab and then click <strong>Add</strong>. This rule will allow access to all internal VMs to the outside world. </p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2015/02/P050-24.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2015/02/P050-24.png" alt="" width="394" height="466" class="aligncenter size-full wp-image-7217" srcset="https://blog.andreev.it/wp-content/uploads/2015/02/P050-24.png 394w, https://blog.andreev.it/wp-content/uploads/2015/02/P050-24-254x300.png 254w" sizes="(max-width: 394px) 100vw, 394px" /></a></p>
<p>The next rule will open the port 22 (ssh) on the edge gateway. The NAT rule will take care of the destination. Make sure for the destination that you enter the external IP, not the internal one. At this point you are all set and you can access your VM from outside using a ssh client.</p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2015/02/P050-25.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2015/02/P050-25.png" alt="" width="398" height="465" class="aligncenter size-full wp-image-7218" srcset="https://blog.andreev.it/wp-content/uploads/2015/02/P050-25.png 398w, https://blog.andreev.it/wp-content/uploads/2015/02/P050-25-257x300.png 257w" sizes="(max-width: 398px) 100vw, 398px" /></a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.andreev.it/2015/02/freebsd-10-1-on-vcloud-air/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
