<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://dev1galaxy.org/extern.php?action=feed&amp;tid=7226&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / [SOLVED] Non-root-users cannot ping in devuan5-based lxc-container]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=7226</link>
		<description><![CDATA[The most recent posts in [SOLVED] Non-root-users cannot ping in devuan5-based lxc-container.]]></description>
		<lastBuildDate>Sat, 07 Jun 2025 15:03:30 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: [SOLVED] Non-root-users cannot ping in devuan5-based lxc-container]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=56010#p56010</link>
			<description><![CDATA[<p>I just noticed this problem yesterday on a VPS that I use.&#160; But it does not affect a different one.&#160; Both on the same kernel, 6.1.0-37 (amd64).&#160; May have something to do with the hosts.&#160; Thanks for tracking it down and finding a solution!</p>]]></description>
			<author><![CDATA[dummy@example.com (rbit)]]></author>
			<pubDate>Sat, 07 Jun 2025 15:03:30 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=56010#p56010</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Non-root-users cannot ping in devuan5-based lxc-container]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=55955#p55955</link>
			<description><![CDATA[<p>Hi Ralph!</p><p>Not completely true - because host, and therefore the container, is using kernel 5.10.<br />The mentioned new test-container (replicated by zfs), has been directly created on<br />devuan host using kernel 6.5 and does not have that problem running on the debian<br />host with kernel 5.10.<br />And indeed, it is strange - there will be no users, but services running as non-root.<br />I keep it in mind, when my new squid will come (which uses ping and so far I remember<br />right, form the non-root running process).</p><p>Regards,<br />Manfred</p>]]></description>
			<author><![CDATA[dummy@example.com (webman)]]></author>
			<pubDate>Mon, 02 Jun 2025 02:19:06 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=55955#p55955</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Non-root-users cannot ping in devuan5-based lxc-container]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=55952#p55952</link>
			<description><![CDATA[<p>Good find; appears to be a sysctl default with linux-image-6.1.0-28-amd64 (current daedalus). I guess someone found a &quot;security&quot; sticker and needed somewhere to put it so decided that &quot;Oh! non-root users shouldn&#039;t be allowed to &#039;ping&#039; willy-nilly&quot;... or something. </p><p>Slightly odd though that you don&#039;t have the same with your debian setup, but perhaps that non-root user is more capable(?). (As we often find repeated: the packages in devuan are mostly debian&#039;s packages directly and not changed, other than the few that are forked and compiled by devuan)</p>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Sun, 01 Jun 2025 22:56:11 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=55952#p55952</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Non-root-users cannot ping in devuan5-based lxc-container]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=55948#p55948</link>
			<description><![CDATA[<p>Hi All !</p><p>Found someone, who knows the bug.<br />Part of the message appears, if ipv6 has been disabled (everywhere in my infra), and I know this.<br />Came to the idea, to supply the &quot;-4&quot; switch (not neccessary) - and this show a complete different message:</p><div class="codebox"><pre><code>$ pc2 -4 192.168.26.88
ping: socktype: SOCK_RAW
ping: socket: Operation not permitted                            &lt;===
ping: =&gt; missing cap_net_raw+p capability or setuid?  &lt;===</code></pre></div><p>This was the same as in an older forum message with the same symptom, but this was hardware,<br />not a container. I compared working and non-working container, with no ideas.<br />But the leads to another websearch, which reveals the bug in a googl group:</p><div class="quotebox"><blockquote><div><p>I&#039;ve installed mantic from the images repo multiple times and created multiple users, I&#039;ve set lxc.apparmor.profile = unconfined, but nothing that I do will allow ordinary users to use &quot;ping&quot;. <br />.....<br />I&#039;ve tracked this down.&#160; It is a setting in sysctl.&#160; For whatever reason it is set like this:</p><p>&#160; &#160; net.ipv4.ping_group_range =&#160; 1&#160; &#160; &#160; 0</p><p>Changing to what most distros have:</p><p>&#160; &#160; net.ipv4.ping_group_range = 0&#160; &#160; 2147483647&#160; &#160; &#160;&lt;===</p><p>and ping is available again.</p><p>NB. This was from -d ubuntu -r mantic from the default images repository.</p></div></blockquote></div><p>After I set this value into sysctl.conf and applied, it works!<br />Have never seen or used it and like the poster said:</p><p><strong>from the default images repository</strong></p><p>So this came from install sources.<br />I just duplicated another working container using zfs send/recv (from devu5 container on devu5 hardware) to<br />debian (where the devuan container live). The only change I had to do, was to replace:</p><div class="codebox"><pre><code>lxc.include = /usr/share/lxc/config/devuan.common.conf
to:
lxc.include = /usr/share/lxc/config/debian.common.conf</code></pre></div><p>So its not the &quot;copying&quot; of the container.</p><p>But thanks for all help!<br />Regards,<br />Manfred</p>]]></description>
			<author><![CDATA[dummy@example.com (webman)]]></author>
			<pubDate>Sun, 01 Jun 2025 21:14:36 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=55948#p55948</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Non-root-users cannot ping in devuan5-based lxc-container]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=55945#p55945</link>
			<description><![CDATA[<p>Thanks for the replies!</p><p>@ralf, the interfaces are defined in the containers config file like this:</p><p>lxc.net.0.type = veth<br />lxc.net.0.name = eth0<br />lxc.net.0.veth.pair = ct-eth0<br />lxc.net.0.link = hovmbr<br />lxc.net.0.flags = up</p><p>#lanbr - optional, but now under test</p><p>lxc.net.1.type = veth<br />lxc.net.1.name = eth1<br />lxc.net.1.veth.pair = ct-eth1<br />lxc.net.1.link = lanbr<br />lxc.net.1.flags = up</p><p>Both end up in a bridge of the host (the first terminates at the host).<br />This usually works always and I rarely need others (but used macvtap, hardware).<br />All containers using this schema (debian + devuan), the debian&#039;eses are working.<br />Using &#039;ip link&#039; they appear like an ethernet interface.<br />Exact the same works on a devuan5 container on a devuan hardware.<br />For root, it works. For other usual users not (added another one for testing).<br />The users are only in their own and in the users group.<br />All firewall restriction have been removed on container AND host.<br />No ping is going out, ether which interface (destionation addr will be used).<br />A tcpdump does not show any outgoing packets (not even arp).<br />And the shown destination address has been random (though existing, running node),<br />it effects all - the routes are correct too (root has no different routing and it works).<br />---<br />@trinidad, that address is not my gateway, have never been it and something<br />linke wlan is NOT present.</p><p>Regards,<br />Manfred</p>]]></description>
			<author><![CDATA[dummy@example.com (webman)]]></author>
			<pubDate>Sun, 01 Jun 2025 19:13:24 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=55945#p55945</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Non-root-users cannot ping in devuan5-based lxc-container]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=55937#p55937</link>
			<description><![CDATA[<p>See the link about this address scheme.<br /><a href="https://en.ipshu.com/ipv4/192.168.26.252" rel="nofollow">https://en.ipshu.com/ipv4/192.168.26.252</a><br />TC</p>]]></description>
			<author><![CDATA[dummy@example.com (trinidad)]]></author>
			<pubDate>Sun, 01 Jun 2025 12:01:50 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=55937#p55937</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Non-root-users cannot ping in devuan5-based lxc-container]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=55932#p55932</link>
			<description><![CDATA[<p>Which kind of interface is set up for 192.168.26.252 ?</p><p>If it uses some pcap connection (like &quot;user&quot; networking in qemu), then it would only support IP level networking and ICMP would not be supported. I agree it&#039;s an LXC (on Devuan) issue although it may also be an admin choice of local networking. (I don&#039;t know LXC well enough to tell).</p><p>How is your networking set up?</p>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Sun, 01 Jun 2025 02:09:23 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=55932#p55932</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Non-root-users cannot ping in devuan5-based lxc-container]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=55927#p55927</link>
			<description><![CDATA[<p>Yes, ok.<br />But containers should be - at a degree - run on different kernels.</p><p>The container has been created by zfs send/recv, which worked in my experience.<br />BTW, the other containers, using debian 10/11/12 use exactly this same kernel.<br />Why should ping work with them?<br />Why can I even install a devuan-lxc on the same box?</p><p>Thanks,<br />Manfred</p>]]></description>
			<author><![CDATA[dummy@example.com (webman)]]></author>
			<pubDate>Sat, 31 May 2025 16:33:58 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=55927#p55927</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Non-root-users cannot ping in devuan5-based lxc-container]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=55925#p55925</link>
			<description><![CDATA[<p>The kernel 5.10.0-0.bpo.9-amd64 is definitely not from Daedalus. Daedalus uses linux-image-6.1.0* or 6.12 from backports.</p>]]></description>
			<author><![CDATA[dummy@example.com (rolfie)]]></author>
			<pubDate>Sat, 31 May 2025 16:11:19 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=55925#p55925</guid>
		</item>
		<item>
			<title><![CDATA[[SOLVED] Non-root-users cannot ping in devuan5-based lxc-container]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=55924#p55924</link>
			<description><![CDATA[<p>Hello!</p><p>Probably someone could shed some light onto this:</p><div class="codebox"><pre><code>ping -c2 192.168.26.252
ping: socktype: SOCK_DGRAM
ping: socket: Address family not supported by protocol</code></pre></div><p>System:</p><div class="codebox"><pre><code>~$ lsb_release -a
No LSB modules are available.
Distributor ID:	Devuan
Description:	Devuan GNU/Linux 5 (daedalus)
Release:	5
Codename:	daedalus
Linux devu5test 5.10.0-0.bpo.9-amd64 #1 SMP Debian 5.10.70-1~bpo10+1 (2021-10-10) x86_64 GNU/Linux</code></pre></div><p>This not an exception - I am &quot;on the road&quot; to replace my debian infra with devuan and starting<br />with containers. All behave the same.<br />Wether on debian 10/11/12 lxc-containers have that problem.<br />There are no firewall/iptables restrictions in use making this tests.<br />I read in another thread (from 2024 in galaxy) that this even happend on hardware,<br />which - at least - my first and only hardware installtion does not have.<br />I generally install iputils-ping. it has nothing to do with interfaces and routes, I use<br />always the same structures.</p><p>Thanks,,<br />Manfred</p>]]></description>
			<author><![CDATA[dummy@example.com (webman)]]></author>
			<pubDate>Sat, 31 May 2025 15:54:09 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=55924#p55924</guid>
		</item>
	</channel>
</rss>
