<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" version="2.0">

<channel>
	<title>Papandut.Com: like IT, blog IT, share IT, help with IT</title>
	
	<link>http://papandut.com</link>
	<description>like IT, blog IT, share IT, help with IT</description>
	<lastBuildDate>Sat, 19 May 2012 08:49:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/papandut" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="papandut" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Finally… real hosting</title>
		<link>http://papandut.com/2012/05/16/finally-real-hosting/</link>
		<comments>http://papandut.com/2012/05/16/finally-real-hosting/#comments</comments>
		<pubDate>Wed, 16 May 2012 15:11:40 +0000</pubDate>
		<dc:creator>papandut</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[Web hosting]]></category>
		<category><![CDATA[hosting]]></category>

		<guid isPermaLink="false">http://papandut.com/?p=594</guid>
		<description><![CDATA[Finally, after a week of &#8220;redirect to bodis . com&#8221;, i  have my website back. And finally &#8230;. i pay for the premium hosting account. No more force redirect like the free hosting &#8230;  ;)]]></description>
			<content:encoded><![CDATA[<p>Finally, after a week of &#8220;redirect to bodis . com&#8221;, i  have my website back.</p>
<p>And finally &#8230;. i pay for the premium hosting account.</p>
<p>No more force redirect like the free hosting &#8230;  ;)</p>
]]></content:encoded>
			<wfw:commentRss>http://papandut.com/2012/05/16/finally-real-hosting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Restrict file type with vsftpd</title>
		<link>http://papandut.com/2011/09/04/restrict-file-type-with-vsftpd/</link>
		<comments>http://papandut.com/2011/09/04/restrict-file-type-with-vsftpd/#comments</comments>
		<pubDate>Sun, 04 Sep 2011 16:58:40 +0000</pubDate>
		<dc:creator>papandut</dc:creator>
				<category><![CDATA[FTP]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[vsftpd]]></category>

		<guid isPermaLink="false">http://papandut.com/?p=568</guid>
		<description><![CDATA[vsftpd have an option to restrict file type(s) for upload/download.  That vsftpd option is deny_file.  For example, to restrict file *.mp3 and *.avi, use this in vsftpd configuration file: deny_file={*.mp3,*.avi} If we put the option in vsftpd.conf, it will be applied to all vsftpd users.  In virtual users configuration, we can put the option in [...]]]></description>
			<content:encoded><![CDATA[<p>vsftpd have an option to restrict file type(s) for upload/download.  That vsftpd option is deny_file.  For example, to restrict file *.mp3 and *.avi, use this in vsftpd configuration file:</p>
<pre>deny_file={*.mp3,*.avi}</pre>
<p>If we put the option in vsftpd.conf, it will be applied to all vsftpd users.  In virtual users configuration, we can put the option in specific user configuration file, so only selected user will be affected by the configuration.</p>
]]></content:encoded>
			<wfw:commentRss>http://papandut.com/2011/09/04/restrict-file-type-with-vsftpd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing and Configuring OpenVPN Server on CentOS using Webmin (part 4)</title>
		<link>http://papandut.com/2011/09/04/installing-and-configuring-openvpn-server-on-centos-using-webmin-part-4/</link>
		<comments>http://papandut.com/2011/09/04/installing-and-configuring-openvpn-server-on-centos-using-webmin-part-4/#comments</comments>
		<pubDate>Sun, 04 Sep 2011 16:55:56 +0000</pubDate>
		<dc:creator>papandut</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[OpenVPN]]></category>
		<category><![CDATA[pfSense]]></category>

		<guid isPermaLink="false">http://papandut.com/?p=566</guid>
		<description><![CDATA[Configuring pfSense as OpenVPN client for site-to-site VPN In this section, we will discuss the client side of OpenVPN site-to-site configuration. At the client side, I use pfSense as the firewall, webproxy, and VPN gateway to connect to the HO through site-to-site VPN with OpenVPN server. pfSense is a free, open source customized distribution of FreeBSD [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Configuring pfSense as OpenVPN client for site-to-site VPN</strong></p>
<p class="MsoNormal"><span>In this section, we will discuss the client side of OpenVPN site-to-site configuration.<span> </span>At the client side, I use pfSense as the firewall, webproxy, and VPN gateway to connect to the HO through site-to-site VPN with OpenVPN server.<span> <span id="more-566"></span></span>pfSense is a free, open source customized distribution of <a href="http://www.freebsd.org/"><span>FreeBSD</span></a> tailored for use as a firewall and router. pfSense is a powerful, flexible firewalling and routing platform, and easy to configure.<span> </span>You can download pfSense from pfsense.org. </span></p>
<p class="MsoNormal"><span>In this configuration, there are two network interface card use in the pfSense.<span> </span>One network interface is connected to the internet, and the other network interface is connected to the LAN and used as the default gateway for the LAN.<span> </span></span></p>
<p class="MsoNormal"><span><span><img class="aligncenter size-full wp-image-571" title="pfsense1" src="http://papandut.com/wp-content/uploads/2011/09/pfsense1.jpg" alt="pfsense1" width="500" height="348" /></span></span></p>
<p class="MsoNormal">
<p class="MsoNormal"><span>Here are the steps to configure pfSense as an OpenVPN client and perform as a VPN gateway:</span></p>
<p class="MsoNormal"><span>Go to VPN menu and click on OpenVPN.</span></p>
<p class="MsoNormal"><span><img class="aligncenter size-full wp-image-573" title="pfsense2" src="http://papandut.com/wp-content/uploads/2011/09/pfsense2.jpg" alt="pfsense2" width="500" height="144" /></span></p>
<p class="MsoNormal">
<p class="MsoNormal"><span>In the OpenVPN page, click on Client tab.</span></p>
<p class="MsoNormal"><span><img class="aligncenter size-full wp-image-574" title="pfsense3" src="http://papandut.com/wp-content/uploads/2011/09/pfsense3.jpg" alt="pfsense3" width="500" height="174" /></span></p>
<p class="MsoNormal">
<p class="MsoNormal"><span>To add a new VPN client tunnel configuration, click on + button in the OpenVPN client page, the in the OpenVPN client edit page fill in the requested fields.</span></p>
<p class="MsoNormal"><span>In the server address field, fill in the public ip address of the OpenVPN server.</span></p>
<p class="MsoNormal"><span>In the server port field, fill in the same port as use in the OpenVPN server.</span></p>
<p class="MsoNormal"><span>In the cryptography field, fill in the same cryptography algorithm used in the OpenVPN server.</span></p>
<p class="MsoNormal"><span>Before we can fill in the CA certificate field, client certificate field and client key field, we need to export the files from OpenVPN server.<span> </span>In the OpenVPN server, go to Server -&gt; OpenVPN +CA, click on VPN List.<span> </span>In the VPN Server list page, click on Client List of the VPN Server.<span> </span>In the client list click the export link of the selected the client.<span> </span></span></p>
<p class="MsoNormal"><span><span><span><img class="aligncenter size-full wp-image-578" title="export-client" src="http://papandut.com/wp-content/uploads/2011/09/export-client.jpg" alt="export-client" width="500" height="377" /></span></span></span></p>
<p class="MsoNormal"><span>When we export the vpn client configuration files, we will get one zip file with several files inside it.<span> </span>For example, for client named site-1, we will have site-1.zip file.<span> </span>The content of the site-1.zip file are as follow.</span></p>
<p class="MsoNormal"><span><span><span><img class="aligncenter size-full wp-image-579" title="export-client2" src="http://papandut.com/wp-content/uploads/2011/09/export-client2.jpg" alt="export-client2" width="211" height="184" /></span></span></span></p>
<p class="MsoNormal"><span>To fill in the CA certificate field, open the ca.crt file with text editor then copy the content and paste it in the CA certificate field. <span> </span>To fill in the Client certificate field, open the site-1.crt file with text editor then copy the content and paste it in the Client certificate field.<span> </span>To fill in the Client key certificate field, open the site-1.key file with text editor then copy the content and paste it in the Client key field.<span> </span></span>When finish with the requested field, click Save.</p>
<p class="MsoNormal">The VPN client tunnel configuration will look like picture below.</p>
<p class="MsoNormal"><img class="aligncenter size-full wp-image-575" title="pfsense4" src="http://papandut.com/wp-content/uploads/2011/09/pfsense4.jpg" alt="pfsense4" width="500" height="1129" /></p>
<p class="MsoNormal"><span>In order for the VPN client to have DNS information from internal DNS server in HO, we need to configure the DNS forwarder service and specify an authoritative dns server to be queried for internal domain/zone.<span> </span>To configure the DNS forwarder service, go to Services menu and click on DNS forwarder.</span></p>
<p class="MsoNormal"><span><img class="aligncenter size-full wp-image-576" title="pfsense5" src="http://papandut.com/wp-content/uploads/2011/09/pfsense5.jpg" alt="pfsense5" width="500" height="469" /></span></p>
<p class="MsoNormal"><span><span>In the Services: DNS forwarder page, put a check mark on Enable DNS forwarder.<span> </span>Then click on + button on the Domain to override.</span></span></p>
<p class="MsoNormal"><span><span><img class="aligncenter size-full wp-image-585" title="pfsense6a" src="http://papandut.com/wp-content/uploads/2011/09/pfsense6a.jpg" alt="pfsense6a" width="476" height="174" /></span></span></p>
<p class="MsoNormal"><span>In the Services: DNS forwarder: Edit Domain Override, fill in the domain name and the ip address of the DNS server in the HO then click Save.</span></p>
<p class="MsoNormal">With all the configuration have been set up, the OpenVPN client in the pfSense will start to connect to the OpenVPN server and established the VPN tunnel. When the VPN tunnel established, all client in site-1 behind the pfSense can access resources in HO that are allowed for them.</p>
]]></content:encoded>
			<wfw:commentRss>http://papandut.com/2011/09/04/installing-and-configuring-openvpn-server-on-centos-using-webmin-part-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setup time synchronization on HP Procurve switches</title>
		<link>http://papandut.com/2011/08/07/setup-time-synchronization-on-hp-procurve-switches/</link>
		<comments>http://papandut.com/2011/08/07/setup-time-synchronization-on-hp-procurve-switches/#comments</comments>
		<pubDate>Sun, 07 Aug 2011 14:47:44 +0000</pubDate>
		<dc:creator>papandut</dc:creator>
				<category><![CDATA[network]]></category>
		<category><![CDATA[Switch]]></category>
		<category><![CDATA[HP Procurve]]></category>
		<category><![CDATA[SNTP]]></category>
		<category><![CDATA[time synch]]></category>

		<guid isPermaLink="false">http://papandut.com/?p=563</guid>
		<description><![CDATA[By default, when an HP Procurve switch reboot, the switch time will revert to 1 Jan 1990 at 00:00:00. Some time, inaccurate time setting brings difficulties when we need to look at the log at a specific time. Manual time adjustments are not saved on HP Procurve switches after reboot. The solution is to setup [...]]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal">By default, when an HP Procurve switch reboot, the switch time will revert to 1 Jan 1990 at 00:00:00.<span> </span>Some time, inaccurate time setting brings difficulties when we need to look at the log at a specific time.<span> </span>Manual time adjustments are not saved on HP Procurve switches after reboot.<span> </span>The solution is to setup time synchronization to a time (NTP) server.<span id="more-563"></span></p>
<p class="MsoNormal">Here are the steps to setup time synchronization on HP Procurve 2910 series, 2520 series and 5400 series switches:</p>
<pre><span>ProCurve(config)# timesync sntp
</span><span>ProCurve(config)# sntp unicast
</span><span>ProCurve(config)# sntp server priority 1 10.123.123.123 3
</span><span>ProCurve(config)# time timezone 420</span></pre>
<p class="MsoNormal">The “time sync sntp” command instruct the switch to use SNTP as the time synchronization method. <span> </span>The “sntp unicast” directs the switch to poll a specific server for SNTP time synchronization. We can configure up to three server.<span> </span>The “priority” specifies the order in which the configured servers are polled for getting the time.<span> </span>The server “version” specifies the SNTP software version to use.<span> </span>The version setting is backwards-compatible. For example, using version 3 means that the switch accepts versions 1 through 3.<span> </span>The “time timezone 420” specifies 420 minutes after GMT or the timezone of GMT+7.</p>
<p class="MsoNormal">For HP Procurve 2610 series switches, the command is a little bit different. There is no server priority setting.</p>
<pre><span>ProCurve(config)# timesync sntp
</span><span>ProCurve(config)# sntp unicast
</span><span>ProCurve(config)# sntp server 10.123.123.123 3
</span><span>ProCurve(config)# time timezone 420</span></pre>
<p class="MsoNormal"><span><br />
</span></p>
]]></content:encoded>
			<wfw:commentRss>http://papandut.com/2011/08/07/setup-time-synchronization-on-hp-procurve-switches/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing and Configuring OpenVPN Server on CentOS using Webmin (part 3)</title>
		<link>http://papandut.com/2011/07/17/installing-and-configuring-openvpn-server-on-centos-using-webmin-part-3/</link>
		<comments>http://papandut.com/2011/07/17/installing-and-configuring-openvpn-server-on-centos-using-webmin-part-3/#comments</comments>
		<pubDate>Sun, 17 Jul 2011 13:15:59 +0000</pubDate>
		<dc:creator>papandut</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[OpenVPN]]></category>
		<category><![CDATA[pfSense]]></category>
		<category><![CDATA[site-to-site VPN]]></category>
		<category><![CDATA[Webmin]]></category>

		<guid isPermaLink="false">http://papandut.com/?p=519</guid>
		<description><![CDATA[OpenVPN Configuration Here are the steps to configure OpenVPN using Webmin: 1. Create Certification Authority To create the Certification Authority, go to Server -&#62; OpenVPN + CA, click on Certification Authority List. In the New Certification Authority form page, fill in the fields with the required informations and click Save. The system will generate required [...]]]></description>
			<content:encoded><![CDATA[<p><strong>OpenVPN Configuration</strong><br />
Here are the steps to configure OpenVPN using Webmin:</p>
<p><strong>1.  Create Certification Authority</strong><br />
To create the Certification Authority, go to Server -&gt; OpenVPN + CA, click on Certification Authority List.<span id="more-519"></span><br />
<img class="aligncenter size-full wp-image-520" title="createca1" src="http://papandut.com/wp-content/uploads/2011/07/createca1.jpg" alt="createca1" width="500" height="69" /><br />
In the New Certification Authority form page, fill in the fields with the required informations and click Save.<br />
<img class="aligncenter size-full wp-image-521" title="createca2" src="http://papandut.com/wp-content/uploads/2011/07/createca2.jpg" alt="createca2" width="500" height="269" /><br />
The system will generate required parameters, ca.key and ca.crt for the Certification Authority.<br />
<img class="aligncenter size-full wp-image-522" title="createca3" src="http://papandut.com/wp-content/uploads/2011/07/createca3.jpg" alt="createca3" width="500" height="166" /><br />
<img class="aligncenter size-full wp-image-523" title="createca4" src="http://papandut.com/wp-content/uploads/2011/07/createca4.jpg" alt="createca4" width="499" height="272" /><br />
When finished, the Certificate Authority name will be displayed in the Certification Authority List.<img class="aligncenter size-full wp-image-524" title="createca6" src="http://papandut.com/wp-content/uploads/2011/07/createca6.jpg" alt="createca6" width="500" height="149" /></p>
<p><strong>2.  Create Key for server</strong><br />
To create the Server key, go to Server -&gt; OpenVPN + CA, click on the Certication Authority List, then click on Keys list.<br />
<img class="aligncenter size-full wp-image-526" title="create-server-key1" src="http://papandut.com/wp-content/uploads/2011/07/create-server-key1.jpg" alt="create-server-key1" width="500" height="83" /><br />
In the New key to Certification Authority: alambil-ca form page, fill in the required fields, make sure to choose “server” for the Key Server type and don’t put any password in the key password field.  Click Save when finished.<br />
<img class="aligncenter size-full wp-image-527" title="create-server-key2" src="http://papandut.com/wp-content/uploads/2011/07/create-server-key2.jpg" alt="create-server-key2" width="500" height="349" /><br />
The system will generate the server key.<br />
<img class="aligncenter size-full wp-image-528" title="create-server-key3" src="http://papandut.com/wp-content/uploads/2011/07/create-server-key3.jpg" alt="create-server-key3" width="500" height="437" /></p>
<p><strong>3.  Create New VPN server and configure the server</strong><br />
We will use the Certification Authority to create the VPN Server.  Go to Servers -&gt; OpenVPN + CA, click on VPN List, then click on the New VPN server.<br />
<img class="aligncenter size-full wp-image-531" title="new-vpn-server" src="http://papandut.com/wp-content/uploads/2011/07/new-vpn-server.jpg" alt="new-vpn-server" width="500" height="52" /><br />
In the New VPN Server form page, fill in the required fields.<br />
<img class="aligncenter size-full wp-image-532" title="create-vpn-server1" src="http://papandut.com/wp-content/uploads/2011/07/create-vpn-server1.jpg" alt="create-vpn-server1" width="500" height="368" /><br />
<img class="aligncenter size-full wp-image-533" title="create-vpn-server2" src="http://papandut.com/wp-content/uploads/2011/07/create-vpn-server2.jpg" alt="create-vpn-server2" width="500" height="356" /><br />
<img class="aligncenter size-full wp-image-534" title="create-vpn-server3" src="http://papandut.com/wp-content/uploads/2011/07/create-vpn-server3.jpg" alt="create-vpn-server3" width="501" height="353" /><br />
<img class="aligncenter size-full wp-image-535" title="create-vpn-server4" src="http://papandut.com/wp-content/uploads/2011/07/create-vpn-server4.jpg" alt="create-vpn-server4" width="500" height="350" /><br />
<img class="aligncenter size-full wp-image-536" title="create-vpn-server5" src="http://papandut.com/wp-content/uploads/2011/07/create-vpn-server5.jpg" alt="create-vpn-server5" width="500" height="209" /></p>
<p>The port use in the VPN server should be allowed access in the firewall.<br />
In the NetIP assign, allocate a network address range that will be used for the TUN interface of the VPN server and for the connecting clients.  Make sure that this network range is routable in the LAN.<br />
In the vpn server configuration, we put additional configuration:</p>
<pre>route 10.22.1.0 255.255.255.0
route 10.22.2.0 255.255.255.0
route 10.22.3.0 255.255.255.0
push "route 10.180.0.0 255.255.252.0"
push "route 10.22.1.0 255.255.255.0"
push "route 10.22.2.0 255.255.255.0"
push "route 10.22.3.0 255.255.255.0"
push "dhcp-option DNS 10.180.3.12"
client-to-client</pre>
<p>The route entries are added on the server to adjust the server local routing table, telling it to route those networks over the vpn.  The push routes are added on the clients connecting, telling them to route those networks over the vpn connection. The push dhcp-option are added on the clients connecting, so that they can use the specified private DNS server.  The client-to-client are added so that client can connect to other client over the vpn connection.</p>
<p><strong>4.  Create client Key and VPN client account for each client</strong><br />
We need to create client Key and VPN client account for each client that will use VPN connection.  To create the client key, go to Servers -&gt; OpenVPN + CA, click on the Certication Authority List, then click on Keys list.<br />
In the New key to Certification Authority: alambil-ca form page, fill in the required fields, make sure to choose “client” for the Key Server type.  Click Save when finished.<br />
<img class="aligncenter size-full wp-image-540" title="create-client-key1" src="http://papandut.com/wp-content/uploads/2011/07/create-client-key1.jpg" alt="create-client-key1" width="500" height="342" /><br />
The system will generate the client key.<br />
<img class="aligncenter size-full wp-image-541" title="create-client-key2" src="http://papandut.com/wp-content/uploads/2011/07/create-client-key2.jpg" alt="create-client-key2" width="500" height="351" /></p>
<p>To create the OpenVPN client account for the client key, go to Server -&gt; OpenVPN +CA, click on VPN List.  In the VPN Server list page, client on Client List of the VPN Server.<br />
<img class="aligncenter size-full wp-image-542" title="vpn-server-list" src="http://papandut.com/wp-content/uploads/2011/07/vpn-server-list.jpg" alt="vpn-server-list" width="500" height="77" /><br />
Then click on New VPN Client button.<br />
<img class="aligncenter size-full wp-image-543" title="new-vpn-client" src="http://papandut.com/wp-content/uploads/2011/07/new-vpn-client.jpg" alt="new-vpn-client" width="300" height="24" /><br />
In the New VPN Client form page, fill in the required fields.<br />
<img class="aligncenter size-full wp-image-545" title="new-vpn-client1" src="http://papandut.com/wp-content/uploads/2011/07/new-vpn-client1.jpg" alt="new-vpn-client1" width="500" height="370" /><br />
<img class="aligncenter size-full wp-image-547" title="new-vpn-client2" src="http://papandut.com/wp-content/uploads/2011/07/new-vpn-client2.jpg" alt="new-vpn-client2" width="501" height="364" /><br />
<img class="aligncenter size-full wp-image-546" title="new-vpn-client3" src="http://papandut.com/wp-content/uploads/2011/07/new-vpn-client3.jpg" alt="new-vpn-client3" width="500" height="360" /></p>
<p>In the remote IP field, fill in with the public IP of the VPN server.  Make sure that the port is opened in the firewall.<br />
In the ccd file content field for client site-1, we put:</p>
<pre>iroute  10.22.1.0  255.255.255.0</pre>
<p>The iroute entry is useful for site-to-site VPN.  The iroute entry tells the openvpn server that client site-1 is responsible for or the owner of the network 10.22.1.0/24.    When creating VPN client for mobile user,  there is no need to add the iroute entry.</p>
<p><strong>5.  Enable IP forwarding on the server</strong><br />
To enable IP forwarding on the server, in the webmin, go to Networking -&gt; Network Configuration, then click on Routing and Gateways.<br />
<img class="aligncenter size-full wp-image-551" title="ip-forwarding1" src="http://papandut.com/wp-content/uploads/2011/07/ip-forwarding1.jpg" alt="ip-forwarding1" width="500" height="341" /><br />
Make sure to choose Yes on the Act as router, then in the network configuration page, click Apply Configuration button.<br />
<img class="alignnone size-medium wp-image-552" title="ip-forwarding2" src="http://papandut.com/wp-content/uploads/2011/07/ip-forwarding2-300x112.jpg" alt="ip-forwarding2" width="300" height="112" /></p>
<p>You can also use the shell command to enable ip forwarding:</p>
<pre># echo 1 &gt;&gt; /proc/sys/net/ipv4/ip_forward</pre>
<p>To check if the configuration have been applied correctly, use cat to display the value. It should be 1.</p>
<pre># cat /proc/sys/net/ipv4/ip_forward</pre>
<p><strong>6.  Configure the firewall</strong><br />
In the firewall, we should configure:<br />
-	NAT policies to associate public IP and private IP used by the OpenVPN server<br />
-	Access rule from the Internet to the public IP of the OpenVPN server on port 1194<br />
-	Access rule from DMZ to LAN for VPN client to access resources on the LAN<br />
-	Access rule from LAN to DMZ for computers on the LAN that need access to the VPN client<br />
If needed, we can also enable firewall/iptables on the Linux server.  If we do it, then we need to put access rule for the VPN client to access resources outside the OpenVPN server and vice versa.</p>
<p><span>In the next section, we will discuss about the client side of  OpenVPN configuration.</span></p>
]]></content:encoded>
			<wfw:commentRss>http://papandut.com/2011/07/17/installing-and-configuring-openvpn-server-on-centos-using-webmin-part-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing and Configuring OpenVPN Server on CentOS using Webmin (part 2)</title>
		<link>http://papandut.com/2011/07/12/installing-and-configuring-openvpn-server-on-centos-using-webmin-part-2/</link>
		<comments>http://papandut.com/2011/07/12/installing-and-configuring-openvpn-server-on-centos-using-webmin-part-2/#comments</comments>
		<pubDate>Tue, 12 Jul 2011 14:30:51 +0000</pubDate>
		<dc:creator>papandut</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[OpenVPN]]></category>
		<category><![CDATA[pfSense]]></category>
		<category><![CDATA[site-to-site VPN]]></category>
		<category><![CDATA[Webmin]]></category>

		<guid isPermaLink="false">http://papandut.com/?p=506</guid>
		<description><![CDATA[Installing OpenVPN Server In my configuration, I use CentOS 5.3 with 1 CPU 2.8 GHz, 2 GB RAM, 40 GB HD, and one NIC as the server.  To make it easier when installing OpenVPN, I use RPMForge repository. First I need to download rpmforge release package then install it. [root@alambil ~]# wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.i386.rpm [root@alambil ~]# [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Installing OpenVPN Server</strong><br />
In my configuration, I use CentOS 5.3 with 1 CPU 2.8 GHz, 2 GB RAM, 40 GB HD, and one NIC as the server.  To make it easier when installing OpenVPN, I use RPMForge repository. First I need to download rpmforge release package then install it.<span id="more-506"></span></p>
<pre>[root@alambil ~]# wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.i386.rpm
[root@alambil ~]# rpm -Uvh rpmforge-release-0.5.2-2.el5.rf.i386.rpm</pre>
<p>Then I use yum to install OpenVPN packages.</p>
<pre>[root@alambil ~]# yum install openvpn
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * rpmforge: apt.sw.be
 * base: mirror.nus.edu.sg
 * updates: mirror.nus.edu.sg
 * addons: mirror.nus.edu.sg
 * extras: mirror.nus.edu.sg
rpmforge                                                 | 1.1 kB     00:00
primary.xml.gz                                           | 2.3 MB     00:23
rpmforge                                                       10740/10740
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--&gt; Running transaction check
---&gt; Package openvpn.i386 0:2.1.4-2.el5.rf set to be updated
--&gt; Processing Dependency: liblzo2.so.2 for package: openvpn
--&gt; Processing Dependency: lzo for package: openvpn
--&gt; Processing Dependency: libpkcs11-helper.so.1 for package: openvpn
--&gt; Running transaction check
---&gt; Package lzo.i386 0:2.04-1.el5.rf set to be updated
---&gt; Package pkcs11-helper.i386 0:1.08-1.el5.rf set to be updated
--&gt; Finished Dependency Resolution
Dependencies Resolved
================================================================================
 Package              Arch        Version                 Repository       Size
================================================================================
Installing:
 openvpn              i386        2.1.4-2.el5.rf          rpmforge        443 k
Installing for dependencies:
 lzo                  i386        2.04-1.el5.rf           rpmforge        131 k
 pkcs11-helper        i386        1.08-1.el5.rf           rpmforge        128 k
Transaction Summary
================================================================================
Install      3 Package(s)
Update       0 Package(s)
Remove       0 Package(s)
Total download size: 701 k
Is this ok [y/N]: y
Downloading Packages:
(1/3): pkcs11-helper-1.08-1.el5.rf.i386.rpm              | 128 kB     00:01
(2/3): lzo-2.04-1.el5.rf.i386.rpm                        | 131 kB     00:02
(3/3): openvpn-2.1.4-2.el5.rf.i386.rpm                   | 443 kB     00:06
--------------------------------------------------------------------------------
Total                                            40 kB/s | 701 kB     00:17
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : pkcs11-helper                                     [1/3]
  Installing     : lzo                                               [2/3]
  Installing     : openvpn                                           [3/3]
Installed: openvpn.i386 0:2.1.4-2.el5.rf
Dependency Installed: lzo.i386 0:2.04-1.el5.rf pkcs11-helper.i386 0:1.08-1.el5.rf
Complete!
[root@alambil ~]#</pre>
<p>The next step is to download and install webmin.  We can get webmin source from http://www.webmin.com/download.html and then install it.</p>
<pre>[root@alambil ~]# rpm -Uvh webmin-1.550-1.noarch.rpm</pre>
<p>Default Webmin package do not contain module to administer OpenVPN.  I need to download a Webmin OpenVPN Admin module and add it to my Webmin installation.<br />
I get Webmin OpenVPN Admin module from http://www.webmin.com/cgi-bin/search_third.cgi?search=openvpn Download openvpn-2.5.wbm.gz file and extract it.</p>
<pre>[root@alambil ~]# gunzip openvpn-2.5.wbm.gz</pre>
<p>To add this module to the webmin installation, we need to log on to Webmin.<br />
Using the browser, go to the servers ip and port 10000:  https://10.180.1.10:10000.  After succesfully logon, go to menu Webmin -&gt; Webmin Configuration and click on Webmin Modules.</p>
<p><img class="aligncenter size-full wp-image-510" title="install-webmin-openvpn-admin-module1" src="http://papandut.com/wp-content/uploads/2011/07/install-webmin-openvpn-admin-module1.jpg" alt="install-webmin-openvpn-admin-module1" width="572" height="350" /></p>
<p class="MsoNormal"><span>In the webmin modules page, click on From local file and browse for the openvpn-2.5.wbm that have been extracted from the gz file then click Install Module.</span></p>
<p class="MsoNormal"><span><img class="aligncenter size-full wp-image-512" title="install-webmin-openvpn-admin-module2" src="http://papandut.com/wp-content/uploads/2011/07/install-webmin-openvpn-admin-module2.jpg" alt="install-webmin-openvpn-admin-module2" width="573" height="521" /></span></p>
<p class="MsoNormal"><span><span><span> </span>After the installation finished, OpenVPN + CA menu will be listed in the Servers Menu.</span></span></p>
<p class="MsoNormal"><span><span><img class="aligncenter size-full wp-image-513" title="after-install-webmin-openvpn-admin-module" src="http://papandut.com/wp-content/uploads/2011/07/after-install-webmin-openvpn-admin-module.jpg" alt="after-install-webmin-openvpn-admin-module" width="206" height="308" /></span></span></p>
<p class="MsoNormal"><span>Now, we have installed all the components needed for the OpenVPN configuration.</span></p>
<p class="MsoNormal"><span>In the next section, I will discuss about the OpenVPN configuration.</span><span><span> </span></span></p>
]]></content:encoded>
			<wfw:commentRss>http://papandut.com/2011/07/12/installing-and-configuring-openvpn-server-on-centos-using-webmin-part-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing and Configuring OpenVPN Server on CentOS using Webmin (part 1)</title>
		<link>http://papandut.com/2011/07/12/installing-and-configuring-openvpn-server-on-centos-using-webmin-part-1/</link>
		<comments>http://papandut.com/2011/07/12/installing-and-configuring-openvpn-server-on-centos-using-webmin-part-1/#comments</comments>
		<pubDate>Tue, 12 Jul 2011 10:21:02 +0000</pubDate>
		<dc:creator>papandut</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[OpenVPN]]></category>
		<category><![CDATA[pfSense]]></category>
		<category><![CDATA[site-to-site VPN]]></category>
		<category><![CDATA[Webmin]]></category>

		<guid isPermaLink="false">http://papandut.com/?p=476</guid>
		<description><![CDATA[Our company have several branches and mobile users that need to access data in the head office. I need to provide VPN access for them. I want a solution for site-to-site VPN that is cost effective, stable, easy to use and configure with Graphical User Interface. After exploring the documentation in the net, I find [...]]]></description>
			<content:encoded><![CDATA[<p>Our company have several branches and mobile users that need to access data in the head office.  I need to provide VPN access for them.  I want a solution for site-to-site VPN that is cost effective, stable, easy to use and configure with Graphical User Interface.  After exploring the documentation in the net, I find the solution for my need.  I use OpenVPN with Webmin running on CentOS server in the head office side.  As for the branches side, I choose pfSense. And for the mobile users, I use OpenVPN client for Windows.<span id="more-476"></span></p>
<p>This article came out as my documentation on configuring the system.  In this article, I provide step-by-step instruction for configuring an OpenVPN server running on CentOS using webmin, configuring OpenVPN client running on pfSense and OpenVPN client running on Windows 7.</p>
<p>In the head office, I put the OpenVPN server in a DMZ segmen, separate it from LAN segmen where the internal server and client reside.  I use an UTM/firewall to separate the WAN, DMZ and our LANs.  Using this, I can configure firewall rule between WN, DMZ and LAN segmen.</p>
<p>Here is the diagram of our network environment.<br />
<a href="http://papandut.com/wp-content/uploads/2011/07/site-to-site-vpn-using-openvpn1.jpg"><img class="aligncenter size-full wp-image-498" title="Site-to-site VPN using OpenVPN" src="http://papandut.com/wp-content/uploads/2011/07/site-to-site-vpn-using-openvpn.jpg" alt="Site-to-site VPN using OpenVPN" width="500" height="320" /></a><br />
In the next section, I will describe about the webmin and openvpn installation.</p>
]]></content:encoded>
			<wfw:commentRss>http://papandut.com/2011/07/12/installing-and-configuring-openvpn-server-on-centos-using-webmin-part-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>You are blessed !!!</title>
		<link>http://papandut.com/2011/06/19/you-are-blessed/</link>
		<comments>http://papandut.com/2011/06/19/you-are-blessed/#comments</comments>
		<pubDate>Sun, 19 Jun 2011 14:02:00 +0000</pubDate>
		<dc:creator>papandut</dc:creator>
				<category><![CDATA[Gado-gado]]></category>

		<guid isPermaLink="false">http://papandut.com/?p=473</guid>
		<description><![CDATA[You are blessed. I am blessed. We are blessed !!!]]></description>
			<content:encoded><![CDATA[<p>You are blessed.  I am blessed.  We are blessed !!!</p>
]]></content:encoded>
			<wfw:commentRss>http://papandut.com/2011/06/19/you-are-blessed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Delete mail queue from or to a specific email address</title>
		<link>http://papandut.com/2010/03/25/delete-mail-queue-from-or-to-a-specific-email-address/</link>
		<comments>http://papandut.com/2010/03/25/delete-mail-queue-from-or-to-a-specific-email-address/#comments</comments>
		<pubDate>Thu, 25 Mar 2010 07:14:44 +0000</pubDate>
		<dc:creator>papandut</dc:creator>
				<category><![CDATA[Mail server]]></category>
		<category><![CDATA[mail queue]]></category>
		<category><![CDATA[postfix]]></category>

		<guid isPermaLink="false">http://papandut.com/?p=466</guid>
		<description><![CDATA[Some times, you may need to delete mail queue from or to a specific email address in your Postfix mail server.   For example, if  you get spam attack that fills your server with a lot of emails from the same sender email address or to the same recipient email address, you need to clean those [...]]]></description>
			<content:encoded><![CDATA[<p>Some times, you may need to delete mail queue from or to a specific email address in your Postfix mail server.   For example, if  you get spam attack that fills your server with a lot of emails from the same sender email address or to the same recipient email address, you need to clean those emails from your mail queue.</p>
<p>Manually deleting those email is very time consuming.  Here are the step to clean those email with one single command:</p>
<p><code> for i in `/usr/sbin/postqueue -p|grep 'user@domain.com' |awk {'print $1'}|grep -v 'user@domain.com'`; do /usr/sbin/postsuper -d $i ; done </code></p>
<p>This command will delete mail queue from or to user@domain.com.  To check current mail queue, run this command:</p>
<p><code> /usr/sbin/postqueue -p </code></p>
<p>Your mail queue will be much shorter.</p>
]]></content:encoded>
			<wfw:commentRss>http://papandut.com/2010/03/25/delete-mail-queue-from-or-to-a-specific-email-address/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>HA error – Could not reach isolation address</title>
		<link>http://papandut.com/2010/03/10/ha-error-could-not-reach-isolation-address/</link>
		<comments>http://papandut.com/2010/03/10/ha-error-could-not-reach-isolation-address/#comments</comments>
		<pubDate>Wed, 10 Mar 2010 12:02:26 +0000</pubDate>
		<dc:creator>papandut</dc:creator>
				<category><![CDATA[VMware]]></category>

		<guid isPermaLink="false">http://papandut.com/?p=463</guid>
		<description><![CDATA[I get this error message: &#8220;Could not reach isolation address: none specified&#8221; on one VMware VSphere host.  The error message only appear on one host. HA on the other hosts works normal.  I tried to run the &#8220;Reconfigure HA&#8221; on that host, the same error keep appear.   I also tried to disable HA for [...]]]></description>
			<content:encoded><![CDATA[<p>I get this error message: &#8220;Could not reach isolation address: none specified&#8221; on one VMware VSphere host.  The error message only appear on one host. HA on the other hosts works normal.  I tried to run the &#8220;Reconfigure HA&#8221; on that host, the same error keep appear.   I also tried to disable HA for the cluster dan re-enabled it but no success.</p>
<p>After googled and searched, I found the source of the problem.  The default gateway on the Service Console was missing.   Not sure how this could happen.  After fill in the default gateway IP and run the Reconfigure HA, the HA works fine on that host.</p>
]]></content:encoded>
			<wfw:commentRss>http://papandut.com/2010/03/10/ha-error-could-not-reach-isolation-address/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

