mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-23 16:29:42 -04:00
added cam
This commit is contained in:
parent
95f2454465
commit
247b8e2066
3 changed files with 10 additions and 7 deletions
|
|
@ -125,9 +125,11 @@
|
||||||
# Block specific camera MACs from forwarding (instant DROP, no timeouts)
|
# Block specific camera MACs from forwarding (instant DROP, no timeouts)
|
||||||
# Add each camera MAC here as you set them up
|
# Add each camera MAC here as you set them up
|
||||||
iptables -A FORWARD -m mac --mac-source 00:1f:54:c2:d1:b1 -j DROP # parking_lot
|
iptables -A FORWARD -m mac --mac-source 00:1f:54:c2:d1:b1 -j DROP # parking_lot
|
||||||
|
iptables -A FORWARD -m mac --mac-source 00:1f:54:b2:9b:1d -j DROP # living_room/kitchen
|
||||||
'';
|
'';
|
||||||
extraStopCommands = ''
|
extraStopCommands = ''
|
||||||
iptables -D FORWARD -m mac --mac-source 00:1f:54:c2:d1:b1 -j DROP || true
|
iptables -D FORWARD -m mac --mac-source 00:1f:54:c2:d1:b1 -j DROP || true
|
||||||
|
iptables -D FORWARD -m mac --mac-source 00:1f:54:b2:9b:1d -j DROP || true
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
@ -156,6 +158,7 @@
|
||||||
# Static DHCP reservations for cameras
|
# Static DHCP reservations for cameras
|
||||||
dhcp-host = [
|
dhcp-host = [
|
||||||
"00:1f:54:c2:d1:b1,192.168.1.194,parking_lot"
|
"00:1f:54:c2:d1:b1,192.168.1.194,parking_lot"
|
||||||
|
"00:1f:54:b2:9b:1d,192.168.1.147,living_room_kitchen"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -5,9 +5,9 @@
|
||||||
| Camera | Model | MAC | IP |
|
| Camera | Model | MAC | IP |
|
||||||
|--------|-------|-----|-----|
|
|--------|-------|-----|-----|
|
||||||
| parking_lot | W461ASC | 00:1f:54:c2:d1:b1 | 192.168.1.194 |
|
| parking_lot | W461ASC | 00:1f:54:c2:d1:b1 | 192.168.1.194 |
|
||||||
| doorbell | B463AJ | | | |
|
| doorbell | B463AJ | | |
|
||||||
| living_room | W463AQ | | | |
|
| living_room | W463AQ (ch1) | 00:1f:54:b2:9b:1d | 192.168.1.147 |
|
||||||
| kitchen | W463AQ | | | |
|
| kitchen | W463AQ (ch2) | 00:1f:54:b2:9b:1d | 192.168.1.147 |
|
||||||
| porch | SL300 | | | |
|
| porch | SL300 | | | |
|
||||||
|
|
||||||
## Network Architecture
|
## Network Architecture
|
||||||
|
|
|
||||||
|
|
@ -30,18 +30,18 @@ in
|
||||||
}];
|
}];
|
||||||
};
|
};
|
||||||
living_room = {
|
living_room = {
|
||||||
enabled = false;
|
enabled = true;
|
||||||
detect.enabled = false;
|
detect.enabled = false;
|
||||||
ffmpeg.inputs = [{
|
ffmpeg.inputs = [{
|
||||||
path = "rtsp://admin:ocu?u3Su@192.168.0.181/cam/realmonitor?channel=1&subtype=0";
|
path = "rtsp://admin:ocu?u3Su@192.168.1.147/cam/realmonitor?channel=1&subtype=0";
|
||||||
roles = [ "record" ];
|
roles = [ "record" ];
|
||||||
}];
|
}];
|
||||||
};
|
};
|
||||||
kitchen = {
|
kitchen = {
|
||||||
enabled = false;
|
enabled = true;
|
||||||
detect.enabled = false;
|
detect.enabled = false;
|
||||||
ffmpeg.inputs = [{
|
ffmpeg.inputs = [{
|
||||||
path = "rtsp://admin:ocu?u3Su@192.168.0.181/cam/realmonitor?channel=2&subtype=0";
|
path = "rtsp://admin:ocu?u3Su@192.168.1.147/cam/realmonitor?channel=2&subtype=0";
|
||||||
roles = [ "record" ];
|
roles = [ "record" ];
|
||||||
}];
|
}];
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue