<?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>openvpn &#8211; Giovanni F. Mazzeo De Santolo</title>
	<atom:link href="https://desantolo.com/tag/openvpn/feed/" rel="self" type="application/rss+xml" />
	<link>https://desantolo.com</link>
	<description>That italian IT guy</description>
	<lastBuildDate>Sun, 27 Dec 2020 05:38:51 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.2</generator>
<site xmlns="com-wordpress:feed-additions:1">123042357</site>	<item>
		<title>Allowing OpenVPN to create tun device on LXC / Proxmox</title>
		<link>https://desantolo.com/2018/11/allowing-openvpn-to-create-tun-device-on-lxc-proxmox/</link>
		
		<dc:creator><![CDATA[Giovanni]]></dc:creator>
		<pubDate>Mon, 19 Nov 2018 01:56:57 +0000</pubDate>
				<category><![CDATA[Proxmox]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[containers]]></category>
		<category><![CDATA[lxc]]></category>
		<category><![CDATA[openvpn]]></category>
		<category><![CDATA[proxmox]]></category>
		<guid isPermaLink="false">https://desantolo.com/?p=569</guid>

					<description><![CDATA[Due to built-in security of LXC, trying to setup a tunnel interface inside a container is by blocked by default. ERROR: Cannot open TUN/TAP dev /dev/net/tun To allow this for a specific container in Proxmox, we need to make a &#8230; <a href="https://desantolo.com/2018/11/allowing-openvpn-to-create-tun-device-on-lxc-proxmox/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[<p>Due to built-in security of LXC, trying to setup a tunnel interface inside a container is by blocked by default.</p>
<p><code>ERROR: Cannot open TUN/TAP dev /dev/net/tun</code></p>
<p>To allow this for a specific container in Proxmox, we need to make a few tweaks to allow this interface to work in a specific container (we don&#8217;t want to allow all containers to be able to setup a tunnel &#8211; hackers can hide their tracks using it).</p>
<p>How to do this:<br />
<code><br />
ADD these lines to /etc/pve/lxc/&lt;container-id&gt;.conf<br />
</code></p>
<pre>lxc.cgroup.devices.allow = c 10:200 rwm
lxc.hook.autodev = sh -c "modprobe tun; cd ${LXC_ROOTFS_MOUNT}/dev; mkdir net; mknod net/tun c 10 200; chmod 0666 net/tun"</pre>
<p><code> </code></p>
]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">569</post-id>	</item>
	</channel>
</rss>
