Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Too confusing #38

Open
ICrashWindows12 opened this issue Sep 22, 2024 · 36 comments
Open

Too confusing #38

ICrashWindows12 opened this issue Sep 22, 2024 · 36 comments

Comments

@ICrashWindows12
Copy link

I have a A9 camera, I figured out AP mode to connect to it via the cameras AP, but the server part is where I struggle, because I want to house all cameras on one app, or connect to an NVR app on my phone, Video tutorial please? IF possible provide screenshots on how to connect, or video tutorial for the server.

@intx82
Copy link
Owner

intx82 commented Sep 26, 2024

chat-gpt rewrote the 'readme.md', check it please.

In your case you need to use STA mode, when all cameras connect to yours home Wi-Fi, but ensure first that you have possibility to add DNS records to yours router (ie override default naxclow ip's)

I am using 'mikrotik' as home router and in my case it looks like:

DNS

@ICrashWindows12
Copy link
Author

ICrashWindows12 commented Sep 29, 2024

chat-gpt rewrote the 'readme.md', check it please.

In your case you need to use STA mode, when all cameras connect to yours home Wi-Fi, but ensure first that you have possibility to add DNS records to yours router (ie override default naxclow ip's)

I am using 'mikrotik' as home router and in my case it looks like:

DNS

I do it on my routers port forwarding page? Also I use an optus router. this one to be exact
6130623-f-2e46c10d-627a-4ea1-83d3-ce631f1f957e

@ICrashWindows12
Copy link
Author

ICrashWindows12 commented Sep 29, 2024

My router does not support dns redirecting. SO i can't fake a server. I want to try to use this github: https://github.com/DavidVentura/cam-reverse/ to get the camera working but I dont know how. I have the a9 and X5 cam both ap's IP's are 192.168.169.1 for the cameras

@ICrashWindows12
Copy link
Author

chat-gpt rewrote the 'readme.md', check it please.

In your case you need to use STA mode, when all cameras connect to yours home Wi-Fi, but ensure first that you have possibility to add DNS records to yours router (ie override default naxclow ip's)

I am using 'mikrotik' as home router and in my case it looks like:

DNS

Can I use DDNS to do redirect clients DNS?

@intx82
Copy link
Owner

intx82 commented Oct 9, 2024

Not sure about DDNS, because it's a completely different thing. As you know, this is a 'fake' server, so to be 'fake', you need to found the way how to forward camera data to the server. In most cases, enough rewriting DNS records on yours router, but that's not all ways how to route a data to the server. I think, there also could be used forwarding data by IP.

Send me, please, a screenshot of yours router configuration page. The other way - install OpenWrt on yours router, or found any other router and put it between, just for cameras.

@ICrashWindows12
Copy link
Author

Screenshot 2024-10-09 at 17 48 37

@ICrashWindows12
Copy link
Author

ICrashWindows12 commented Oct 9, 2024

the port forwarding settings are located in network settings, if i could dns forward, it would be located there. But I searched and even looked at guides but I couldn't find anything related to DNS Forwarding, not even youtube. Also since there are many devices on my network, I do not want to risk installing openwrt on my router. And also because openwrt does not support my router which is the F@st 5366 TN. And no I am not changing my router since someone else pays for it

@intx82
Copy link
Owner

intx82 commented Oct 9, 2024

What's about modem setting?

@ICrashWindows12
Copy link
Author

What's about modem setting?
Screenshot 2024-10-09 at 18 01 43

I don't think so.

@intx82
Copy link
Owner

intx82 commented Oct 9, 2024

ok, here is DNS page, check it

@ICrashWindows12
Copy link
Author

ICrashWindows12 commented Oct 9, 2024

ok, here is DNS page, check it

Screenshot 2024-10-09 at 18 04 16
It is just that. I can't even change those

@intx82
Copy link
Owner

intx82 commented Oct 9, 2024

ok, i have an idea, but i will not support you on this way. You may install on yours server - cached DNS server (like dnsmasq), then add to it records to naxclow, and set on this page server ip.

All things which are not related to the naxclow could be taken from 8.8.8.8 (ie parent DNS server)

@intx82
Copy link
Owner

intx82 commented Oct 9, 2024

ok, here is DNS page, check it

Screenshot 2024-10-09 at 18 04 16 It is just that. I can't even change those

Ah, okay, i found a link - https://github.com/CptMeetKat/OptusDNSBypass you may try it.

@intx82
Copy link
Owner

intx82 commented Oct 9, 2024

also, if you can disable DHCP on router, then you can use something like https://pi-hole.net/ and configure DHCP and DNS on it, and set a gateway ip to yours router

@ICrashWindows12
Copy link
Author

also, if you can disable DHCP on router, then you can use something like https://pi-hole.net/ and configure DHCP and DNS on it, and set a gateway ip to yours router

Can you try DavidVentura's cam-reverse, like try to solve any connection issues?

I can't risk bricking or breaking my router since it's not my router, but I am allowed to use it. And also because I do not have a backup router, or a server to setup everything

@intx82
Copy link
Owner

intx82 commented Oct 10, 2024

also, if you can disable DHCP on router, then you can use something like https://pi-hole.net/ and configure DHCP and DNS on it, and set a gateway ip to yours router

Can you try DavidVentura's cam-reverse, like try to solve any connection issues?

I can't risk bricking or breaking my router since it's not my router, but I am allowed to use it. And also because I do not have a backup router, or a server to setup everything

It uses a different version of firmware (not naxclow), i don't have cameras for it.
You may try to found any cheapest router and put it between 'not' yours optus and yours cameras.

@magicus
Copy link
Contributor

magicus commented Oct 11, 2024

You will need to use an additional piece of hardware to use as a DNS server. This might be a Rasperry Pi, or another, more configurable router. Below, I'm assuming it's a RPi at 192.168.1.2.

The strategy is this: In your main router (which acts as DHCP server), you need to change it to tell all DHCP clients to use your RPi as DNS, so you'll need to change the DNS to 192.168.1.2. On the RPi, you'll install dnsmasq, and have it send all requests "upstream" to your real DNS (I highly recommend using 1.1.1.1, but you can use the DNS provided by your ISP), except for requests to naxclow.

I recently did something similar, and it's working fine for me.

@magicus
Copy link
Contributor

magicus commented Oct 11, 2024

Here is why I did on Ubuntu:

sudo apt install dnsmasq

then (as root) create /etc/dnsmasq.d/a9-camera with the following contents:

server=/naxclow.com/192.168.1.5
address=/naxclow.com/192.168.1.5

but replace 192.168.1.5 with the IP of the computer that actually runs the fake server.

I'm honestly not 100% sure about the dnsmasq syntax here, but I believe the address part matches naxclow.com exactly, and the server part matches *.naxclow.com. It might be possible to simplify this, but this is at least something that worked for me. 🤷

@magicus
Copy link
Contributor

magicus commented Oct 11, 2024

@intx82 Maybe you can copy some of these instructions into a wiki?

@ICrashWindows12
Copy link
Author

ICrashWindows12 commented Oct 11, 2024

Here is why I did on Ubuntu:

sudo apt install dnsmasq

then (as root) create /etc/dnsmasq.d/a9-camera with the following contents:

server=/naxclow.com/192.168.1.5
address=/naxclow.com/192.168.1.5

but replace 192.168.1.5 with the IP of the computer that actually runs the fake server.

I'm honestly not 100% sure about the dnsmasq syntax here, but I believe the address part matches naxclow.com exactly, and the server part matches *.naxclow.com. It might be possible to simplify this, but this is at least something that worked for me. 🤷

I do not have a server to run it on for 24/7. I know raspberry Pi's are cheap but I am not looking to buy one. I do have a old laptop with Windows 10 installed on it and a harddrive. I might swap it out for an SSD and then install linux, but I got actual cameras now like from TP-Link, so I can do it if I want to.

@intx82
Copy link
Owner

intx82 commented Oct 11, 2024

@intx82 Maybe you can copy some of these instructions into a wiki?

Provide a MR with changes to README, i'll merge it.

@ICrashWindows12
Copy link
Author

ICrashWindows12 commented Oct 21, 2024

I may be able to since I might switch ISP's. The Model is a NetComm router, supports 4G wifi like cellular data and also NBN connection. I do not know if any of their models supports DNS forwarding. But since I do have like 2 old laptops, I could technically run a 24/7 server, install ubuntu Linux or something else.

The 1st old laptop, the battery doesn't work but it does run off the AC power adapter, the other one is too slow to do anything besides just going to the BIOS. If that doesn't work I could install dnsmasq on the laptop.

Well I guess thanks for helping me out. I may try to get a server running, but until I get internet working, because my current router is broken, basically the NBN box can't connect to the NBN service which gives the internet access to my router which is the Optus router. Using another wifi source currently

@ICrashWindows12
Copy link
Author

ICrashWindows12 commented Oct 25, 2024

You will need to use an additional piece of hardware to use as a DNS server. This might be a Rasperry Pi, or another, more configurable router. Below, I'm assuming it's a RPi at 192.168.1.2.

The strategy is this: In your main router (which acts as DHCP server), you need to change it to tell all DHCP clients to use your RPi as DNS, so you'll need to change the DNS to 192.168.1.2. On the RPi, you'll install dnsmasq, and have it send all requests "upstream" to your real DNS (I highly recommend using 1.1.1.1, but you can use the DNS provided by your ISP), except for requests to naxclow.

I recently did something similar, and it's working fine for me.

I did find settings for changing DNS server but it is all greyed out... The Optus DNS Bypass wont work because it is for another router and my routers configuration page is different from that. My router is the F@st 5366 TN
Screenshot 2024-10-25 17 51 04

@intx82
Copy link
Owner

intx82 commented Oct 26, 2024

Try to bring up it standalone, without any internet connection. Then disable on your OPTUS DHCP server and attach to the existing network, after you just change a default gateway in dnsmasq.conf

"OLD-PC with dns-masq inside" -> "Wi-Fi router Without internet connection and disabled DHCP (ie WIFI-AP)" -> "Cameras"

I could be wrong, but dnsmasq config will look like:

dhcp-range=192.168.2.16,192.168.2.250,255.255.255.0,12h
dhcp-option=option:router,192.168.2.2
dhcp-option=option:dns-server,192.168.2.2
dhcp-authoritative

listen-address=192.168.2.2
bind-interfaces
 
# Use open source DNS servers
server=8.8.8.8
server=8.8.4.4
server=208.67.220.220
 
# Create custom 'domains'.
# Custom 'domains' can also be added in /etc/hosts
address=/p2p.naxclow.net/192.168.2.2

192.168.2.2 - Is yours old PC, with dnsmasq itself

@ICrashWindows12
Copy link
Author

Try to bring up it standalone, without any internet connection. Then disable on your OPTUS DHCP server and attach to the existing network, after you just change a default gateway in dnsmasq.conf

"OLD-PC with dns-masq inside" -> "Wi-Fi router Without internet connection and disabled DHCP (ie WIFI-AP)" -> "Cameras"

I could be wrong, but dnsmasq config will look like:

dhcp-range=192.168.2.16,192.168.2.250,255.255.255.0,12h
dhcp-option=option:router,192.168.2.2
dhcp-option=option:dns-server,192.168.2.2
dhcp-authoritative

listen-address=192.168.2.2
bind-interfaces
 
# Use open source DNS servers
server=8.8.8.8
server=8.8.4.4
server=208.67.220.220
 
# Create custom 'domains'.
# Custom 'domains' can also be added in /etc/hosts
address=/p2p.naxclow.net/192.168.2.2

192.168.2.2 - Is yours old PC, with dnsmasq itself

Could you potentially add a way while connecting the camera to WIFI set it's DNS server to whatever you want to make it easier to run a fake server, people are not going to understand all of this like me. I know some things but my routers settings, I just give up, and I do not want to contact support line since my router is fine. My router is super locked down so I can't really get too fancy

@ICrashWindows12
Copy link
Author

ICrashWindows12 commented Oct 29, 2024

Try to bring up it standalone, without any internet connection. Then disable on your OPTUS DHCP server and attach to the existing network, after you just change a default gateway in dnsmasq.conf
"OLD-PC with dns-masq inside" -> "Wi-Fi router Without internet connection and disabled DHCP (ie WIFI-AP)" -> "Cameras"
I could be wrong, but dnsmasq config will look like:

dhcp-range=192.168.2.16,192.168.2.250,255.255.255.0,12h
dhcp-option=option:router,192.168.2.2
dhcp-option=option:dns-server,192.168.2.2
dhcp-authoritative

listen-address=192.168.2.2
bind-interfaces
 
# Use open source DNS servers
server=8.8.8.8
server=8.8.4.4
server=208.67.220.220
 
# Create custom 'domains'.
# Custom 'domains' can also be added in /etc/hosts
address=/p2p.naxclow.net/192.168.2.2

192.168.2.2 - Is yours old PC, with dnsmasq itself

Could you potentially add a way while connecting the camera to WIFI set it's DNS server to whatever you want to make it easier to run a fake server, people are not going to understand all of this like me. I know some things but my routers settings, I just give up, and I do not want to contact support line since my router is fine. My router is super locked down so I can't really get too fancy. This is too confusing for me.

@intx82
Copy link
Owner

intx82 commented Oct 30, 2024

Camera's itself almost don't have settings to configure.

There are two ways to set different DNS server:

  1. Using UART console
  2. Using DHCP server on yours side, and configure DNS in DHCP option.

I prefer second.

@ICrashWindows12
Copy link
Author

ICrashWindows12 commented Nov 2, 2024

Camera's itself almost don't have settings to configure.

There are two ways to set different DNS server:

  1. Using UART console
  2. Using DHCP server on yours side, and configure DNS in DHCP option.

I prefer second.

If Dnsmasq requires me to change the static DNS under LAN, eg. the modem settings, not WAN, I cannot change the DNS under static DNS. My router does not let me do that. I would probably need another router in order or maybe I would have to factory reset it to allow those values to be changed. And I cannot get another router because I am not paying for it and I do have another router, but my current router is fixed already, so then my parents are going to return it back

I don't know what UART is and I think you have to manually solder the pins in order to access the console and I do not know how to solder at all. What do I do now?

@intx82
Copy link
Owner

intx82 commented Nov 4, 2024

Hi, you're right, you need a different router.

I would like to advise you use one from the list above:
https://openwrt.org/toh/views/toh_available_16128_ax-wifi

I think, then fake server could be started even on the router (but i'm not sure)

@ICrashWindows12
Copy link
Author

Hi, you're right, you need a different router.

I would like to advise you use one from the list above: https://openwrt.org/toh/views/toh_available_16128_ax-wifi

I think, then fake server could be started even on the router (but i'm not sure)

I do not think I will be changing my router anytime soon. I don't pay for it, so I can't really do anything about it. Any other way besides UART access?

@intx82
Copy link
Owner

intx82 commented Nov 21, 2024

Then only uart is an option, but i didn't dig inside that way deeply, so i may not give you advice in this. Anyway, you can always ask here.

Or on home-assistant forum

@ICrashWindows12
Copy link
Author

ICrashWindows12 commented Nov 30, 2024

Then only uart is an option, but i didn't dig inside that way deeply, so i may not give you advice in this. Anyway, you can always ask here.

Or on home-assistant forum

Port 53 is open on camera, or atleast, the rtthread. No other port is open? is there possible another port on the camera that may be open? Port 53 as I have searched on google is something to do with dns, is there a possible way to ping the rtthread and try open the camera, like trigger the videostream, maybe decompiling the app, and see how it triggers the video streams and interacts with the camera? Is it also possible to load a file onto a microsd card I have and try to trigger the camera, or like open a port of some sort?

I have a Sandisk 32gb micro sd, if theres anything useful in that, let me know.

@ICrashWindows12
Copy link
Author

ICrashWindows12 commented Dec 14, 2024

Then only uart is an option, but i didn't dig inside that way deeply, so i may not give you advice in this. Anyway, you can always ask here.

Or on home-assistant forum
@intx82
I have like a pocket wifi thing, it has a GUI on it somehow, telstra branded, and has an IP port filter, could I use that to redirect traffic, I am also going on holiday so I might just take the a9 cam and try while I am there on the device, and there is port forwarding on it so maybe I can do it lol, or try right now and see if I can access it, so then I know it works

Screenshot 2024-12-14 21 11 23

@intx82
Copy link
Owner

intx82 commented Dec 16, 2024

I don't think so. You can block here access to the naxclow server, but that's not enough, also should be some redirection cameras traffic to yours computer/router/server.

What do you have in "Default policy" listbox? Is there 'redirect'?

@ICrashWindows12
Copy link
Author

I don't think so. You can block here access to the naxclow server, but that's not enough, also should be some redirection cameras traffic to yours computer/router/server.

What do you have in "Default policy" listbox? Is there 'redirect'?

I actually got a V380 Pro camera, im not sure what model, and plastic is yellowed, but I think I will be able to enable rtsp streaming with a cesh.ini file. The owners of it before thought it was broken and I hit the reset button, too bad the a9 camera was v720, this one looks like about 2-5 years, just needs cleaning and yeah, v380 pro

@ICrashWindows12
Copy link
Author

I don't think so. You can block here access to the naxclow server, but that's not enough, also should be some redirection cameras traffic to yours computer/router/server.

What do you have in "Default policy" listbox? Is there 'redirect'?

Yes I enabled the rtsp, now I can add the v380 camera to an NVR, although it has no password for rtsp and I dont know how to set that up, so I wont expose it to the internet, and plus it was free to get! meaning it is useful to me!

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants