A How To On How To Display Your IP Cameras In Web Sites

Any major updates coming, Upcoming Software, General Security advice for others and topics alike Post them here so other users can chat with you.
pierreforget
Posts: 10
Joined: Thu Aug 25, 2016 10:05 am

Re: A How To On How To Display Your IP Cameras In Web Sites

Post by pierreforget »

And yes I was seeing your URL:

$ipcam_url = "http://extcam-22.se.axis.com/jpg/1/image.jpg";

before opening the input port on the server side.
pierreforget
Posts: 10
Joined: Thu Aug 25, 2016 10:05 am

Re: A How To On How To Display Your IP Cameras In Web Sites

Post by pierreforget »

Hi Don,

Just needed

chmod 666 ipcam1.jpg

to be able to have the image saved to disk.
User avatar
TheUberOverLord
Posts: 32
Joined: Sun Jul 31, 2016 5:14 pm

Re: A How To On How To Display Your IP Cameras In Web Sites

Post by TheUberOverLord »

I can assure you that it's "Outbound" ports from the servers perspective. Not "Inbound" ports. The request to grab a image from the IP Camera, from the server. Is a "Outbound" request from the server. Not a "Inbound" request from the server.

Additionally, No need to do anything with IPTABLES is required with a normal install of Linux. So, your issue was being caused by a file security problem. Which by following the instructions in the ___ReadThisFirst.txt file would have resolved your issue alone. Without doing anything else.

Yes, changing the security to write/read for ipcam1.jpg was going to be my next suggestion.

I had just assumed that you followed the instructions in the ___ReadThisFirst.txt file. Which stated that must be done.

Don
pierreforget
Posts: 10
Joined: Thu Aug 25, 2016 10:05 am

Re: A How To On How To Display Your IP Cameras In Web Sites

Post by pierreforget »

TheUberOverLord wrote:Thanks.

I can assure you that it's "Outbound" ports from the servers perspective and not "Inbound" ports.

Additionally, IPTABLES was/is also not in play with your issue for normal Linux distribution installs. So this issue was caused by a file security write/read issue alone. Had you read the ___ReadThisFirst.txt file carefully. You would have seen the instruction to secure ipcam1.jpg for write/read file access which would have resolved your problem. By itself.

For Amcrest IP Cameras the URL should not be:

Code: Select all

$ipcam_url = "http://www.ste-agathe.com/cam-1.jpg";
But should be this:

Code: Select all

$ipcam_url = "http://User:Password@DDNSorISPIPAddress:PortForCamera/cgi-bin/snapshot.cgi";
Don
Hi Don,

I made a test and removed the iptables rules and it stopped working. Put the rules back on and it started working again. Looks like my firewall is stricter than usual. Slackware.

Thanks again.

Pierre Forget
Post Reply