Setup
Running bpi-r4 behind the ISP modem/router
/etc/config/networkconfig interface 'lan' ... list ipaddr '192.168.1.2/24' list dns '192.168.1.1' option gateway '192.168.1.1'reload_config
apk add block-mount kmod-usb-storage-uas kmod-nvme kmod-usb3 kmod-fs-ext4 kmod-fs-ntfs3 hdparm/etc/config/fstabconfig mount option enabled '1' option device '/dev/nvme0n1' option target '/overlay'reload_configblock mount- reboot
configs lost -> configure as bridged AP again
The out of the box wifi config doesn’t work. Here’s a working config(/etc/config/wireless):
- install zsh
apk add ca-certificates zsh curl git-http sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" which zsh && sed -i -- 's:/bin/ash:'`which zsh`':g' /etc/passwd - configure vim
apk add vim-full- ~/.vimrc
syntax on set tabstop=4 set softtabstop=0 noexpandtab set shiftwidth=4 colorscheme desert
- Change ports in
/etc/config/uhttpd echo "export DOMAIN=eschle.ddnss.eu" >> ~/.zshrcapk add dockerd docker-compose
- Create custom network
serverdocker network create --driver bridge --opt com.docker.network.bridge.name=dockerServer server - Stop dockerd and automatically configure network & firewall
service dockerd stop service dockerd uciadd service dockerd uciadd dockerServer dockerServer dockerServer /etc/config/firewallconfigure zone dockerServer <-- delete config zone 'docker' ... list network 'dockerServer' config forwarding option src 'docker' option dest 'lan' config forwarding option src 'lan' option dest 'docker'- Reload configs and restart services
reload config service firewall restart service dockerd start - verify
container run -it alpine /bin/ping 8.8.8.8 docker container run --network=server -it alpine /bin/ping 8.8.8.8
- install sftp server (fix scp -O issue)
apk add openssh-sftp-server