Zum Inhalt

AMV Router Configuration

Configuration on an AVM router to reach a downstream OpenWrt device from your network:

  • DynDNS
  • Port Forwarding
  • IPv4 settings
  • IPv4 Routes

All articles of the OpenWrt blog series

The AVM device (= AVM FRITZ!Box 7390) is the router in the local network that establishes the internet connection to your ISP.

  • AVM FRITZ!Box 7390 = router
  • AVM FRTIZ!Box 4040 = OpenWrt

The OpenWrt (= AVM FRTIZ!Box 4040) is connected via WAN port to the AVM router.

DNS Settings

Use DNS server you trust. By default, the router gets the DNS servers provided and maintained by your ISP.

AVM Router Configuration

List of possible DNS servers

No matter which DNS server you choose, support the provider. The server runs not only by air and love! Donations are very welcome!

๐Ÿ‡ฉ๐Ÿ‡ช ACHTUNG!!!
Egal fรผr welchen DNS Server du dich entscheidest, unterstรผtze den Anbieter. Der Server lรคuft nicht nur von Luft und Liebe! Spenden sind immer willkommen!


The DynDNS configuration on the router is required to get a temporary public IP address.

AVM Router Configuration

Port Forward

In the port forward section you have to define the ports that shall be open in the router and forwarded to your OpenWrt device.

AVM Router Configuration

  • 51820 = WireGuard
  • 20.000 = custom port for a Nextcloud server
  • 80 and 443 are only open temporarily for installation and renewal of Let's Encrypt certificates

AVM Router Configuration

In the screenshot you can see that the DynDNS works as expected and the IP address is assigned to the port forward rule.

Network Settings

IPv4 settings

In our network a Pi-hole is the main DNS server. It shall be provided to all devices via DHCP server.

I have decided to run a Pi-hole before the OpenWrt ad blocker because Pi-hole

  • is easy to install and configure
  • is easy to maintain
  • has a powerful web GUI
  • lot of features which can be configured via web GUI in any web browser.

AVM Router Configuration

Enter the ip address of your Pi-hole (or any other ad blocker in the network.)

AVM Router Configuration

IPv4 Routes

IP routes are important if you wanna access from your local network the OpenWrt device or devices that are connected to the OpenWrt in the lan network. (keyword SSH Jump Host)

You can access from any client located in your routers network clients that are located in the OpenWrt's lan network (

AVM Router Configuration

Set the routes as needed.

AVM Router Configuration

All articles of the OpenWrt series

Gib mir gerne einen Kaffee ☕ aus โ—๏ธ

Wenn dir meine Beitrรคge gefallen und geholfen haben, dann kannst du mir gerne einen Kaffee โ˜•๏ธ ausgeben.

Donation via PayPalDonation via LiberaPay

Donation via Bitcoin
Bitcoin Address: bc1qfuz93hw2fhdvfuxf6mlxlk8zdadvnktppkzqzj


Official OpenWrt Logo - https://OpenWrt.org/_media/docs/guide-graphic-designer/OpenWrt-logo-usage-guidelines.pdf