<?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>Kliment Andreev</title>
	<atom:link href="https://www.andreev.it/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.andreev.it</link>
	<description>Something about me...</description>
	<lastBuildDate>Sat, 07 Jan 2023 14:06:22 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>AWS: Web Servers in HA config behind Application Load Balancer and Web Application Firewall (WAF)</title>
		<link>https://www.andreev.it/2022/08/10/web-servers-in-ha-config-behind-application-load-balancer-and-web-application-firewall/</link>
					<comments>https://www.andreev.it/2022/08/10/web-servers-in-ha-config-behind-application-load-balancer-and-web-application-firewall/#respond</comments>
		
		<dc:creator><![CDATA[klimenta]]></dc:creator>
		<pubDate>Wed, 10 Aug 2022 21:02:31 +0000</pubDate>
				<category><![CDATA[Blog]]></category>
		<guid isPermaLink="false">https://www.andreev.it/?p=1</guid>

					<description><![CDATA[As the title says, I&#8217;ll create two web servers in a private subnet, put an Application Load Balancer in front and protect the content with Web Application Firewall (WAF). In addition, I&#8217;ll create a bastion host so I can access the web servers using SSH. Web Servers are not reachable from the Internet. Elastic IP [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>As the title says, I&#8217;ll create two web servers in a private subnet, put an Application Load Balancer in front and protect the content with Web Application Firewall (WAF). In addition, I&#8217;ll create a bastion host so I can access the web servers using SSH. Web Servers are not reachable from the Internet. </p>
<h1>Elastic IP</h1>
<p>First thing to do is to create an Elastic IP for the NAT gateway. NAT gateway is needed if you want to give the Web Servers Internet access so they can be patched. Go to <strong>Elastic IPs</strong> under <strong>Network &#038; Security</strong> in EC2 menu and click on <strong>Allocate Elastic IP address</strong> in the top right corner. Accept the defaults and click <strong>Allocate</strong>.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2021/12/P157-01.png"><img decoding="async" loading="lazy" src="https://blog.andreev.it/wp-content/uploads/2021/12/P157-01.png" alt="" width="826" height="763" class="aligncenter size-full wp-image-8994" /></a></p>
<h1>VPC</h1>
<p>We&#8217;ll create a VPC with two public and two private subnets. Minimum two public subnets are needed for the Application Load Balancer. You can&#8217;t create an ALB with one public subnet.</p>
<p>This is just a sample. The original blog post is <a href="https://blog.andreev.it/2021/12/aws-web-servers-in-ha-config-behind-application-load-balancer-and-web-application-firewall-waf/" rel="noopener" target="_blank">here</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.andreev.it/2022/08/10/web-servers-in-ha-config-behind-application-load-balancer-and-web-application-firewall/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Azure: Migrate VMware VMs and physical servers using Azure Migrate: Server Assessment and Server Migration</title>
		<link>https://www.andreev.it/2016/06/06/azure_migrate/</link>
					<comments>https://www.andreev.it/2016/06/06/azure_migrate/#respond</comments>
		
		<dc:creator><![CDATA[klimenta]]></dc:creator>
		<pubDate>Mon, 06 Jun 2016 11:27:56 +0000</pubDate>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Metal]]></category>
		<category><![CDATA[Mining]]></category>
		<category><![CDATA[Polymer]]></category>
		<guid isPermaLink="false">http://demo.goodlayers.com/infinite/?p=1313</guid>

					<description><![CDATA[If you have some on-prem workloads (either virtual or physical servers) and you want to migrate them to Azure, this post might be for you. I&#8217;ll describe how to migrate these servers in Azure using Azure Migrate and Azure Site Recovery. These tools (actual VMs) will have to be installed in your on-prem environment and [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>If you have some on-prem workloads (either virtual or physical servers) and you want to migrate them to Azure, this post might be for you. I&#8217;ll describe how to migrate these servers in Azure using Azure Migrate and Azure Site Recovery. These tools (actual VMs) will have to be installed in your on-prem environment and they&#8217;ll do the heavy lifting for you. Before I begin, there are some pre-requisites. You&#8217;ll need a valid Azure subscription, supported VMware vCenter (v5.5 and above) and resources to install two VMs. On my ESXi host, using thin provisioned storage, I needed 8 CPUs, 32GB RAM and 20GB-80GB thin provisioned storage for <strong>Azure Migrate: Server Assessment</strong> and 8CPUs, 32GB RAM and 40GB disk for <strong>Azure Migrate: Server Migration</strong> tool. It will take much more space if you have a lots of VMs. I have about 15. You&#8217;ll also need a VNET(s) and subnet(s) where you&#8217;ll migrate the VMs.<br />
I&#8217;ll configure that first. I&#8217;ll give you an example of how to migrate a two-tier Windows application (web server + MS SQL server) and a WordPress server running on two CentOS 7 servers.</p>
<h1>Azure VNET/subnet</h1>
<p>Log to your Azure subscription and create a resource group for the migration. I&#8217;ll name mine <strong>rgMigration</strong>.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2019/09/P136-01.jpg"><img decoding="async" loading="lazy" src="https://blog.andreev.it/wp-content/uploads/2019/09/P136-01.jpg" alt="" width="732" height="374" class="aligncenter size-full wp-image-8700" /></a><br />
Then create a new VNET and a subnet where you&#8217;ll migrate your VMs. You can use the same subnets as on-prem but only if you don&#8217;t have a ExpressRoute or VPN between on-prem and Azure. In my case, I have a <a href="https://blog.andreev.it/?p=3250" rel="noopener noreferrer" target="_blank">VPN between my home-lab and Azure</a>, so I have to choose a different subnet. I named my VNET <strong>vnetMigration</strong> and the subnet <strong>subServers</strong>.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2019/09/P136-02.jpg"><img decoding="async" loading="lazy" src="https://blog.andreev.it/wp-content/uploads/2019/09/P136-02.jpg" alt="" width="298" height="535" class="aligncenter size-full wp-image-8701" /></a></p>
<h1>Azure Migrate</h1>
<p>Once completed, in the Azure portal in the middle upper search field, start typing <strong>migrate </strong>and select <strong>Azure Migrate</strong>.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2019/09/P136-03.jpg"><img decoding="async" loading="lazy" src="https://blog.andreev.it/wp-content/uploads/2019/09/P136-03.jpg" alt="" width="590" height="110" class="aligncenter size-full wp-image-8702" /></a><br />
You&#8217;ll be presented with different options to migrate data, SQL, servers etc. Choose this one that says <strong>migrate servers</strong>.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2019/09/P136-04.jpg"><img decoding="async" loading="lazy" src="https://blog.andreev.it/wp-content/uploads/2019/09/P136-04.jpg" alt="" width="347" height="341" class="aligncenter size-full wp-image-8703" /></a><br />
Click on <strong>Add tool(s)</strong>.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2019/09/P136-05.jpg"><img decoding="async" loading="lazy" src="https://blog.andreev.it/wp-content/uploads/2019/09/P136-05.jpg" alt="" width="335" height="326" class="aligncenter size-full wp-image-8704" /></a><br />
You&#8217;ll be prompted to choose the subscription, the resource group, name the project and choose the region. Use whatever suits your needs and click <strong>Next</strong>.</p>
<p>This is just a sample. The original post is <a href="https://blog.andreev.it/2019/09/azure-migrate-vmware-vms-and-physical-servers-using-azure-migrate-server-assessment-and-server-migration/" rel="noopener" target="_blank">here</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.andreev.it/2016/06/06/azure_migrate/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>pfSense: Mobile VPN clients (Windows 10, iPhone, Ubuntu Linux, Mac OS X, Android, Linux CLI and FreeBSD)</title>
		<link>https://www.andreev.it/2016/06/06/pfsense/</link>
					<comments>https://www.andreev.it/2016/06/06/pfsense/#respond</comments>
		
		<dc:creator><![CDATA[klimenta]]></dc:creator>
		<pubDate>Mon, 06 Jun 2016 11:27:49 +0000</pubDate>
				<category><![CDATA[Masonry]]></category>
		<category><![CDATA[Article]]></category>
		<category><![CDATA[Constructions]]></category>
		<guid isPermaLink="false">http://demo.goodlayers.com/infinite/?p=1669</guid>

					<description><![CDATA[Lately, I was playing with pfSense trying to access my internal resources from outside (mostly my Plex server) so I made this tutorial on how to access my home network. I&#8217;ve used the official howto from pfSense, but it&#8217;s a little bit outdated and it doesn&#8217;t cover Linux/FreeBSD non-GUI, so there are some changes that [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>Lately, I was playing with pfSense trying to access my internal resources from outside (mostly my <a href="https://www.plex.tv/" target="_blank" rel="noopener noreferrer">Plex </a>server) so I made this tutorial on how to access my home network. I&#8217;ve used the official <a href="https://doc.pfsense.org/index.php/IKEv2_with_EAP-MSCHAPv2" target="_blank" rel="noopener noreferrer">howto </a>from pfSense, but it&#8217;s a little bit outdated and it doesn&#8217;t cover Linux/FreeBSD non-GUI, so there are some changes that I&#8217;ve made. I&#8217;ll be using <strong>IPsec IKEv2 AES256/SHA256/MSChapV2/DH14</strong> on the pfSense side (strongSwan IPsec implementation) and the clients will use various VPN clients.<br />
There are a lot of different versions of VPN IPsec implementation, so even the slightest updates can make the VPN fail. I&#8217;ll write the version of the server/client for each configuration, so you&#8217;ll know that it works. If you are using different versions of the OS or the client, it might not work. I will use only one pfSense config for all mobile clients. Unfortunately, pfSense does not support multiple mobile clients configs as of 2.4.2.<br />
How this works? Each client will receive a certificate and a username and a password. The certificate is the same for all clients, but the username/password is not.</p>
<h1>pfSense 2.4.2</h1>
<p>In order for the VPN config to work we&#8217;ll need a Certificate Authority (CA) and a server certificate. If you have them already, then you can skip the following three parts, if not, I&#8217;ll show you how to create them.</p>
<h2>pfSense FQDN</h2>
<p>Check your FQDN first under <strong>System | General Setup</strong>. This is what I have as FQDN and I&#8217;ll use this FQDN later in my certificate and in my client&#8217;s config.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2018/03/P100-01.png"><img decoding="async" loading="lazy" src="https://blog.andreev.it/wp-content/uploads/2018/03/P100-01.png" alt="" width="1141" height="277" class="aligncenter size-full wp-image-8119" /></a></p>
<h2>pfSense CA (Certificate Authority)</h2>
<p>From the pfSense menu go to <strong>System | Cert. Manager</strong>. Click on <strong>Add </strong>and then you can choose to <strong>Import an existing Certificate Authority</strong> or <strong>Create an internal Certificate Authority</strong>. In my home lab I already have an existing CA (see <a href="https://blog.andreev.it/?p=3334" target="_blank" rel="noopener noreferrer">this link</a> on how to create your own CA), but for this post, I&#8217;ll create a new CA. Enter a <strong>Descriptive Name</strong> for the CA and choose to <strong>Create an internal Certificate Authority</strong>.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2018/03/P100-02.png"><img decoding="async" loading="lazy" src="https://blog.andreev.it/wp-content/uploads/2018/03/P100-02.png" alt="" width="1146" height="197" class="aligncenter size-full wp-image-8120" /></a><br />
Under the <strong>Internal Certificate Authority</strong> section , fill out the values that suit your home/lab/company. In my case, I used <strong>2048 </strong>for <strong>Key length (bits)</strong> and <strong>sha256 </strong>for <strong>Digest Algorithm</strong>. Enter the <strong>Lifetime</strong> of the CA, I used 3650 days which is 10 years and fill out the rest of the form. Make sure to use your FQDN for the <strong>Common Name</strong>. For example, my pfSense box has an external IP assigned to the WAN interface which is 1.2.3.4. Also, somewhere in my DNS, I resolve this IP to mysweethome.mysweetdomain.com. You have to put mysweethome.mysweetdomain.com for <strong>Common Name</strong>.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2018/03/P100-03.png"><img decoding="async" loading="lazy" src="https://blog.andreev.it/wp-content/uploads/2018/03/P100-03.png" alt="" width="1166" height="551" class="aligncenter size-full wp-image-8121" /></a></p>
<p>This is just a sample. The original post is <a href="https://blog.andreev.it/2018/03/123-pfsense-mobile-vpn-clients-windows-10-iphone-linux-mac-os-x-android/" rel="noopener" target="_blank">here</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.andreev.it/2016/06/06/pfsense/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
