want to access ip camera remotely through openvpn (VPN)

Feb 21, 2023
3
0
islamabad
Purpose: I want to access my IP cameras remotely
i am running Openvpn client (VPN) on my router, camera is connected with router on LAN side. VPN client is also running on my remote pc. i have done port forwarding correctly . i can access web interface of camera on remote system but issue is that streaming quality is too laggy, whenever i try to access web interface on two remote system at the same time. and with one remote system . streaming quality goes down with time . please help me. how i can improve streaming quality .
 
What routers? What speed is the connection for each of the server/clients? Are the cams OK viewing them directly not over the VPN?
 
What routers? What speed is the connection for each of the server/clients? Are the cams OK viewing them directly not over the VPN?
i am using dausan router model num: dsgw-040-2 . openwrt is configured on it. yes camera streaming is okay when i connect it through ethernet. internet speed is more than 4 mbs for each client and server
 
There are a lot of variables here. It could be that the internet speeds are too slow. Are you using a cellular connection (I ask because the router is capable of cellular connections)?

It could also be the router is not powerful enough. VPN connections need powerful processing due to the encryption they use. The more VPN connections you add, the more powerful your router/firewall needs to be. Just because your device "supports" VPNs doesn't mean it is going to work well, or be able to handle multiple connections at the same time. I am not familiar with that router, but it seems like it is trying to do a lot of different things - all of which takes up processing power. I also didn't see anything about running a VPN server on the Dausan product page. Are you running a custom/third party firmware (like OpenWRT) or the stock firmware?
 
There are a lot of variables here. It could be that the internet speeds are too slow. Are you using a cellular connection (I ask because the router is capable of cellular connections)?

It could also be the router is not powerful enough. VPN connections need powerful processing due to the encryption they use. The more VPN connections you add, the more powerful your router/firewall needs to be. Just because your device "supports" VPNs doesn't mean it is going to work well, or be able to handle multiple connections at the same time. I am not familiar with that router, but it seems like it is trying to do a lot of different things - all of which takes up processing power. I also didn't see anything about running a VPN server on the Dausan product page. Are you running a custom/third party firmware (like OpenWRT) or the stock firmware?
my router is taking internet through ethernet . there is no speed problem .yes i am running openwrt firmware on my dasun router . what do you recommend me how i can fix this. should i use raspberry pi instead of dausan router. i can connect raspbery pi with my main isp router
 
my router is taking internet through ethernet . there is no speed problem .yes i am running openwrt firmware on my dasun router . what do you recommend me how i can fix this. should i use raspberry pi instead of dausan router. i can connect raspbery pi with my main isp router

If you have a Raspberry Pi laying around (or another computer that can run OpenVPN on - even virtually) that you can try to use for OpenVPN, that would be my first suggestion. It's one of those "you have nothing to loose" scenarios, and I suspect your speeds will increase by offloading the VPN server to another device. If they do, then that clearly points to your router being under powered to handle VPNs. You can either permanently offload the VPN server, or get a more powerful router.
 
  • Like
Reactions: looney2ns
internet speed is more than 4 mbs for each client and server
my router is taking internet through ethernet . there is no speed problem

Is your Internet speed a great deal more than "4 mbs" ?

FWIW, two each 2MP (1920 x 1080) cams, H.264 compression @ 15 FPS require at least 4 Mb/s network bandwidth.
 
  • Like
Reactions: looney2ns
As above, there are lots of possibilities. Can you better detail exactly how things are set up and connected? I don't have a good overall picture of what you have where there and how it's all connected. Is all of your connection site-to-site?

Lacking that and since your problem as described seems to get worse with load, a few things to try:

- Take the VPN out of the equation as a test and try to connect to the cams via a simple port forward using the same clients/connectivity as it is otherwise. You don't want to leave it that way obviously but just as a quick test to see if the VPN is what's slowing things down. If it's still bad, then an indication that it's not the VPN itself.

- Find something to show the actual throughput of the connection end-to-end. You may have a 4 mps rated connection, doesn't mean that you're necessarily getting that through it end-to-end as things are configured/perform.

- Try connecting to something other than the cams over the VPN using the same setup if you have something that has a web interface or maybe RDP to another machine there.
 
  • Like
Reactions: TonyR and looney2ns