busylog
odhcpd modes with ra/pd allocation
1 simple wan - lan relay. ra is provided by upstream
wan.master=1, ra=relay, dhcpv6=relay, rdp proxy=1
lan.ra=relay, dhcpv6=relay, rdp proxy=1
2 advanced wan - lan relay, ra is provided by upstream
if network.wan6(or auto generated wan_6).reqprefix=auto, then it could provide pd prefix. (needs to be "no" to disable pd)
if pd prefix is enabled(you see IPv6-PD), you can only allocate to lan with non-empty ip6hint, with ra=server,dhcpv6=server. so it isnt the /64 ra range.
if you still want isp ra, so I learned from this article (https://blog.pzc.moe/articles/notes…
busylog
Port forwarder example in openwrt ucode
disclaimer: code is AI generated, uloop as poll.
so the missing ones are ARGV, or change substr to something else.
#!/usr/bin/ucode
import * as uloop from 'uloop';
import * as socket from 'socket';
const LISTEN_PORT = 12345;
const TARGET_HOST = "192.168.0.1";
const TARGET_PORT = 80;
uloop.init();
let listener = socket.listen("0.0.0.0", LISTEN_PORT);
function close_pair(client, upstream, h1, h2) {
h1?.delete();
h2?.delete();
client?.close();
upstream?.close();
}
function forward(src, dst, hsrc, hdst) {
let data = src.recv(8192);
if (!data || length(data) == 0) {
close_pair…
busylog
legacy alpine linux as zfs recovery env for raspberry pi
if alpine linux didnt upgrade linux-rpi (netboot kernel version is the same kernel version for that release),
then just add zfs, zfs-scripts (required for compatibility.d files), zfs-rpi (zfs-lts for other devices) it is done!
if you boot with modloop enabled, simply do:
/etc/init.d/modloop stop; rm /lib/firmware /lib/modules
https://dl-cdn.alpinelinux.org/alpine/v3.21/releases/aarch64/
as of writing, v3.21(.7) includes openzfs 2.2.
you can refer to zfsbootmenu guide for mkinitfs, needs zfs zfshost?