<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[how do i convince Alpine Linux that it doesn&#x27;t have IPv4 connectivity?]]></title><description><![CDATA[<p>how do i convince Alpine Linux that it doesn't have IPv4 connectivity?  when i run e.g. "ping bbc.co.uk", it picks the IPv4 address first, even though it doesn't have a default route.</p><p>i can't disable IPv4 because i need it for Wireguard.</p><p>i can't use /etc/gai.conf because musl libc doesn't support that.</p><p>this makes e.g. apk very slow because it waits for IPv4 to time out before it tries IPv6.  i don't understand why it doesn't immediately get "no route to host" over IPv4...</p><p>any ideas?</p><p><a href="https://mastodon.bsd.cafe/tags/ipv6" rel="tag">#<span>ipv6</span></a> <a href="https://mastodon.bsd.cafe/tags/alpinelinux" rel="tag">#<span>alpinelinux</span></a></p>]]></description><link>https://board.circlewithadot.net/topic/9fbc58f1-4547-46cc-b076-69f3518289b2/how-do-i-convince-alpine-linux-that-it-doesn-t-have-ipv4-connectivity</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 19:22:33 GMT</lastBuildDate><atom:link href="https://board.circlewithadot.net/topic/9fbc58f1-4547-46cc-b076-69f3518289b2.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 08 Apr 2026 11:55:46 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to how do i convince Alpine Linux that it doesn&#x27;t have IPv4 connectivity? on Wed, 08 Apr 2026 12:49:29 GMT]]></title><description><![CDATA[<p><span><a href="https://ipv6.social/@litchralee_v6">@<span>litchralee_v6</span></a></span> yeah, i think it must be something like that.  for now i'm going to leave it with my hacky OUTPUT REJECT rule and come back to this later <img src="https://board.circlewithadot.net/assets/plugins/nodebb-plugin-emoji/emoji/android/1f604.png?v=28325c671da" class="not-responsive emoji emoji-android emoji--smile" style="height:23px;width:auto;vertical-align:middle" title=":D" alt="😄" />  thanks for the help!</p>]]></description><link>https://board.circlewithadot.net/post/https://mastodon.bsd.cafe/users/lw/statuses/116369166812040662</link><guid isPermaLink="true">https://board.circlewithadot.net/post/https://mastodon.bsd.cafe/users/lw/statuses/116369166812040662</guid><dc:creator><![CDATA[lw@mastodon.bsd.cafe]]></dc:creator><pubDate>Wed, 08 Apr 2026 12:49:29 GMT</pubDate></item><item><title><![CDATA[Reply to how do i convince Alpine Linux that it doesn&#x27;t have IPv4 connectivity? on Wed, 08 Apr 2026 12:47:26 GMT]]></title><description><![CDATA[<p><span><a href="/user/lw%40mastodon.bsd.cafe" rel="nofollow noopener">@<span>lw</span></a></span> I did have weirdness when having ULAs (first time trying openwrt) with preference, but yeah not sure...</p>]]></description><link>https://board.circlewithadot.net/post/https://wetdry.world/users/lucasmz/statuses/116369158725551275</link><guid isPermaLink="true">https://board.circlewithadot.net/post/https://wetdry.world/users/lucasmz/statuses/116369158725551275</guid><dc:creator><![CDATA[lucasmz@wetdry.world]]></dc:creator><pubDate>Wed, 08 Apr 2026 12:47:26 GMT</pubDate></item><item><title><![CDATA[Reply to how do i convince Alpine Linux that it doesn&#x27;t have IPv4 connectivity? on Wed, 08 Apr 2026 12:45:49 GMT]]></title><description><![CDATA[<p><span><a href="/user/lw%40mastodon.bsd.cafe">@<span>lw</span></a></span> I think, but I'm not certain, this might be due to how WG attaches itself to the iptables/nftables chain, stealing packets before they get to the routing decision.</p><p>Perhaps "iptables -vL" will show something along those lines? It's been a while since I've dealt with iptables, and I now mostly prefer to do WG in a separate namespace so that my application containers don't have to be dual-stack.</p>]]></description><link>https://board.circlewithadot.net/post/https://ipv6.social/users/litchralee_v6/statuses/116369152370417206</link><guid isPermaLink="true">https://board.circlewithadot.net/post/https://ipv6.social/users/litchralee_v6/statuses/116369152370417206</guid><dc:creator><![CDATA[litchralee_v6@ipv6.social]]></dc:creator><pubDate>Wed, 08 Apr 2026 12:45:49 GMT</pubDate></item><item><title><![CDATA[Reply to how do i convince Alpine Linux that it doesn&#x27;t have IPv4 connectivity? on Wed, 08 Apr 2026 12:44:32 GMT]]></title><description><![CDATA[<p><span><a href="/user/lucasmz%40wetdry.world">@<span>lucasmz</span></a></span> although, perhaps this is related to the host itself having a ULA, so it prefers the IPv4 address.  but this doesn't seem to be configurable in musl <img src="https://board.circlewithadot.net/assets/plugins/nodebb-plugin-emoji/emoji/android/1f615.png?v=28325c671da" class="not-responsive emoji emoji-android emoji--confused" style="height:23px;width:auto;vertical-align:middle" title=":-/" alt="😕" /></p><p>on FreeBSD it just works, since it realises the host has no IPv4 connectivity.</p>]]></description><link>https://board.circlewithadot.net/post/https://mastodon.bsd.cafe/users/lw/statuses/116369147331277570</link><guid isPermaLink="true">https://board.circlewithadot.net/post/https://mastodon.bsd.cafe/users/lw/statuses/116369147331277570</guid><dc:creator><![CDATA[lw@mastodon.bsd.cafe]]></dc:creator><pubDate>Wed, 08 Apr 2026 12:44:32 GMT</pubDate></item><item><title><![CDATA[Reply to how do i convince Alpine Linux that it doesn&#x27;t have IPv4 connectivity? on Wed, 08 Apr 2026 12:43:20 GMT]]></title><description><![CDATA[<p><span><a href="/user/lucasmz%40wetdry.world">@<span>lucasmz</span></a></span> "why is IPv4 being preferred?" is exactly what i'm asking <img src="https://board.circlewithadot.net/assets/plugins/nodebb-plugin-emoji/emoji/android/1f604.png?v=28325c671da" class="not-responsive emoji emoji-android emoji--smile" style="height:23px;width:auto;vertical-align:middle" title=":D" alt="😄" /></p><p>i do use ULAs internally, but that shouldn't affect "ping bbc.co.uk" since it has a GUA.</p>]]></description><link>https://board.circlewithadot.net/post/https://mastodon.bsd.cafe/users/lw/statuses/116369142626802109</link><guid isPermaLink="true">https://board.circlewithadot.net/post/https://mastodon.bsd.cafe/users/lw/statuses/116369142626802109</guid><dc:creator><![CDATA[lw@mastodon.bsd.cafe]]></dc:creator><pubDate>Wed, 08 Apr 2026 12:43:20 GMT</pubDate></item><item><title><![CDATA[Reply to how do i convince Alpine Linux that it doesn&#x27;t have IPv4 connectivity? on Wed, 08 Apr 2026 12:41:23 GMT]]></title><description><![CDATA[<p><span><a href="/user/lw%40mastodon.bsd.cafe" rel="nofollow noopener">@<span>lw</span></a></span> why is IPv4 being preferred anyway are you using ULAs</p>]]></description><link>https://board.circlewithadot.net/post/https://wetdry.world/users/lucasmz/statuses/116369134924309475</link><guid isPermaLink="true">https://board.circlewithadot.net/post/https://wetdry.world/users/lucasmz/statuses/116369134924309475</guid><dc:creator><![CDATA[lucasmz@wetdry.world]]></dc:creator><pubDate>Wed, 08 Apr 2026 12:41:23 GMT</pubDate></item><item><title><![CDATA[Reply to how do i convince Alpine Linux that it doesn&#x27;t have IPv4 connectivity? on Wed, 08 Apr 2026 12:36:59 GMT]]></title><description><![CDATA[<p><span><a href="https://ipv6.social/@litchralee_v6">@<span>litchralee_v6</span></a></span> okay so, bizarrely, the packets are going over the Wireguard interface.</p><p>hyacinth# ping bbc.co.uk<br />PING bbc.co.uk (151.101.192.81): 56 data bytes</p><p>---</p><p>hyacinth:/etc# tcpdump -ni rose dst host 151.101.192.81<br />tcpdump: verbose output suppressed, use -v[v]... for full protocol decode<br />listening on rose, link-type RAW (Raw IP), snapshot length 262144 bytes<br />13:35:52.189219 IP 23.155.224.95 &gt; 151.101.192.81: ICMP echo request, id 8050, seq 57, length 64<br />13:35:53.189802 IP 23.155.224.95 &gt; 151.101.192.81: ICMP echo request, id 8050, seq 58, length 64<br />13:35:54.189848 IP 23.155.224.95 &gt; 151.101.192.81: ICMP echo request, id 8050, seq 59, length 64</p><p>but there's no route, so this shouldn't be happening.  perhaps wg-quick is doing some "helpful magic" here?  </p><p>(i usually use plain wg, but that seems to be a bit of a pain on Linux...)</p>]]></description><link>https://board.circlewithadot.net/post/https://mastodon.bsd.cafe/users/lw/statuses/116369117628169110</link><guid isPermaLink="true">https://board.circlewithadot.net/post/https://mastodon.bsd.cafe/users/lw/statuses/116369117628169110</guid><dc:creator><![CDATA[lw@mastodon.bsd.cafe]]></dc:creator><pubDate>Wed, 08 Apr 2026 12:36:59 GMT</pubDate></item><item><title><![CDATA[Reply to how do i convince Alpine Linux that it doesn&#x27;t have IPv4 connectivity? on Wed, 08 Apr 2026 12:32:17 GMT]]></title><description><![CDATA[<p><span><a href="/user/lw%40mastodon.bsd.cafe">@<span>lw</span></a></span> Firstly, I want to apologize for missing the part in your original post where you already said there was no default route. I now see how strange the situation is.</p><p>It's perplexing as to what would be holding up the v4 connection. Is tcpdump or Wireshark available to examine the traffic? The primary DNS server is on v6?</p>]]></description><link>https://board.circlewithadot.net/post/https://ipv6.social/users/litchralee_v6/statuses/116369099136306680</link><guid isPermaLink="true">https://board.circlewithadot.net/post/https://ipv6.social/users/litchralee_v6/statuses/116369099136306680</guid><dc:creator><![CDATA[litchralee_v6@ipv6.social]]></dc:creator><pubDate>Wed, 08 Apr 2026 12:32:17 GMT</pubDate></item><item><title><![CDATA[Reply to how do i convince Alpine Linux that it doesn&#x27;t have IPv4 connectivity? on Wed, 08 Apr 2026 12:31:17 GMT]]></title><description><![CDATA[<p>workaround:</p><p>iptables -A OUTPUT -j REJECT</p><p>not ideal, but at least installing packages works now...</p>]]></description><link>https://board.circlewithadot.net/post/https://mastodon.bsd.cafe/users/lw/statuses/116369095207076967</link><guid isPermaLink="true">https://board.circlewithadot.net/post/https://mastodon.bsd.cafe/users/lw/statuses/116369095207076967</guid><dc:creator><![CDATA[lw@mastodon.bsd.cafe]]></dc:creator><pubDate>Wed, 08 Apr 2026 12:31:17 GMT</pubDate></item><item><title><![CDATA[Reply to how do i convince Alpine Linux that it doesn&#x27;t have IPv4 connectivity? on Wed, 08 Apr 2026 12:22:24 GMT]]></title><description><![CDATA[<p><span><a href="https://ipv6.social/@litchralee_v6">@<span>litchralee_v6</span></a></span> </p><p>hyacinth:~# ip -4 route<br />23.155.224.0/24 dev eth0 proto kernel scope link src 23.155.224.95<br />176.126.243.164 via 23.155.224.1 dev eth0<br />hyacinth:~#</p><p>that /32 route is the Wireguard endpoint, no default route.</p>]]></description><link>https://board.circlewithadot.net/post/https://mastodon.bsd.cafe/users/lw/statuses/116369060302507614</link><guid isPermaLink="true">https://board.circlewithadot.net/post/https://mastodon.bsd.cafe/users/lw/statuses/116369060302507614</guid><dc:creator><![CDATA[lw@mastodon.bsd.cafe]]></dc:creator><pubDate>Wed, 08 Apr 2026 12:22:24 GMT</pubDate></item><item><title><![CDATA[Reply to how do i convince Alpine Linux that it doesn&#x27;t have IPv4 connectivity? on Wed, 08 Apr 2026 12:21:53 GMT]]></title><description><![CDATA[<p><span><a href="/user/lw%40mastodon.bsd.cafe">@<span>lw</span></a></span> What does "ip -4 route" look like? There might be a default route that it's trying to connect through, one which dead-ends but it won't know that until it tries. For WG, if you remove the default route and replace it with a static route for precisely the WG endpoint, I think that should result in all Legacy IP traffic being unroutable except for WG.</p>]]></description><link>https://board.circlewithadot.net/post/https://ipv6.social/users/litchralee_v6/statuses/116369058276446317</link><guid isPermaLink="true">https://board.circlewithadot.net/post/https://ipv6.social/users/litchralee_v6/statuses/116369058276446317</guid><dc:creator><![CDATA[litchralee_v6@ipv6.social]]></dc:creator><pubDate>Wed, 08 Apr 2026 12:21:53 GMT</pubDate></item><item><title><![CDATA[Reply to how do i convince Alpine Linux that it doesn&#x27;t have IPv4 connectivity? on Wed, 08 Apr 2026 11:59:03 GMT]]></title><description><![CDATA[<p><span><a href="/user/lw%40mastodon.bsd.cafe">@<span>lw</span></a></span> Here's their issue tracker: <a href="https://gitlab.alpinelinux.org/groups/alpine/-/issues" rel="nofollow noopener"><span>https://</span><span>gitlab.alpinelinux.org/groups/</span><span>alpine/-/issues</span></a></p>]]></description><link>https://board.circlewithadot.net/post/https://mas.to/users/UnderEu/statuses/116368968466370664</link><guid isPermaLink="true">https://board.circlewithadot.net/post/https://mas.to/users/UnderEu/statuses/116368968466370664</guid><dc:creator><![CDATA[undereu@mas.to]]></dc:creator><pubDate>Wed, 08 Apr 2026 11:59:03 GMT</pubDate></item></channel></rss>