Mo3he / Axis_Cam_Tailscale

Here you will find the files and instructions required to run Tailscale VPN on Axis Communications Cameras
BSD 3-Clause "New" or "Revised" License
23 stars 6 forks source link

Support for ARTPEC-5 and ARTPEC-4? #3

Open tris opened 1 year ago

tris commented 1 year ago

Thank you for the most excellent app! I'm running it on three Axis cameras (ARTPEC-6 and ARTPEC-7).

In case it's possible to support older cameras on SDK 2, here's the (lightly edited) getAllProperties output from my M5525-E:

$ curl --anyauth -s -u root http://10.8.0.26/axis-cgi/basicdeviceinfo.cgi --data '{"apiVersion":"1.0","context":"","method":"getAllProperties"}' | jq
Enter host password for user 'root':
{
  "apiVersion": "1.0",
  "data": {
    "propertyList": {
      "Architecture": "mips",
      "HardwareID": "757",
      "ProdVariant": "",
      "WebURL": "http://www.axis.com",
      "ProdNbr": "M5525-E",
      "SerialNumber": "xxxxxxxxxxxx",
      "Brand": "AXIS",
      "SocSerialNumber": "",
      "Soc": "Axis Artpec-5",
      "BuildDate": "Oct 29 2020 11:52",
      "ProdShortName": "AXIS M5525-E",
      "Version": "8.40.4.1",
      "ProdFullName": "AXIS M5525-E PTZ Dome Network Camera",
      "ProdType": "PTZ Dome Network Camera"
    }
  },
  "context": ""
}

I also have a P5414-E running firmware 6.50.5.8 (latest available) which does not have the /axis-cgi/basicdeviceinfo.cgi endpoint. It's listed on https://camstreamer.com/download-app-all-supported-cameras as "Artpec-4 (MIPS) SDK 2".

tris commented 1 year ago

Some testing (manually copying tailscale_1.38.4_mipsle.tgz over) reveals that tailscaled appears to run fine on the P5414-E, but then amusingly the OOM killer comes for it as soon as I run tailscale up. So I think that one is probably not worthwhile.

I still have high hopes for ARTPEC-5, but I temporarily lost VPN access to that camera -- will report back.

Mo3he commented 1 year ago

Hi, Sorry for my delayed response, I have been trying to understand how to compile the acap for version 2.0 that would work on Artpec5 but have had no luck so far. please try the below instructions as this is esentially what the acap does but using a script.

To install Tailscale on Axis cameras Copy the files "tailscale" and "tailscaled" for the correct proccesor to the camera in a new directory /usr/local/packages/tailscale cd /usr/local/packages/tailscale chmod 777 tailscaled chmod 777 tailscale Copy "tailscaled.service" to /etc/systemd/system systemctl daemon-reload systemctl enable tailscaled.service systemctl start tailscaled.service cd /usr/local/packages/tailscale ./tailscale up Copy URL to browser to authenticate Tailscale

bryanjhv commented 3 months ago

I'm trying to run Tailscale inside a M5525-E (ARTPEC-5) also. After some investigation, here's what I've found so far:

So, with these details, we find that:

That in mind, options would be reduced to:

I'll keep trying some method until it works. Is there anything else I should take into account? Like, for example, ways to disable the OOM killer mentioned above, and other quirks?