<?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>Leonardo Borda &#187; openvpn</title>
	<atom:link href="http://www.leonardoborda.com/blog/tag/openvpn/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.leonardoborda.com/blog</link>
	<description>A bit of everything and answers that really work!</description>
	<lastBuildDate>Thu, 15 Jul 2010 16:14:37 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to assign a fixed ip-address to an openvpn user / lan-to-lan connection?</title>
		<link>http://www.leonardoborda.com/blog/how-to-assign-a-fixed-ip-address-to-a-openvpn-user-lan-to-lan-connection/</link>
		<comments>http://www.leonardoborda.com/blog/how-to-assign-a-fixed-ip-address-to-a-openvpn-user-lan-to-lan-connection/#comments</comments>
		<pubDate>Mon, 30 Mar 2009 17:16:14 +0000</pubDate>
		<dc:creator>Leo</dc:creator>
				<category><![CDATA[Knowledge Base]]></category>
		<category><![CDATA[openvpn]]></category>

		<guid isPermaLink="false">http://www.leonardoborda.com/blog/?p=93</guid>
		<description><![CDATA[Taking into account you have already a working Openvpn server, follow the steps bellow to configure static ip address to Openvpn users:
1. Create a folder called ccd inside /etc/openvpn/.
#mkdir /etc/openvpn/ccd
2. Add the following line to the openvpn server configuration file:
client-config-dir ccd
3. In /etc/openvpn/ccd/ you will create one file for each user you want to have [...]]]></description>
			<content:encoded><![CDATA[<p>Taking into account you have already a working Openvpn server, follow the steps bellow to configure static ip address to Openvpn users:</p>
<p>1. Create a folder called ccd inside /etc/openvpn/.</p>
<pre>#mkdir /etc/openvpn/ccd</pre>
<p>2. Add the following line to the openvpn server configuration file:</p>
<pre>client-config-dir ccd</pre>
<p>3. In /etc/openvpn/ccd/ you will create one file for each user you want to have a fixed ip address. You must name the file <strong>exactly</strong> as the &#8220;common name&#8221; of the user certificate file. If you don&#8217;t know what is in his &#8220;common name&#8221; just run the following command to find it. It is right on the top, look for CN=user.</p>
<pre># root@srv-openvpn:~/openvpn/keys# openssl x509 -in user.crt -text |grep -i 'CN='|grep -i "Subject"</pre>
<p>PS: in case the CN name has white spaces the file name will have to be created using &#8220;_&#8221;. eg. CN=Leo B the file name will be Leo_B.<br />
4. Once created open the file and add the following line:</p>
<pre>ifconfig-push 10.10.80.100 10.10.80.101</pre>
<p>Use your own network of course. You can add ordinary Openvpn parameters into this file if you want. For example you can push another gateway for this specific user.</p>
<p>5. Restart Openvpn server and check whether the user has acquired the specified ip address.<br />
And there we go!</p>
<p>Good luck!<br />
Leonardo Borda</p>
]]></content:encoded>
			<wfw:commentRss>http://www.leonardoborda.com/blog/how-to-assign-a-fixed-ip-address-to-a-openvpn-user-lan-to-lan-connection/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
