This article describes the first setup of an OpenWRT after the OS got flashed.
Go to all articles of this series and the description of the test setup:

Connect a LAN cable to eth1
of the OpenWRT device and login via LuCi.
The OpenWRT got flashed on the AVM FRITZ!Box 4040 already. A detailed description is available on the official website:
➡ https://openwrt.org/toh/avm/avm_fritz_box_4040
Open the address in you web browser
Login credentials are by default :
- User name:
root
- Password:
no password set!
Right after the successful set a new password forroot
user
Set a new password immediately after your first login
System - Administration - Router Password
Use another browser and try to login with your new credentials.
The IP address is by default 192.168.1.1
(= openwrt.lan
). DHCP server is enabled and the connected client will get assigned an IP address within this IP range.

When you are able to login to OpenWRT with your new password connect the AVM FRITZ!Box 4040 to your local lan. Plug a cable into port WAN
.
Your DHCP server of your router will assign a new IP address to OpenWRT.

Gib mir gerne einen Kaffee ☕ aus!
Wenn dir meine Beiträge gefallen und geholfen haben, dann kannst du mir gerne einen Kaffee ☕ ausgeben.
bc1qfuz93hw2fhdvfuxf6mlxlk8zdadvnktppkzqzj
After these few steps you can start with the configuration of your OpenWRT device.
Reconnect your client to your local network and login to LuCi using the IP address that got assigned to interface WAN
by DHCP server of your router.
To access the OpenWRT device from your local network you have to change the Firewall - Zone Settings
for wan
.
This is only relevant when you have devices in your main routers network that should get access to OpenWRT. If you connect all your devices to the OpenWRT’s lan
then leave it as it is.

Otherwise change the Input to accept

See all articles of this series …

… on strobelstefan.de
➡ Overview of all OpenWRT Articles/

… on codeberg.org
➡ see manual on codeberg.org
Gib mir gerne einen Kaffee ☕ aus!
Wenn dir meine Beiträge gefallen und geholfen haben, dann kannst du mir gerne einen Kaffee ☕ ausgeben.
bc1qfuz93hw2fhdvfuxf6mlxlk8zdadvnktppkzqzj
Source:
– https://openwrt.org/
– Official OpenWRT Logo – https://openwrt.org/_media/docs/guide-graphic-designer/openwrt-logo-usage-guidelines.pdf

ist absolut technik-begeistert und großer Fan von Linux und Open Source. Raspberry Pi Bastler der ersten Stunde und nach wie vor begeistert von dem kleinen Stück Hardware, auf dem er tolle Projekte umsetzt. Teilt hier seine Erfahrungen mit Nextcloud, Pi-hole, YubiKey, Synology und openmediavault und anderen spannenden IT-Themen. Nutzt Markdown und LaTeX zum Dokumentieren seiner Projekte und Gitea zum Versionieren. Sitzt vor einem 49“ Monitor, nutzt Windows und MacOS zum Arbeiten, Linux auf seinen Servern und virtuellen Maschinen und hört dabei Spotify und MP3s und Radio-Streams über seinen RadioPi.
Hi Stefan,
du musst den WAN Port unter FIREWALL > GENERALL > ZONES > WAN > INPUT Traffic Rules < erstellen.
Z.B erlaube Zugriff auf Luci über WAN (Port 80:)
################################################
Name: Allow_Luci_from_WAN
Match: Incoming IPv4, protocol TCP From wan To this device, port 80
Action: Accept input
################################################
Du kannst die obere Traffice Rule auch noch weiter einschränken und z.b auf nur ein Gerät (IP-Adresse des Client von deiner Fritzbox ohne Openwrt) Begrenzen:
################################################
Name: Allow_Luci_from_WAN_Client
Match: Incoming IPv4, protocol TCP From wan, IP To this device, port 80
Action: Accept input
################################################
Hallo bugmenot,
danke für den Tipp!
Der Zugriff auf LuCi kann auch ausschließlich über einen SSH-Tunnel erfolgen.
Die Anleitung findest du hier:
OpenWRT – LuCi via SSH Tunnel
Grüße
Stefan