blakejarvis.com
  • blakejarvis.com
  • Home Assistant & Home Automations
    • Setting up FTP with Amcrest Camera
    • Home Assistant Amcrest Video Viewer
  • OSCP
    • External Resources
    • Buffer Overflow Framework
    • OSCP - Things to Try When Stuck
  • Web Server Log Analysis
    • Log Analysis Part 1: Using Fast Reverse Proxy (FRP) to Expose Logging Infrastructure
    • Log Analysis Part 2: Using Logstash’s Grok Filter to Parse Docker Nginx Logs
    • Log Analysis Part 3: Using Greynoise with Logstash
  • Miscellaneous Articles
    • Using Cloudflare Page Rules to Point a Root Domain to a GitBook Site
    • How to Secure the Ghost Blogging Platform
    • An Overview of Apple and Google's Privacy-Preserving Contact Tracing Framework
    • Active Directory Deception Technology
Powered by GitBook
On this page
  • Overview
  • Configuring an FTP Server
  • FTP as an Amcrest Storage Destination
  1. Home Assistant & Home Automations

Setting up FTP with Amcrest Camera

Configuring FTP as a storage destination for Amcrest motion events

Previousblakejarvis.comNextHome Assistant Amcrest Video Viewer

Last updated 2 years ago

Overview

Amcrest cameras can be fully configured to operate with no internet access, and can store videos and motion recordings locally on an SD card, via FTP, or on a NAS device. This post details how to set up the Amcrest camera to store motion events on a remote server via FTP, which can be displayed in Home Assistant.

The Amcrest camera model used in this blog is the Amcrest 1080P WiFi Security Camera 2MP Indoor Pan/Tilt Wireless IP Camera, IP2M-841W, however the configuration options for various Amcrest cameras are likely very similar.

Configuring an FTP Server

There are a multitude of articles detailing how to set up an FTP server. The main FTP requirements for Amcrest are:

  • Network access from the Amcrest camera to the FTP server

  • An FTP username and password the Amcrest camera can use

  • Permissions to read and write over FTP on the remote server

See the following articles for how to set up FTP:

FTP as an Amcrest Storage Destination

Once an FTP server is set up, the Amcrest camera can be configured to store videos on the FTP server. Browse to the web server running on the camera's IP address on web 80 and authenticate as the admin user.

Storage Schedule - Navigate to the storage schedule tab, and set the motion and alarm options to 24/7. This causes the camera to record motion events all day.

Storage Destination - Navigate to the storage destination tab, and enter the FTP connection details of the recently configured FTP server.

For various reasons, the Amcrest connection over FTP could be unsuccessful. Use the "test" option to verify the Amcrest camera can successfully connect to the FTP server and write files. When troubleshooting, run the following tcpdump command on the FTP server:

 sudo tcpdump -i eno1 port 21

And look for FTP commands being performed by the Amcrest Camera, such as:

FTP: 230 Login successful.
FTP: 257 "/" is the current directory
FTP: CWD uploads/FTP_TEST/1663706237_44757228270
FTP: stor ftp_test.txt
FTP: DELE ftp_test.txt
https://www.digitalocean.com/community/tutorials/how-to-set-up-vsftpd-for-a-user-s-directory-on-ubuntu-20-04
https://phoenixnap.com/kb/install-ftp-server-on-ubuntu-vsftpd