OpenWRT
Downloading the Firmware
use the OpenWRT Firmware Selector to download the appropriate image.
USB Ethernet Adapters
"for USB-to-Ethernet ASIX AX88179 based USB 3.0/2.0\ to Gigabit Ethernet adapters" (see here)
Updates
it is highly discouraged to update all packages use opkg update
see here
Hostname
Tailscale
Installation
see this OpenWRT wiki page for the basic setup guide
see this OpenWRT wiki page for all things Raspberry Pi
opkg update
opkg install tailscale
opkg install iptables-nft kmod-ipt-conntrack kmod-ipt-conntrack-extra kmod-ipt-conntrack-label kmod-nft-nat
opkg install kmod-ipt-nat
service tailscale restart
tailscale up --ssh --advertise-routes=192.168.10.0/24
Configuraiton
/etc/config/firewall
config zone
option name 'tailscale'
list network 'tailscale'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'ACCEPT'
option masq '1'
option mtu_fix '1'
# At the end of the file
config rule
option name 'Allow Tailscale'
option src '*'
option target 'ACCEPT'
option proto 'udp'
option dest_port '41641'
config forwarding
option src 'tailscale'
option dest 'lan'
config forwarding
option src 'lan'
option dest 'tailscale'
Raspberry Pi 4
Case Fan
see here
Configure Wireless WAN
Configure wireless interface
/etc/config/wireless
config wifi-device 'radio0'
option type 'mac80211'
option path 'platform/soc/fe300000.mmcnr/mmc_host/mmc1/mmc1:0001/mmc1:0001:1'
option channel '7'
option band '5g'
option htmode 'HT20'
option hwmode '11g'
option short_gi_40 '0'
option disabled '0'
config wifi-iface 'wifinet1'
option device 'radio0'
option mode 'sta'
option network 'wwan' # or is it lan?
option ssid 'Lothlorien'
option encryption 'psk2'
option key 'EnChus81222'
Update the wifi settings on boot
DNS Configuration
Add the last line for ip addresses