Skip to content

Instantly share code, notes, and snippets.

View alexisespinosa's full-sized avatar

Alexis Espinosa alexisespinosa

View GitHub Profile
@rikka0w0
rikka0w0 / openwrt_ipv6_relay.md
Created August 31, 2025 14:26
OpenWrt as IPv6 Relay

In certain case, our ISP only provide us a /64 PD and we cannot further split it into subnets. If we cascade multiple routers together, the downstream routers may loose IPv6 access. IPv4 access can be easily guaranteed by NAT. But in the world of IPv6, NAT should be avoided where possible.

The following setup will be on an OpenWrt router connected behind an ISP-provided IPv6-ready router. All configurations are done on the OpenWrt router, and we don't touch the ISP-provided router. We dont need to configure any IPv4, it uses NAT and will work by default.

Here is how to configure relay for IPv6:

In /etc/config/network, our IPv6 upstream interface looks like this

@rikka0w0
rikka0w0 / ipv6_relay_pxe_coexist.md
Last active October 30, 2025 21:49
Setup IPv6 Relay and IPv6 PxE (Co-exist) on OpenWrt

Some ISP only offer you a /64 prefix. If you want to add an OpenWrt router between the ISP router and your LAN while granting IPv6 access to LAN devices, you need relay. OpenWrt's built-in odhcpd(odhcp-ipv6only) can handle DHCPv6 relay. To enable this feature, you need to enable relay mode for ra and ndp for the wan6 (The upstream-facing IPv6 interface) and lan:

image image

Reboot your router and your LAN devices should get IPv6 addresses.

@fardjad
fardjad / taming-an-onyx-tablet.md
Last active November 4, 2025 09:57
[Taming an Onyx Tablet] The documented process of securing my Onyx Boox tablet #blog #onyx #boox

Taming an Onyx Tablet

Onyx tablets reportedly phone home and send "data" to some servers in China. The manufacturer apparently refuses to publish the source-code modifications to the OS and the open-source apps they are using and they even go as far as violating GPL.

Of course I learned all that after buying this tablet. To ease my mind, I spent some time debloating it and then blocked the outgoing traffic to