Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How to have Docker / Frigate container access to both eth0 and eth1 network interfaces (Dual NIC Frigate setup)?

Featured Replies

Hi, i want to move my Dahua home security cameras from recording to the Dahua NVR to the Unraid Frigate Docker Container.

I have installed a second NIC in the server and created an isolated camera subnet 10.1.1.1/24.

I am able to ping the cameras from the Unraid main page CLI, but fail to connect to them from Frigate .

Below an overview of the setup:

image.png

i see following errors in the system log:
Error opening input file rtsp://:@10.1.1.66:554/rtsp.
ERROR : Error opening input files: Server returned 404 Not Found

Attached you can find my frigat system logs.

the Frigate container seems to be assigned the IP address of my server on the main VLAN, and hence doesn't seem to have an IP address on the camera subnet:

image.png

Below my docker settings:

image.png

and my frigate container settings:

image.png

My frigate container network type is set to host instead of bridge in order to have access to both eth0 and eth1, maybe i need to also configure something else? Or is this not the right approach and should I create a MACVlan or IPVlan? Not sure how to do this though so if someone could provide some guidance please?

I also noticed that in the network type options br1 is not shown as an option which leads me to believe that eth1 (br1) is not passed to docker or its containers. is this observation correct?

image.png


Can someone guide me please what i should do to have docker, and in partical the frigate container, access to both network interfaces?

Also can someone explain me please how i can ping from inside the docker / container environment?

frigate-logs (1).txt

Solved by rernst

  • Author

I think i managed to have the frigate container have access to both eth0 and eth1 by following instructions from gemini which told me to define a macvlan for br1 (eth1).

i did this by puting in the cli:

docker network create -d macvlan --subnet=10.1.1.0/24 --gateway=10.1.1.1 -o parent=br1 cam_network

then i added the following to the post arguments in the frigate docker container settings:

&& docker network connect cam_network frigate

Now frigate seems to have an IP address both on the bridge network and the cam_network.

image.png

In order to be able to pign my camera, i first had to install the ping utility in the frigate container, as it seemed to not have it by default, i did so by following these instructions i.e. putting following commands in the CLI:

docker container exec -it frigate bash

apt update

apt install iputils-ping

exit

then pinging the camera from frigate via the cli gave the following result:

image.png

the errors in frigate

Error opening input file rtsp://:@10.1.1.66:554/rtsp.
ERROR : Error opening input files: Server returned 404 Not Found

still persist though...

Anyone has an idea what i might strill be doing wrong?

Edited by rernst

  • Author
  • Solution

turned out that the URL structure for my dahua camera needed to be different than was suggested by default by frigate;
i had to use:
rtsp://admin:password@ip_address:554/cam/realmonitor?channel=1&subtype=0

For anyone interested in the full solution / steps by steps to have my cameras work with frigate in a dual NIC setup, see solution

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.